TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/meteor/meteor/llms.txt
Use this file to discover all available pages before exploring further.
meteor build command packages your Meteor project for deployment, creating builds for all configured platforms.
Usage
Basic Usage
Build your app for deployment:Output
The command outputs:- A tarball containing everything necessary to run the application server (see README in the tarball for details)
- If you’ve added mobile platforms with
meteor add-platform:android/subdirectory with the AAB/APK bundle and Android project sourceios/subdirectory with the Xcode project source (macOS only)
Options
Build in debug mode (don’t minify, etc)
Output a directory (rather than a tarball) for the application server bundle. If the output location exists, it will be recursively deleted first.
Skip building mobile apps even if mobile platforms have been added. Still builds the ‘web.cordova’ client target so the server can support hot code push for Cordova apps.
Set optional data for the initial value of Meteor.settings in your mobile application. A new value for Meteor.settings can be set later by the server as part of hot code push. Provide a path to a JSON file.
Location where mobile builds connect to the Meteor server. Defaults to localhost:3000. Can include a URL scheme (e.g.,
--server=https://example.com:443).Build the server for a different architecture than your developer machine’s architecture. Valid architectures include:
os.osx.x86_64os.linux.x86_64os.linux.x86_32os.windows.x86_32os.windows.x86_64
--architecture has no effect.Allow packages in your project to be upgraded or downgraded to versions that are potentially incompatible with the current versions, if required to satisfy all package version constraints.
Build only the specified platforms (when available). Comma-separated list.
Choose between
apk or bundle for Android buildsPrint detailed build output
Run in headless mode (no progress indicators), useful for CI environments
Specify the Cordova server port
Examples
Build for production deployment:Mobile Builds
For mobile builds, you must specify the server URL using the--server option:
Deployment
After building, the output directory will contain:<app-name>.tar.gz- Server bundle (or abundle/directory if using--directory)android/- Android build artifacts (if Android platform added)ios/- iOS project (if iOS platform added, macOS only)
- Extract the tarball on your server
- Read the README file in the bundle for deployment instructions
- Set up environment variables (MONGO_URL, ROOT_URL, etc.)
- Run
node main.js
Deprecated: bundle Command
Themeteor bundle command is deprecated in favor of meteor build: