Skip to content

qc env

Manage environments within the active application. This is the largest command group in the Cloud CLI — it covers selection, creation, observability (logs, metrics), and state control (start, stop, redeploy).

Command Description
qc env list List environments for the active application.
qc env select Switch to a different environment.
qc env current Show the active environment.
qc env create Create a new environment, optionally cloning from an existing one.
qc env logs View or tail environment logs.
qc env metrics Open a live metrics dashboard.
qc env state stop Stop an environment.
qc env state start Start an environment.
qc env state redeploy Redeploy an environment.
qc env vars List, get, set and unset environment variables (0.7.0 or later).

List environments for the active application.

Terminal window
qc env list [options]
Flag Description
--org <org> Override the active organization.
--app <app> Override the active application.
Terminal window
qc env list

Switch the active environment.

Terminal window
qc env select [envId] [options]
Name Description
envId Environment name to select. Omit for interactive selection.
Flag Description
--org <org> Override the active organization.
--app <app> Override the active application.
Terminal window
# Interactive
qc env select
# Direct
qc env select production

Show the current active environment.

Terminal window
qc env current

Create a new environment, optionally cloning configuration from an existing one.

Terminal window
qc env create [envName] [options]
Name Description
envName Name for the new environment.
Flag Description Default
--clone-from <envName> Existing environment to clone configuration from. —
--min-capacity <number> Minimum instance capacity. 1
--max-capacity <number> Maximum instance capacity. 10
--org <org> Override the active organization. —
--app <app> Override the active application. —
Terminal window
# Create a new environment from scratch
qc env create staging
# Clone from production
qc env create staging --clone-from production
# Create with custom scaling bounds
qc env create staging --min-capacity 2 --max-capacity 20

View or tail environment logs.

Terminal window
qc env logs [envId] [options]
Name Description
envId Environment to view logs for. Defaults to the active environment.
Flag Description Default
-f, --follow Tail logs in real time. false
-n, --lines <number> Number of lines to show. 100
--org <org> Override the active organization. —
--app <app> Override the active application. —
--env <env> Override the active environment. —
Terminal window
# Last 100 lines
qc env logs
# Tail in real time
qc env logs -f
# Last 500 lines
qc env logs -n 500

--lines only trims the entries that the platform returns. If the platform returns fewer entries than you ask for, qc prints those. For a longer window, use the logs page in the dashboard. With --follow, qc checks for new entries about every two seconds.


Display a live metrics dashboard showing CPU, memory, network, request counts, and error rates.

Terminal window
qc env metrics [envId] [options]
Name Description
envId Environment to monitor. Defaults to the active environment.
Flag Description Default
-r, --refresh <seconds> Refresh interval in seconds. 5
--no-clear Don’t clear the screen between updates. —
--org <org> Override the active organization. —
--app <app> Override the active application. —
--env <env> Override the active environment. —
Terminal window
# Default 5-second refresh
qc env metrics
# Faster refresh
qc env metrics -r 2
# Keep history visible
qc env metrics --no-clear

Stop the environment. Running containers are shut down.

Terminal window
qc env state stop [envId] [options]

--org, --app and --env overrides as above.

Terminal window
qc env state stop staging

Start a stopped environment.

Terminal window
qc env state start [envId] [options]

--org, --app and --env overrides as above.

Terminal window
qc env state start staging

Redeploy an environment. Use this to roll out a new Docker image without going through the full create-or-update cycle.

Terminal window
qc env state redeploy [envId] [options]
Flag Description
--tag <imageTag> Docker image tag to deploy.
--org <org> Override the active organization.
--app <app> Override the active application.
--env <env> Override the active environment.
Terminal window
qc env state redeploy production --tag v1.4.2

stop, start and redeploy do not ask for confirmation. Check the target with qc env current before you run them on production.

  • qc env vars — manage environment variables.
  • qc ssh — connect to an environment container.
  • qc backup — back up environment data.
  • qc app — environments live within an application.