Deploy keys are limited scope API keys that allow you to run some limited commands from a remote environment (such as continuous integration systems like Jenkins, Travis, CircleCI etc) without needing to store/use/expose your user credentials.
Create a free Convox account if you don’t already have one, simply signup here. We recommend using your company email address if you have one, and using your actual company name as the organization name.
The commands you can run with a deploy key are limited to the following for security reasons:
env set --replace
Creating a Deploy Key
To generate a deploy key, log into your account at console.convox.com and click on the Settings tab on the left.
Go to the Deploy Keys section, give your deploy key a name, and click on Create.
Deploy keys are specific to the organization they are created within. They can only be run against Racks within the same organization.
Using a Deploy Key
In your CI environment, download the latest version of the Convox CLI and use the deploy key like these examples:
$ env CONVOX_HOST=console.convox.com CONVOX_PASSWORD=<key> convox deploy $ env CONVOX_HOST=console.convox.com CONVOX_PASSWORD=<key> convox run web bin/migrate $ env CONVOX_HOST=console.convox.com CONVOX_PASSWORD=<key> convox env set NODE_ENV=production FOO=bar ... --replace $ env CONVOX_HOST=console.convox.com CONVOX_PASSWORD=<key> convox builds export <build ID> -a <app1> -r <rack1> | convox builds import -a <app2> -r <rack2>