Quickstart
Create a Clever Cloud account
The API of Clever Cloud uses OAuth 1 to perform authentication actions. There are two ways to signup to Clever Cloud: email or GitHub login.
Go to the Clever Cloud Console and select the method you prefer.
Email Authentication
This kind of auth requires a valid and non-temporary disposable e-mail, and a password having at least 6 characters. Do not forget to validate your email by clicking the link you will receive.
GitHub Authentication
The GitHub signup allows you to create an account or link your existing one to GitHub, in one click. This process asks the following permissions:
- Read your Public Key
- Read User Repositories
The “repository permission” is used to deploy your GitHub apps directly to Clever Cloud, with a simple step.
If you need to give access to Clever Cloud’s API to a specific GitHub organization, you can do it here.
Two Factor Authentication (2FA)
Clever Cloud supports 2FA. You can enable it here: https://console.clever-cloud.com/users/me/authentication
Please, backup your recovery codes, we won’t be able to restore access to your account if you lose access to your regular codes.
Deploy your code
What is an application
An application is defined on Clever Cloud by the following elements:
- a dedicated language/framework;
- a deployment method (FTP and/or Git);
- resources consumption (CPU, RAM, Disk…), depending on the language or framework used;
- an optional configuration file you may add to your project.
If one of these elements is missing, Clever Cloud can’t deploy your application properly (except the configuration file, optional in some cases).
Supported platforms:
How it works
When you push an application’s code to git or via FTP, the platform receives it and checks the resource’s requirements. If they are complete, the deployment is launched. When finished and successful, the application is up and running.
The log system retrieves all output from the application and displays it in the logs tab of your application in the Clever Cloud console.
Create an application
In the Clever Cloud Console:
- Select the proper organization you want to add the application to. At this point you must only have the Personal Space but you can create one.
- Click on the Create an application button in the Organization Manager panel. This starts the application creation wizard. If your account has been linked to GitHub, you can select a repository from your GitHub account.
If you want to deploy an application within a GitHub organisation, first grant the Clever Cloud API access to it.
- Select the language or the framework you need
- Optional: For PHP applications, you can choose between FTP and Git deployment.
- Fine-tune your scaling configuration. Horizontal scaling is the number of instances that can run at the same time. Vertical scaling sets the minimum and maximum size the instance can be.
- Enter the name and description of your application.
- Optional: The wizard will offer you to add an add-on to your application.
- Optional: The wizard will offer you to add environment variables to your application.
Git Deployment
To deploy via Git, you need it installed on your machine. You can find more information on Git website: git-scm.com
Note: During the deployment, the .git folder is automatically deleted to avoid security problems. If you need to know which version is used on the server please use the COMMIT_ID
environment variable.
Follow these steps to deploy your application:
Get the git deployment url in the application information page, which looks like:
git+ssh://git@push.<zone>.clever-cloud.com/<your_app_id>.git
.In your terminal, go to your application repository. If you do not already track your app with git, start by typing:
git init
git add .
git commit -m "first commit"
- Then, link your local repository to Clever Cloud by providing the Git remote url:
git remote add <remote-name> <your-git-deployment-url>
- Push your application to Clever Cloud:
git push <remote-name> <branch-name>:master
Warning:
You can only push to the master branch for deployment. Trying to push to another branch will trigger an error.
You cannot push a tag (which refers to a commit) to the remote repository. If you do so, no deployment will be triggered.
In order to push to master from a non-master local branch, use this syntax:
git push <remote> <your branch>:master
You can see your application logs in the dashboard to monitor the deployment.
Troubleshooting:
If the remote asks you for a password right after a git push attempt, this may be due to a SSH Key misconfiguration.
Add your SSH key to your profile here:
https://console.clever-cloud.com/users/me/ssh-keys
The full tutorial about adding SSH key is here: Adding SSH keys
Automated Deployment with GitHub
Once you have created your application with GitHub, each push on the master
branch trigger a deployment. To deploy an other branch than master
, go to the information
panel of your application and select the default branch to use.

Warning:
You can't directly push to an application created on Clever Cloud as a GitHub app: in this case, only the automatic deployment from GitHub is henceforth allowed.
If you try to push to Clever Cloud, as you would do for a non-GitHub app, you will get the following error :
fatal: '/data/repositories/<app_id>.git' does not appear to be a git repository
Indeed, no git repository is created on Clever Cloud because the application is directly cloned from GitHub.
If you have to push directly to a repo in order to deploy an application (eg if you deploy from a CI), then create a non-GitHub app.
If you don’t find your repository in the list fetched from Github, a workaround is to unlink your account in your profile here : https://console.clever-cloud.com/users/me/information, remove Clever Cloud API from your Github Authorized OAuth Apps and link again your Github account to your Clever Cloud account.
Private GitHub repositories are also supported.
Caution: in GitHub, private repositories in an ordinary user account are an all-or-nothing deal: either someone has full read write access (i.e., they’re a collaborator) or they have no access.
However, if you set up an organization, create the repo under the aegis of the organization, and then add the collaborator, you have much more fine-grained control (including giving read-only access to a private repository).
FTP Deployment
You can deploy via FTP with PHP applications.
To deploy via FTP, you need an FTP software installed on your machine. Filezilla is one of them.
Deploy your application via FTP, create a FS Bucket with an ID matching your application’s ID. You will find the FTP credentials in the configuration tab of this particular FS Bucket.
More documentation about Filezilla.
Warning
An FTP application is automatically started once the application is created, even if no code has been sent.Disclaimer
FTP deployment is ok for small websites but not for large ones. We strongly recommend you to use Git deployment for large PHP websites.Application management generalities
There are many tabs available in the application’s menu:
- Information: General information about your application
- Scalability: Set-up scalability options
- Domain names: Manage custom domain names
- Environment variables: Manage environment variables
- Service dependencies: Link add-ons and applications
- Exposed configuration: Manage exposed environment variables
- Activity: Track last deployments
- Logs: Visualize application’s logs
- Metrics: Visualize application’s metrics
- Consumption: Visualize your application’s consumption.
Create your first add-on
Applications often requires one or more services in addition to the runtime itself. Add-ons are services you can use independently, or you can link them with your application(s). For instance, you may want to add a database or a caching system to your application or just have a database with no linked application.
An add-on can be shared by different applications to share data between them. It can be a database shared by two or three applications of your infrastructure for example, or they can be independent.
Most of the add-ons catalog is provided by Clever Cloud, but vendors are also allowed to provide services external to Clever Cloud (See how to integrate your SaaS with Clever Cloud)
Available add-ons
Clever Cloud provides multiple add-ons to work with your applications:
Add-on Billing
There are two kinds of billing:
- Per-month billing: Add-ons with fixed resources (storage, CPU and RAM)
- Per-usage billing: Add-ons based on consumption, like FS Bucket and Cellar
Warning on SHARED plans
Add-ons having a free plan are meant for testing purposes, not production usage. These add-ons usually rely on shared resources, resulting in variable, non-guaranteed performances and stability.Shared clusters may not be running the same version as dedicated instances.
Note: Per usage billing will be taken on runtime credits each day, while per-month add-ons will create a new line in the monthly invoice.
Create an add-on for an existing application
Here we will assume you want to create a new add-on and link it to your application.
In order to create it:
Go to the Clever Cloud Console.
Go to the organization in which you want to create the add-on, for example your personal space.
Click on Add an add-on. This space let you create and configure the add-on according to your needs.
Choose which type of add-on you want to create. See above the list of available add-ons and their corresponding documentation pages for further information on how they work.
Select the plan you need for you add-on. You can find details about the pricing, the capacity of the add-on and other specifications on this page or in the corresponding documentation page.
Choose with which application you want to link you add-on. Linking an add-on to an application will provide configuration to the application through environment variables. The environment variables provided by the add-on are available for use in the linked application.
If you want to use your add-on alone, just don’t link it to any application.
Choose the name of the add-on and the region where the add-on will be hosted.
Click on the Create button and the add-on will now be available in your organization, and corresponding environment variables will be available for the applications linked to the add-on you just created.
Link an existing add-on to your application
To link an already existing add-on with your application, just follow these steps:
- Go in the organization of your application.
- Click on the name of the application you want to link with your add-on.
- Go in the Service dependencies section.
- Select the add-on you want to link under the “Link addons” dropdown menu.
- Click on the Link button of the add-on you want to link to your application.
Managing your add-on
Once an add-on is created, at least two management tabs are available in the Clever Cloud console:
- the Information tab
- the Configuration tab
Other tabs may be available, depending on the add-on type.
Information screen
This screen sums-up the characteristics of the selected add-on. Features and environment variables (if applicable) are shown.

Configuration screen
Add-ons can be managed from the Configuration tab. This screen is managed directly by the provider of the add-on.

Delete an add-on
To delete an add-on:
- Go to the Configuration page of the add-on.
- Click on Remove add-on.
Warning: After deletion of the add-on, all associated data will be removed.