Skip to content

CLI Reference

The zerokie CLI is the primary interface for managing your apps on the Zerokie platform.

FlagDescription
--api-urlOverride the API endpoint (default: https://api.platform-dev.zerokie.com)
--versionPrint the CLI version
--helpShow help for any command

Authenticate with the Zerokie platform.

Terminal window
zerokie login --api-key YOUR_API_KEY
FlagRequiredDescription
--api-keyYesYour API key from onboarding

Credentials are saved to ~/.zerokie/config.json.

Create and deploy a new app. Zerokie supports two app types: container (default) and static.

Terminal window
# Container app (default)
zerokie apps create --name my-app --image nginx:alpine --port 80
# Static site
zerokie apps create --name my-site --type static
FlagRequiredDefaultDescription
--nameYesApp name (used in the URL)
--typeNocontainerApp type: static or container
--imageYes (container only)Docker image to deploy
--portYes (container only)Port your app listens on
--envNoEnvironment variable (KEY=VALUE, repeatable)
--cpuNo256CPU limit in MHz (container only)
--memoryNo512Memory limit in MB (container only)
--registry-usernameNoRegistry username for private images
--registry-passwordNoRegistry password for private images
--registry-urlNoRegistry server address (e.g. registry.gitlab.com)

When --type static is used, --image and --port are not required. The app type is immutable after creation.

List all your apps.

Terminal window
zerokie apps list

Returns a table with name, image, status, and URL for each app.

Show detailed status of a specific app. For static apps, the output includes: app type, platform URL, custom domains, and last deploy timestamp.

Terminal window
zerokie apps status <app-name>
ArgumentRequiredDescription
app-nameYesName of the app

Redeploy an app. The behavior depends on the app type.

Terminal window
zerokie apps deploy <app-name> --image registry.example.com/my-app:v2
ArgumentRequiredDescription
app-nameYesName of the app to redeploy
FlagRequiredDescription
--imageNoNew Docker image to deploy. If omitted, the app re-pulls and restarts with the current image tag.
--registry-usernameNoRegistry username for private images
--registry-passwordNoRegistry password for private images
--registry-urlNoRegistry server address (e.g. registry.gitlab.com)

For static apps, deploy uploads local files to the CDN. The CLI walks the local directory, acquires a deploy lock, uploads changed files, deletes stale remote files, and finalizes with a CDN cache purge.

Terminal window
zerokie apps deploy <app-name> --dir ./dist
ArgumentRequiredDescription
app-nameYesName of the static app to deploy
FlagRequiredDefaultDescription
--dirYesSource directory containing the files to deploy
--include-hiddenNofalseInclude dotfiles (hidden files). .git/ is always excluded.
--forceNofalseBreak an existing deploy lock (e.g. from a stuck deploy)

View container logs for an app.

Terminal window
zerokie apps logs <app-name>
ArgumentRequiredDescription
app-nameYesName of the app
FlagRequiredDefaultDescription
-f, --followNofalseStream logs in real-time
--stderrNofalseShow stderr instead of stdout

List the current environment variables for an app.

Terminal window
zerokie apps env list <app-name>
ArgumentRequiredDescription
app-nameYesName of the app

Outputs variables sorted alphabetically in KEY=value format.

Add or update environment variables for an app. This triggers a redeployment to apply the changes.

Terminal window
zerokie apps env set <app-name> KEY=VALUE [KEY=VALUE...]
ArgumentRequiredDescription
app-nameYesName of the app
KEY=VALUEYesOne or more environment variables to set (repeatable)

Remove environment variables from an app. This triggers a redeployment to apply the changes.

Terminal window
zerokie apps env unset <app-name> KEY [KEY...]
ArgumentRequiredDescription
app-nameYesName of the app
KEYYesOne or more variable names to remove (repeatable)

Delete an app and remove its DNS record.

Terminal window
zerokie apps delete <app-name>
ArgumentRequiredDescription
app-nameYesName of the app to delete

Add a custom domain to a static app. After running this command, create a CNAME record with your DNS provider pointing to the provided target.

Terminal window
zerokie domains add <app-name> <domain>
ArgumentRequiredDescription
app-nameYesName of the static app
domainYesDomain to add (e.g. www.example.com). Apex domains are not supported — use a subdomain.

Remove a custom domain from a static app.

Terminal window
zerokie domains remove <app-name> <domain>
ArgumentRequiredDescription
app-nameYesName of the static app
domainYesDomain to remove

Print the CLI version.

Terminal window
zerokie version