Skip to main content
The cops bamboo deploy commands let you inspect Bamboo deployment environments. They call the Bamboo REST API (/rest/api/latest/deploy/environment).

cops bamboo deploy env get

Get details for a Bamboo deployment environment by environment ID.

Usage

cops bamboo deploy env get --env <environmentId> [flags]

Flags

--env
number
required
Deployment environment ID (integer). Find environment IDs in your Bamboo deployment project configuration.
--output
string
default:"table"
Output format: table, json, or markdown.
--insecure
boolean
default:"false"
Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
--profile
string
Override the active config profile.

Output columns

id, name, description, deploymentProjectId, deploymentProjectName
ColumnDescription
idEnvironment ID
nameEnvironment name (e.g. Production)
descriptionEnvironment description
deploymentProjectIdParent deployment project ID
deploymentProjectNameParent deployment project name

Examples

cops bamboo deploy env get --env 12345
id     name        description          deploymentProjectId  deploymentProjectName
─────  ──────────  ───────────────────  ──────────────────  ─────────────────────
12345  Production  Production environment  99                My App Deploy
List recent deployment results for a Bamboo deployment environment.

Usage

cops bamboo deploy env results --env <environmentId> [flags]

Flags

--env
number
required
Deployment environment ID (integer).
--limit
number
default:"5"
Maximum number of deployment results to return.
--output
string
default:"table"
Output format: table, json, or markdown.
--insecure
boolean
default:"false"
Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
--profile
string
Override the active config profile.

Output columns

version, state, lifeCycle, startedAt, finishedAt, triggeredBy
ColumnDescription
versionDeployment version name
stateDeployment state (e.g. SUCCESS, FAILED)
lifeCycleLifecycle state (e.g. FINISHED)
startedAtISO datetime the deployment started
finishedAtISO datetime the deployment finished
triggeredByUser or system that triggered the deployment

Examples

cops bamboo deploy env results --env 12345
version   state    lifeCycle  startedAt             finishedAt            triggeredBy
────────  ───────  ─────────  ────────────────────  ────────────────────  ─────────────
v1.4.2    SUCCESS  FINISHED   2026-03-19T09:50:00Z  2026-03-19T09:53:14Z  ci-user
v1.4.1    SUCCESS  FINISHED   2026-03-18T14:22:00Z  2026-03-18T14:25:01Z  jane.doe
Use cops bamboo deploy env results in release pipelines to verify that a deployment has reached the required state before promoting to the next environment.

cops bamboo plan

Fetch plan details and check plan status.

cops bamboo build

Get the latest build result for a plan.

Build docs developers (and LLMs) love