Loading...
Loading...
Execute mcloud deployments commands to list deployments, retrieve deployment details, and fetch build logs. Use when listing deployments, checking deployment status, or reading build output for debugging build failures.
npx skill4agent add medusajs/medusa-agent-skills mcloud-deploymentsmcloud deployments--jsonmcloud whoami --json--deploymentdepl_*mcloud deployments list --organization <org-id> --project <project-id-or-handle> --json-o/--organization <id>-p/--project <id-or-handle>-e/--environment <handle>--environment-type <production|long-lived|preview>--commit <sha>--limit <1-200>20--offset <number>0--jsonmcloud deployments get <deployment-id> --organization <org-id> --project <project-id-or-handle> --jsondeployment-o/--organization <id>-p/--project <id-or-handle>--jsonbuild-failedmcloud deployments build-logs <deployment-id> --organization <org-id> --project <project-id-or-handle>deployment-o/--organization <id>-p/--project <id-or-handle>--type <backend|storefront>backend--json| Status | Meaning |
|---|---|
| Build not started yet |
| Build running |
| Build succeeded, awaiting rollout |
| Rolling out to environment |
| Live and serving traffic |
| Build step failed — read |
| Build succeeded, runtime crashed — read |
| Exceeded time budget (backend only) |
| Superseded by a newer deployment |
| No longer the active deployment |
# List all deployments (with active context set)
mcloud deployments list --json
# Find most recent build-failed deployment
mcloud deployments list --json \
| jq -r '[.[] | select(.backend_status == "build-failed")][0].id'
# Get deployment details
mcloud deployments get bld_01ABC123 --json
# Read backend build logs
mcloud deployments build-logs bld_01ABC123
# Read storefront build logs
mcloud deployments build-logs bld_01ABC123 --type storefront
# Filter deployments by commit SHA
mcloud deployments list --commit a1b2c3d --json | jq '.'
# Get deployments for a specific environment
mcloud deployments list --environment production --json