Using Cloud 66 Toolbelt
What is Toolbelt?
Cloud 66 Toolbelt makes it possible to interact with Cloud 66 from the comfort of your command line, and is available for Linux, Mac and Windows.
Many Toolbelt commands use the word "stack" which is now referred to as "application" throughout these docs. They are functionally equivalent terms for the purposes of the Toolbelt.
To get started, simply download the toolbelt executable, unzip and copy it to a directory accessible in your PATH. On Mac OS X, your PATH is likely
/usr/local/bin, but you can run
echo $PATH in your terminal to determine your specific path. Placing the executable in this folder allows it to be used globally.
Before using Toolbelt, you need to link it to your Cloud 66 account. You can do this by issuing one of the available commands, which will return a URL that you need to copy and paste into your browser.
$ cx stacks list
Following this URL will redirect you to your account (you need to be logged in) and ask for your authorization to allow the toolbelt to view, edit, redeploy and administrate your applications and servers.
The authorization information is stored in the ~/.cloud66/cx.json file. Removing this file will remove the authorization code from your client.
Once authorized, you will be presented with an authorization code to paste into your toolbelt.
To deauthorize Toolbelt, login to your Cloud 66 account and click on the Revoke access button under your Account page.
View Toolbelt information
cx helplists available commands
cx infoshows information about your toolbelt
cx --versionoutputs your toolbelt version
cx stacks listlists available applications
cx servers list -slists available servers for a given application
cx open -sopens your web browser to visit the front-end of your application
Multiple Account Support
By default, Toolbelt can work with all of the accounts you are member of. Once you accept a Team membership on Cloud 66, your Toolbelt will automatically work with the applications you have access to under that team’s account without any change.
If you have more than 1 Cloud 66 account (you are the owner of more than 1 account and not just a team member), then you can use the
--account global option when using Toolbelt. Using the
account option you can give your accounts different names and switch between them. Here is an example:
$ cx --account=personal stacks list
This will ask for Toolbelt authorization when run the first time. Once authorized, it will work as expected.
To add a new account, simply change the value of the
$ cx --account=work stacks list
This will again ask for authorization the first time you run it. Once authorized you can switch between
work (or any other name you would like) by just adding the
Toolbelt updates are released periodically to improve the functionality available through the command line, and these are normally applied automatically in the background. Whenever a command is executed, the toolbelt will check whether or not a newer version is available and do a silent update. You can also update manually with
If you install the toolbelt in a shared folder, you may need to elevate your permissions in order to run an update. In this case, you can simply run
sudo cx update. You can then check which version you are using by running
To make life easier for you, the Cloud 66 toolbelt detects the Git URL and branch for each directory it is run in. As such, you won’t have to specify which application you want to run the toolbelt on if you’re in the git folder and branch of one of your applications.
We apply naming shortcuts to both application and server names, as well as server roles in the toolbelt.
We just need you to type enough of a name for it to be unique. For example, if you only have one application that starts with m, you can simply type m. Similarly, if you only have one web server, you can type w instead of web.
Follow our instructions to add an auto-complete feature to your toolbelt, which will make typing commands out by hand much quicker.
Fork our repository, create a feature branch (and commit/push your changes) and then create a pull request.