Command Line Interface for Clever Cloud.
npm install -g clever-tools
# Install completion scripts
install-clever-completion
To use clever-tools
, you have to login.
clever login
It will open a page in your browser. Copy the provided token
and secret
codes in the CLI.
clever create <name> --type <type> \
[-region <region>] \
[-orga <organisation>] \
[-alias <alias>]
Where type
is one of:
apache+php54
: for PHP applicationsapache+php55
: for PHP applicationsdocker
: for Docker-based applicationsgo
: for Go applicationsjava+maven
: for standalone java applicationsjava+play1
: for Play1 applicationsjava+war
: for java applications deployed in an application servernode
: for node.js applicationspython27
: for python27 applicationsruby
: for ruby applicationssbt
: for applications build with SBT (java, scala, Play2)static
: for static (HTML only) websites
Where region is one of:
par
(for Paris)mtl
(for Montreal)
--organisation
allows you to chose the organisation in which your app is
created.
--alias
allows you to deploy your application several times on Clever Cloud
(eg: production, testing, …)
clever link <APP-ID> [--alias <alias>]
Where APP-ID
is the name or id of your application (application_name
or
organisation_name/application_name
).
clever deploy [--alias <alias>]
--alias
allows you to deploy your application several times on Clever Cloud
(eg: production, testing, …)
clever status [--alias <alias>]
cd node_project
clever login
clever create "Node.js application" -t node -r mtl
clever deploy