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 run command (or just meteor) runs your Meteor project in local development mode.
Usage
Basic Usage
Run the app on localhost:3000:Targets
If you have added mobile platforms to your app withmeteor add-platform, you can specify run targets:
Run on the Android emulator
Run on a connected Android device
Run on the iOS simulator
Open Xcode with the iOS project for this app, where you can run your app on a connected iOS device
Examples
Options
Port to listen on (also uses port N+1 and a port specified by —app-port). Specify as
--port=host:port to bind to a specific interface.Opens a browser window when the app starts
Enable server-side debugging via debugging clients like the Node.js command-line debugger, Chrome DevTools, or Visual Studio Code. Optionally specify a port (default: 9229).
Enable server-side debugging with the server paused at startup, waiting for clients to attach. Optionally specify a port (default: 9229).
Location where mobile builds connect to the Meteor server. Defaults to your local IP and the port that the Meteor server binds to. Can include a URL scheme (e.g.,
--mobile-server=https://example.com:443).Local port where Cordova will serve content. Important when multiple Cordova apps are built from the same Meteor app source code. By default, the port is generated using the id inside
.meteor/.id.Simulate production mode. Minify and bundle CSS and JS files.
Run without parsing logs from stdout and stderr
Run with timestamps in logs (same as passing
--raw-logs=false)Set optional data for Meteor.settings on the server. Provide a path to a JSON file.
Specify the release of Meteor to use
Print all output from build logs
Don’t run linters used by the app on every rebuild
Don’t run the release updater to check for new releases
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.
Run with additional packages (comma-separated, e.g.,
--extra-packages "package-name1, package-name2@1.2.3")Don’t create bundles for certain web architectures (comma-separated, e.g.,
--exclude-archs "web.browser.legacy, web.cordova")Examples
Run on a custom port:--production flag should only be used to simulate production bundling for testing purposes. Use meteor build to create a bundle for production deployment.
Run with debugging enabled:
Features
Auto-refresh
Whenever you change any of the application’s source files, the changes are automatically detected and applied to the running application.Persistent Database
The application’s database persists between runs. It’s stored under the.meteor directory in the root of the project.
No Internet Required
No internet connection is required to run your app locally.Debug Command
Themeteor debug command is deprecated in favor of meteor --inspect-brk:
Debugging
The--inspect and --inspect-brk flags enable server-side debugging:
- Use
--inspectto enable debugging without pausing - Use
--inspect-brkto pause at startup, waiting for debugger to attach
- The
--inspect[-brk]flags affect the server process spawned by the build process, not the build process itself - The
--inspect-brkflag causes the server to pause just after server code loads but before it executes, giving you a chance to set breakpoints
debugger keyword to set breakpoints: