Warning: this post is old and might not reflect the current state of the art

When installing Meteor, you get “for free” the Command Line utility called meteor It’s a super useful tool, very powerful, and to start with we just need to know a small fraction of what it can do. Let’s introduce the four most useful commands you’ll use when starting with Meteor.

meteor

If inside an empty directory you type

meteor

you’ll get an error because Meteor was not initialized in that directory.

If you instead type meteor in a folder that has a Meteor project already created (see meteor create here below), Meteor will start up and create the server, initialize the database and you’ll be able to open Meteor.

meteor create

If inside a directory you type

meteor create my_app_name

Meteor will initialize a new Meteor project in a subfolder named my_app_name.

meteor add

Inside your Meteor project already initialized, calling

meteor add package_name

will lookup the package_name package and will install it in the current project. You can run this command in a separate terminal window while the Meteor app is running, and you’ll get the package functionality without the need to restart the Meteor server.

meteor remove

Inside your Meteor project already initialized, calling

meteor remove package_name

will remove the package with that name from your project.