Documentation 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.
The meteor add command adds one or more packages to your Meteor project.
Usage
meteor add <package> [package...]
Basic Usage
Add a single package:
meteor add accounts-password
Add multiple packages:
meteor add accounts-password accounts-ui
Version Constraints
You can specify version constraints when adding packages.
Minimum Version
Add a package at version 1.1.0 or higher (but not 2.0.0 or higher):
Exact Version
Add a package at exactly version 1.1.0:
meteor add package@=1.1.0
Multiple Constraints
You can combine constraints using || (OR):
meteor add 'package@=1.0.0 || =2.0.1'
This means either 1.0.0 (exactly) or 2.0.1 (exactly).
Note: Use quotes when your constraint includes spaces or special characters.
Removing Version Constraints
To remove a version constraint for a specific package, run meteor add again without specifying a version:
# First, add with constraint
meteor add package@=1.1.0
# Later, remove constraint
meteor add package
Options
--allow-incompatible-update
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.
Examples
Add React:
meteor add react-meteor-data
Add MongoDB packages:
meteor add mongo accounts-base
Add a package with a minimum version:
meteor add reactive-var@1.0.11
Add a package with an exact version:
meteor add reactive-var@=1.0.11
Add a package with complex constraints:
meteor add 'my-package@1.0.0 || 2.0.0'
Add a package allowing incompatible updates:
meteor add my-package --allow-incompatible-update
Common Packages
Authentication
meteor add accounts-password
meteor add accounts-ui
meteor add accounts-google
meteor add accounts-facebook
UI Frameworks
meteor add react-meteor-data
meteor add vue-meteor-tracker
meteor add blaze-html-templates
Utilities
meteor add session
meteor add reactive-var
meteor add reactive-dict
meteor add check
meteor add http
Development
meteor add insecure # Allow client DB writes (dev only)
meteor add autopublish # Auto-publish all data (dev only)
Warning: Never use insecure or autopublish in production.
Finding Packages
Search for available packages:
View package information:
meteor show <package-name>
List packages in your project:
Package Sources
Packages can come from:
- Meteor Package Server - Official and community packages
- Local packages - Packages in your project’s
packages/ directory
- Atmosphere - Legacy package repository (now integrated)
Version Resolution
When you add a package, Meteor’s constraint solver:
- Resolves all dependencies
- Ensures version compatibility
- Selects the newest compatible version of each package
- Updates
.meteor/versions file
If the constraint solver can’t find compatible versions, it will report which packages are causing conflicts.
Troubleshooting
If you encounter version conflicts:
# Try allowing incompatible updates
meteor add package --allow-incompatible-update
# Or update all packages
meteor update --all-packages
# Or remove conflicting packages first
meteor remove conflicting-package
meteor add desired-package