mcloud-local

Solid

Execute 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.

DevOps & Infrastructure 215 stars 26 forks Updated 2 days ago

Install

View on GitHub

Quality Score: 82/100

Stars 20%
78
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

# Cloud CLI: Local Command Execute `mcloud local build` to run a Cloud build on the local machine, mirroring how Cloud builds the project. Use it to debug `build-failed` deployments without pushing changes and waiting for a full Cloud build. ## Constraints - **No `--json` flag.** `local build` streams plaintext build output and signals the result through its **exit code** (`0` = success). Do not parse its output as JSON. - **Requires Docker installed and running**, and must run from **inside the project's Git repository**. - Reproduces `build-failed` (build) failures only — not `deployment-failed` (runtime) failures. For runtime failures, use `mcloud logs --deployment <id>`. - Available since mcloud CLI v0.1.10. - The Docker build cache is **disabled by default** so variable changes always invalidate the cache; pass `--docker-cache` to enable it. ## Command ### local build Run a Cloud build locally. Infers the root path and build variables from the linked Cloud project and environment. Builds the backend by default; pass `--type storefront` for the storefront. ```bash mcloud local build \ --organization <org-id> \ --project <project-id-or-handle> \ --environment <environment-handle> ``` **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>` — Environment whose variables are used (falls back to active context) - `-t...

Details

Author
medusajs
Repository
medusajs/medusa-agent-skills
Created
7 months ago
Last Updated
2 days ago
Language
JavaScript
License
None

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category