/medusa-cloud:mcloud-deploymentsfrom medusa-cloud
Lists deployments, retrieves deployment details, and fetches build logs for debugging build failures using the mcloud CLI.
Ships in medusa-cloud. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Execute mcloud deployments commands to inspect deployments and their build logs.
--json when parsing output — plaintext format may change.mcloud whoami --json) before running commands if org/project are not already known.--deployment IDs in the format depl_* or build IDs; build IDs resolve to their latest deployment automatically.List recent deployments for a project (default: 20 most recent across all environments).
mcloud deployments list --organization <org-id> --project <project-id-or-handle> --json
Options:
-o/--organization <id> — Organization ID (falls back to active context)-p/--project <id-or-handle> — Project ID or handle (falls back to active context)-e/--environment <handle> — Filter by environment handle--environment-type <production|long-lived|preview> — Filter by environment type--commit <sha> — Filter by Git commit SHA (full or prefix)--limit <1-200> — Max results (default: 20)--offset <number> — Pagination offset (default: 0)--json — Output as JSONRetrieve a single deployment's details by ID.
mcloud deployments get <deployment-id> --organization <org-id> --project <project-id-or-handle> --json
Arguments:
deployment — Deployment ID (required)Options:
-o/--organization <id>, -p/--project <id-or-handle>, --jsonFetch build logs for a deployment. Use this to debug build-failed status.
mcloud deployments build-logs <deployment-id> --organization <org-id> --project <project-id-or-handle>
Arguments:
deployment — Deployment ID (required)Options:
-o/--organization <id>, -p/--project <id-or-handle>--type <backend|storefront> — Which build log stream to read (default: backend)--json — Output as JSON| Status | Meaning |
|---|---|
created | Build not started yet |
building | Build running |
built | Build succeeded, awaiting rollout |
deploying | Rolling out to environment |
deployed | Live and serving traffic |
build-failed | Build step failed — read build-logs |
deployment-failed | Build succeeded, runtime crashed — read mcloud logs |
timed-out | Exceeded time budget (backend only) |
canceled | Superseded by a newer deployment |
idle | 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
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub medusajs/medusa-agent-skills --plugin medusa-cloud9 skills in this plugin
/mcloud-authExecute mcloud authentication and context commands: login, logout, whoami, use, version, and signup. Use when setting up the CLI, switching accounts, verifying auth state, setting the active org/project/environment context, or checking the CLI version./mcloud-environmentsExecute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when managing environment lifecycle, redeploying after variable changes, or starting new builds from source./mcloud-localExecute mcloud local build to reproduce a Cloud build on the local machine. Use when debugging a build-failed deployment without pushing to the tracked branch, iterating on a build fix, or testing build-variable changes locally. Requires Docker and must run inside the project's Git repo./mcloud-logsExecute mcloud logs to fetch and stream runtime logs for Cloud environments. Use when reading backend or storefront logs, filtering by time range, searching for errors, or scoping logs to a specific deployment./mcloud-organizationsExecute mcloud organizations commands to list or get Cloud organizations. Use when discovering organizations, resolving organization IDs by name, or retrieving organization details including members and subscription./mcloud-projectsExecute mcloud projects commands to list, get, or delete Cloud projects. Use when discovering projects, resolving project handles by name, or retrieving project details including linked environments.Other plugins' skills for the same job