Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.compartment.dev/llms.txt

Use this file to discover all available pages before exploring further.

compartment status fetches the current and recent deployment records for a project and prints them to your terminal. For each deployment you can see the service name, runtime health (pending, healthy, or unhealthy), promotion stage, and public route URL. Use this command after a deploy to confirm everything is running, or at any time to get a quick overview of what is live in an environment.

Usage

compartment status [options]

Options

FlagTypeDefaultDescription
--project <name>stringProject to query. Defaults to the name in compartment.yml when run from a project directory.
--env <name>stringproductionEnvironment to inspect.
--service <name>stringFilter results to a single named service.
--verbosebooleanfalseShow additional deployment fields beyond the default summary.
--output <format>text | jsontextOutput format. Use json for scripting and CI integrations.

Output fields

Each deployment row includes:
FieldDescription
serviceNameThe name of the service as defined in compartment.yml.
healthRuntime health: pending, healthy, or unhealthy.
promotionStageCurrent stage: active, building, checking_readiness, starting_candidate, switching_route, draining_previous, or rolled_back.
routeUrlPublic HTTPS URL for the deployment, or null if not yet routed.
statusOverall runtime status: queued, running, succeeded, or failed.
The response includes both activeDeployments (currently serving traffic) and deployments (recent history).

Examples

compartment status
If you run compartment status outside a directory that contains a compartment.yml, you must supply --project to identify the project you want to inspect.