Building
The three ways to deploy, how environment variables and secrets work, and what happens when a deploy goes wrong.
A deploy takes something you already have — an image, a repository, or a name from the app catalog — and runs it as a container on one of your servers. The command is the same in all three cases; only the argument changes.
Pass an image reference. Anything with a registry hostname (ghcr.io/..., quay.io/...) or a tag (redis:7) is treated as an image and pulled directly. Nothing is built.
clikdeploy deploy nginx:alpine
Pass a GitHub URL and the platform clones it, builds an image from it, and runs the result. Use -b to pick a branch; a /tree/<branch> URL works too.
clikdeploy deploy https://github.com/owner/repo -b main
Pass a bare name to look it up in the ClikDeploy app catalog. A name not in the catalog is refused. To search Docker Hub, opt in with --docker-hub so the registry source is explicit.
clikdeploy templates list clikdeploy deploy <catalog-name>
# explicit public-registry search for an uncatalogued name clikdeploy deploy ghost --docker-hub
If you have more than one server connected, add --server with the server name or ID. Without it the CLI stops and lists your servers rather than guessing.
clikdeploy deploy <catalog-name> --server prod-1
Environment variables are the values your container reads at startup. You set them per app, and they are applied on the next deploy.
clikdeploy app env list my-app clikdeploy app env set my-app LOG_LEVEL debug # read a secret without putting its value in shell history or process arguments read -rs API_KEY printf %s "$API_KEY" | clikdeploy app env set my-app API_KEY --secret --secret-stdin unset API_KEY clikdeploy app env delete my-app LOG_LEVEL
--secret marks the value for masking in output. Secret-looking variable names are also masked by default. Use --secret-stdin for CLI writes so the value is not included in command arguments; the value still reaches your container at runtime.
Credential values and environment values marked secret are encrypted at rest. The platform decrypts them when a user with permission reads or uses them and when a deployment needs to inject them into a container. Ordinary configuration values are not secret credentials and may be visible to users who can manage the app.
Most apps need values nobody wants to invent by hand: a database password, a connection string, a session secret. The platform generates those — internally this is called clikvars. The rule from the outside is: if your app needs a value and you did not set one, a correct value is generated and injected.
SECRET_KEY_BASE (Rails), APP_KEY (Laravel), SECRET_KEY (Django), NEXTAUTH_SECRET (Next.js).*_PASSWORD, *_TOKEN or ADMIN_* key that the image itself asks for, so the app does not boot on a published default.Third-party credentials are never invented. A Stripe key, a GitHub token or an OAuth client secret has no value the platform could correctly guess, so those keys are left for you to set.
A value you set always wins. Generation only ever fills a key that has no value yet — it never overwrites one.
| Source | Wins over |
|---|---|
You | Everything below. Set once, it stays set. |
Catalog / compose | Values that came with the image or its compose file. |
Generated | Only applied to keys still empty after the two above. |
A backing service is something your app talks to but is not — Postgres, MySQL, MongoDB, Redis. When your app needs one, the platform runs it alongside your app on the same server and writes the connection details into your app's environment.
Set the environment variable names your application expects in its app settings. Review each connection value before deploying; deployment uses the values saved for that app.
clikdeploy app database status my-app
Nothing is thrown away. A failed deploy's containers, volumes and networks are kept exactly as they were, so you can look at them and retry. They are only cleaned up after about a week of no activity — no retry, no opening the app — and you are warned a day before that happens.
Start with diagnose. It correlates the deploy status, the stage that failed, the error lines and the likely next action in one place.
# start here clikdeploy diagnose my-app # your container's own output, live clikdeploy app logs my-app -f clikdeploy app logs my-app -n 500 # the build and deploy stages for one deployment clikdeploy deployment logs <deploymentId> clikdeploy deployment diagnose <deploymentId> # everything that happened to this app, in order clikdeploy timeline app my-app --since 6h
clikdeploy app logs is your container. clikdeploy deployment logs is the platform building and starting it. When an app builds fine but will not stay up, the answer is almost always in the first.
# run the same deploy again clikdeploy app retry my-app # see what you can roll back to, then do it clikdeploy app rollback my-app --list-targets clikdeploy app rollback my-app --target <deploymentId>
A backup records the app configuration and environment, and captures the database and attached data volumes when those components are available. Backups are stored off the app server. The backup record reports components that were skipped or could not be captured; review it before relying on a backup. Automatic backups run at most once per app per day. A restore creates a safety backup before changing the target unless you explicitly skip that step.
clikdeploy app backup create my-app --label before-upgrade clikdeploy app backup list my-app clikdeploy app backup restore my-app <backupId>
How long backups are kept depends on your plan: 7 days on Free, 30 on Pro, 90 on Team, 365 on Enterprise.
Next: domains and uptime to put a real URL on the app you just deployed.