Command Line Interface for Clever Cloud.
Installation through npm is not supported, please use the packaged versions
Please refer to https://www.clever-cloud.com/doc/clever-tools/getting_started/ for the installation details.
Download https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz and extract the archive somewhere in $PATH (~/.local/bin is a good choice).
curl -O https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz
tar zxf clever-tools-latest_linux.tar.gz
cp {clever,nodegit.node} ~/.local/bin/On Mac OSX just install it with Homebrew
brew install CleverCloud/tap/clever-toolsDownload https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_win.zip and extract the archive where you want.
Alternatively, you can use chocolatey to install clever-tools:
choco install clever-toolsTo use clever-tools, you have to login.
clever loginIt will open a page in your browser. Copy the provided token and secret
codes in the CLI.
clever login tries to open a browser through xdg-open on GNU/Linux systems
(and in bash for windows). Make sure you have xdg-utils available as well as
a default browser set (or you can copy and paste the URL displayed in the
console.
clever create <name> --type <type> \
[--region <region>] \
[--org <organisation>] \
[--alias <alias>]Where type is one of:
docker: for Docker-based applicationsgo: for Go applicationsgradle: for applications launched with gradlehaskell: for haskell applicationsjar: for applications deployed as standalone jar filesmaven: for applications launched with mavennode: for node.js applicationsphp: for PHP applicationsplay1: for Play1 applicationsplay2: for Play2 applicationspython: for python27 applicationsruby: for ruby applicationsrust: for rust applicationssbt: for applications launched with SBTstatic-apache: for static (HTML only) websiteswar: for applications deployed as war files
Where region is one of:
par(for Paris)mtl(for Montreal)
--org allows you to chose the organisation in which your app is
created.
--alias allows you to deploy the same application in multiple environments on Clever Cloud (eg: production, testing, …)
clever link [--org <ORG-NAME>] <APP-NAME> [--alias <alias>]Where APP-NAME is the name of your application, and ORG-NAME is the name
of the organisation it's in. You can specify a complete application id instead
of its name (in that case, --org can be omitted).
clever deploy [--alias <alias>]--alias allows you to deploy your application several times on Clever Cloud
(eg: production, testing, …)
clever status [--alias <alias>]clever scale [--alias <alias>] [--min-flavor <minflavor>] [--max-flavor <maxflavor>] [--min-instances <mininstances>] [--max-instances <maxinstances>]# create drain
clever drain create [--alias <alias>] <DRAIN-TYPE> <DRAIN-URL> [--username <username>] [--password <password>]# list drains
clever drain [--alias <alias>]# remove drain
clever drain remove [--alias <alias>] <DRAIN-ID>Where DRAIN-TYPE is one of:
TCPSyslog: for TCP syslog endpoint ;UDPSyslog: for UDP syslog endpoint ;HTTP: for TCP syslog endpoint (note that this endpoint has optional username/passwordparameters as HTTP Basic Authentication);ElasticSearch: for ElasticSearch endpoint (note that this endpoint requires username/password parameters as HTTP Basic Authentication).
You can display help about each command with clever help.
clever help
clever help deploycd node_project
clever login
clever create "Node.js application" -t node -r mtl
clever deploy