mcloud-deployments

Führen Sie mcloud deployments-Befehle aus, um Bereitstellungen aufzulisten, Bereitstellungsdetails abzurufen und Build-Logs abzurufen. Verwenden Sie dies beim Auflisten von Bereitstellungen, Überprüfen von Bereitstellungen…

npx skills add https://github.com/medusajs/medusa-agent-skills --skill mcloud-deployments

Cloud CLI: Deployments Commands

Execute mcloud deployments commands to inspect deployments and their build logs.

Constraints

  • Always pass --json when parsing output — plaintext format may change.
  • Always confirm context (mcloud whoami --json) before running commands if org/project are not already known.
  • Use --deployment IDs in the format depl_* or build IDs; build IDs resolve to their latest deployment automatically.

Commands

deployments list

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 JSON

deployments get

Retrieve 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>, --json

deployments build-logs

Fetch 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

Deployment Statuses

StatusMeaning
createdBuild not started yet
buildingBuild running
builtBuild succeeded, awaiting rollout
deployingRolling out to environment
deployedLive and serving traffic
build-failedBuild step failed — read build-logs
deployment-failedBuild succeeded, runtime crashed — read mcloud logs
timed-outExceeded time budget (backend only)
canceledSuperseded by a newer deployment
idleNo longer the active deployment

Examples

# 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

Mehr Skills von medusajs

creating-agents-in-medusa
medusajs
Verwenden Sie dies beim Erstellen eines internen, verwaltungsorientierten KI-Agenten in einem Medusa-Projekt. Diese Agenten werden von Händlern und Ladenbetreibern bedient – nicht von Kunden. Umfasst…
mcloud-local
medusajs
Führe den mcloud local build aus, um einen Cloud-Build auf der lokalen Maschine zu reproduzieren. Verwende dies beim Debuggen einer fehlgeschlagenen Build-Bereitstellung, ohne in den verfolgten Branch zu pushen,…
reviewing-prs
medusajs
Überprüft GitHub-Pull-Requests für das Medusa-Repository. Prüft die Einhaltung der PR-Vorlage, Beitragsrichtlinien, Code-Konventionen, Sicherheit, Leistung und…
writing-releases
medusajs
Schreibt GitHub-Release-Notizen für Medusa-Releases im etablierten Stil. Verwenden Sie dies, wenn Sie einen Release-Entwurf aus einer Liste von Commits und PRs erstellen …
writing-tsdocs
medusajs
Fügt TypeDoc- (TSDoc-) Kommentare zu TypeScript-Quelldateien in der Medusa-Codebasis hinzu und aktualisiert sie. Umfasst HTTP-Typen, API-Routen, UI-Komponenten, Datenmodelle, Services…
mcloud-variables
medusajs
Führen Sie mcloud-Variablen-Befehle aus, um Umgebungsvariablen für eine Cloud-Umgebung aufzulisten und abzurufen. Verwenden Sie dies beim Überprüfen, Lesen oder Exportieren von Umgebungsvariablen…
writing-docs
medusajs
Schreibt und aktualisiert Medusa-Dokumentations-MDX-Dateien für die Projekte book, resources, ui, user-guide und cloud. Verwenden Sie dies bei Dokumentationsänderungen basierend auf…
building-storefronts
medusajs
SDK-first Frontend-Integration für Medusa-Storefronts mit React-Query-Mustern und kritischen API-Aufrufregeln. Verwenden Sie immer das Medusa JS SDK für alle API-Anfragen – niemals reguläres fetch(), da ihm die erforderlichen Header fehlen (publishable API-Key für Store-Routen, Auth für Admin-Routen). Übergeben Sie einfache JavaScript-Objekte an SDK-Methoden; verwenden Sie niemals JSON.stringify() für Body-Parameter, da das SDK die Serialisierung automatisch übernimmt. Verwenden Sie useQuery für GET-Anfragen und useMutation für POST/DELETE-Anfragen,...