type | title | position | shortdesc | tags | keywords | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
docs |
Manage your application |
3 |
Manage your application using the Clever Cloud CLI tool |
|
|
clever stop <app-name>
allows you to stop your application.
If you want to restart your application, you can use :
clever restart <app-name>
# Restart the application with a specific commit id
clever restart <app-name> --commit <commit-id>
You can use --quiet
when you restart, logs won't appear during deployment.
Use clever deploy
to push your commits, which then starts a deployment
Clever-tools allows you to get and update the environment of your application.
Simply use the command down below to get all your variables.
clever env
Use set
to add or update an environment variable and rm
to remove one.
# Add or update an environment variable
clever env set <variable-name> <variable-value>
# Remove an environment variable
clever env rm <variable-name>
Clever-tools allows you to load variables from STDIN.
cat <env-file> | clever env import
You can choose the scale of your application using --flavor <flavor>
where <flavor>
can be pico, nano, XS, S, M, L or XL.
# Change the scale of your application
clever scale --flavor <flavor>
# Set the minimum and maximum scale for your application
clever scale --min-flavor <min-flavor> --max-flavor <max-flavor>
You can choose the number of parallels instances using --instances <instances>
where <instance>
is a number between 1 and 20.
# Change the number of parallels instances
clever scale --instances <instances>
# Set the minimum and maximum number of parallels instances
clever scale --min-instances <min-instances> --max-instances <max-instances>
If you want to list your domain, use :
clever domain
Using clever domain
, you can add or remove domain names.
# Add a domain
clever domain add <domain-name>
# Remove a domain
clever domain remove <domain-name>