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:
string
Run on the Android emulator
string
Run on a connected Android device
string
Run on the iOS simulator
string
Open Xcode with the iOS project for this app, where you can run your app on a connected iOS device
Examples
Options
string
default:"3000"
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.boolean
default:"false"
Opens a browser window when the app starts
string
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).
string
Enable server-side debugging with the server paused at startup, waiting for clients to attach. Optionally specify a port (default: 9229).
string
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).number
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.boolean
default:"false"
Simulate production mode. Minify and bundle CSS and JS files.
boolean
default:"true"
Run without parsing logs from stdout and stderr
boolean
default:"false"
Run with timestamps in logs (same as passing
--raw-logs=false)string
Set optional data for Meteor.settings on the server. Provide a path to a JSON file.
string
Specify the release of Meteor to use
boolean
default:"false"
Print all output from build logs
boolean
default:"false"
Don’t run linters used by the app on every rebuild
boolean
default:"false"
Don’t run the release updater to check for new releases
boolean
default:"false"
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.
string
Run with additional packages (comma-separated, e.g.,
--extra-packages "package-name1, package-name2@1.2.3")string
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: