clever-tools
Command Line Interface for Clever Cloud.
Installation
npm install -g clever-tools
# Install completion scripts
install-clever-completion
How to use
Login
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.
Create an application
clever create <name> --type <type> \
[--region <region>] \
[--org <organisation>] \
[--alias <alias>]
Where type
is one of:
docker
: for Docker-based applications
go
: for Go applications
gradle
: for applications launched with gradle
jar
: for applications deployed as standalone jar files
war
: for applications deployed as war files
play1
: for Play1 applications
play2
: for Play2 applications
sbt
: for applications launched with SBT
maven
: for applications launched with maven
node
: for node.js applications
php
: for PHP applications
python
: for python27 applications
ruby
: for ruby applications
static
: for static (HTML only) websites
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 your application several times on Clever Cloud
(eg: production, testing, …)
Link an existing application
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).
Deploy an application
clever deploy [--alias <alias>]
--alias
allows you to deploy your application several times on Clever Cloud
(eg: production, testing, …)
Application status
clever status [--alias <alias>]
Change application scale
clever scale [--alias <alias>] [--min-flavor <minflavor>] [--max-flavor <maxflavor>] [--min-instances <mininstances>] [--max-instances <maxinstances>]
Display help
You can display help about each command with clever help
.
clever help
clever help deploy
Examples
cd node_project
clever login
clever create "Node.js application" -t node -r mtl
clever deploy
How to send feedback?
Send us an email! or submit an issue.