Support Center

Help installing the CLI

Last Updated: Sep 11, 2011 01:34AM NPT

Why do I need the CLI?

The CloudFactory command-line interface is built on top of Ruby.
But don't worry, you don't need to know anything about Ruby - you just need to install it (like needing JRE, Silverlight or Flash for other cross-platform applications).
 

Step 1: Ruby Already Installed? (if so skip to step 3)

To check for ruby install

ruby -v

If you get back version 1.8.7 or higher (although we highly recommend 1.9.2), then you are good to skip to step 3.
 

Step 2: Install Ruby

There are lots of great resources online to install Ruby 1.9.2 on your platform, here are some we recommend:

Install Ruby 1.9.2 on Mac OS X
Install Ruby 1.9.2 on Ubuntu
Install Ruby 1.9.2 on Windows

You can also get fancy and install Ruby using RVM.

Step 3: Install CloudFactory Ruby Gem

Put the following content in your ~/.bashrc or ~/.zshrc or whatever you use:
 
export LANG=en_US.UTF-8
exportLC_ALL=en_US.UTF-8

Then upgrade your rubygem
 gem update --system

 Now install the gem:

gem install cloudfactory

 That gives you the CLI tool to interact with CloudFactory. To interact with CloudFactory, you've to sign up at CloudFactory Then you have to login first.

cf login

 Thats it for setting up the CLI with CloudFactory.

Step 4: Try the CLI

Now you can build your own assembly lines! See our examples.

 

Frequently asked questions:

How to fix common issues:

Did you get an error that said you need to update RubyGems?

gem update --system


To sudo or not sudo, that is the question!

Windows => just “gem install cloudfactory”
RVM => just “gem install cloudfactory”
Otherwise, Mac + nix => “sudo gem install cloudfactory”



What is the difference between the CLI gem and Ruby gem for development?

There is only one CloudFctory gem and it contains both the basic CLI for non-Ruby developers as well as all the needed bits for Ruby development as well.

Contact Us

Follow Our Tweets