Deploying via the Command Line

If deploying to servers using the IDE's graphical interface isn't your thing, you can also manually install various command-line tools into your workspace and deploy using the command line. It should go without saying that this is for super 31337 developers that aren't afraid of the command line.

Below is a list of some of the services we have tested and support deploying to. All the commands need to be executed in the terminal unless stated otherwise.

Heroku

To deploy to Heroku, type the following commands:

wget http://assets.heroku.com/heroku-client/heroku-client.tgz
tar xzfv heroku-client.tgz
cd heroku-client/bin
PATH=$PATH:$PWD

Now, you can use the heroku command for your projects, as described in the Heroku documentation.

Windows Azure Web Sites

Free and Premium Plans

In the Console or a Terminal, type the following:

npm install azure

Now, you can use the azure command from the Console/Terminal. For more information, read the official azure documentation.

Premium Plans

To deploy to Azure sites from the command line, open the Terminal and type:

cd ~/lib/azure-sites
npm install

Then, add the bin to your workspace's path:

PATH=$PATH:$HOME/lib/azure-sites/bin

Now, you can use the azure command in the terminal.

Windows Azure Cloud Services

For free and premium plans, follow the instructions on the azure-cmdlet-node repository. This project is maintained by Cloud9.

Google App Engine

First, setup Push to Deploy: Create a new App Engine application at cloud.google.com/console, and then enable Push-to-Deploy under 'App Engine' in the Application Settings page. Leave this tab open to note the URL for your repo.

Secondly, configure Cloud9. Run the following commands (making sure to replace your email address, auth-token, and repo-url):

echo "machine code.google.com login EMAIL password PASSWORD" >> ~/.netrc
git remote add appengine REPO

Note:

The email in this case is the mail address you use to login to your Google App Engine account and the password is the auth-token generated from the admin console, it is not your google password, never type that into a third party tool. 'REPO' is the repository URL generated before.

Finally, do a commit, and a push:

git commit -a -m "First commit"
git push appengine master

CloudFoundry

To deploy to CloudFoundry from the command line in the Console or a Terminal, type:

cd ~
wget https://github.com/cloudfoundry/vmc/zipball/master
mv master cloudfoundry
unzip cloudfoundry
cd cloudfoundry-vmc-nnnn
bundle

NodeJitsu

Free and Premium Plans

In the the Console or a Terminal, type:

npm install jitsu@0.7.x -g
mkdir node_modules
mv ../lib/node_modules/jitsu node_modules

Now, you can run jitsu from the command line. For more information, see the official jitsu documentation.

Premium Plans

npm install jitsu@0.7.x -g

You can now run jitsu from both the Console and the Terminal.