Use farmer
to deploy your applications on VM Farms.
Install with pip:
pip install farmer
You need to provide Farmer with your VM Farms API token. You can retrieve your API token from the API documentation section of the VM Farms portal.
Run farmer config
to set your token for the first time:
farmer config
If you need to change your token for any reason, you can use farmer config set token
:
farmer config set token c422b5e2230d617d22759a19a5a5cb65792edebc
Run farmer apps
to list your applications.
farmer apps
If you don't see any applications, we probably need to connect a few wires for you. Contact our support team and we'll sort you out.
Run farmer deploy
to deploy an application:
farmer deploy api api-prod
For bugs or feature requests related to Farmer itself, please open a GitHub issue.
For issues related to your applications or deploys, please contact VM Farms support.
Add this snippet to your Bash configuration (~/.bashrc
or ~/.bash_profile
) to enable tab-completion:
eval "$(_FARMER_COMPLETE=source farmer)"
Enjoy!
Apache 2.0