The Meteor Install Script
The first step in the Meteor tutorial is to install meteor with the following minimalist shell command:
curl https://install.meteor.com/ | sh
Here is what it does:
- The script runs on OS X and Linux only, so first it checks which system you are on, and quits if it's neither. Then it branches off according to your OS.
- There are also come checks for "very old" versions of Meteor (pre-April 2013), with instructions for how to deal with those.
- Any previous installation in ~/.meteor gets wiped.
- Any leftover temporary install directory in ~/.meteor-install-tmp gets wiped.
- It downloads the meteor bootstrap tarball and extracts it to ~/.meteor-install-tmp.
- It moves ~/.meteor-install-tmp/.meteor to ~/.meteor.
- It finds the symlink ~/.meteor/meteor, and copies the script scripts/admin/launch-meteor in the same directory to /usr/local/bin/meteor (sudo required).
- It prints the helpful message:
To get started fast:$ meteor create ~/my_cool_app$ cd ~/my_cool_app$ meteorOr see the docs at:docs.meteor.com
This is the happy path, but of course, the installer also deals with various kinds of error conditions.
The version is set in the variable RELEASE in the script, so I suppose if you want to upgrade to a later version you need to download the script and run it again. I presume the URL in the install command will always point to the latest version.