medusajs/medusa-agent-skills/mcloud-local
Claude Code and agent skill by medusajs/medusa-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install medusajs/medusa-agent-skills/mcloud-localSKILL.md
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 buildstreams 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 — notdeployment-failed(runtime) failures. For runtime failures, usemcloud 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-cacheto 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.
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/--type <backend|storefront>— Build type (default:backend)--root-path <path>— Backend root path relative to the repo root (inferred if omitted;.if no Cloud project found)--storefront-path <path>— Storefront path relative to the repo root, for--type storefront(inferred if omitted)--env-file <path>— Use a local.envfile instead of the Cloud environment's variables-v/--var <KEY=VALUE>— Override a single build variable; repeatable--docker-cache— Enable the Docker build cache (default:false)
Output:
- On success (exit
0), the backend image is tagged<repository-name>:cloud-local-build-<commit-hash>; a storefront build writes its output directory and prints the path. - On failure (non-zero exit), the command exits with the failing step's error — debug it as you would a Cloud build.
Reproduce a Build Failure
Check out the same commit the failed deployment built so the local build matches, then route on the exit code:
Once the local build exits 0, push the fix to the tracked branch and start a fresh Cloud build with mcloud environments trigger-build <env>.
Examples
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/medusa-cloud/skills/mcloud-local/SKILL.md
Popularity
- Repository stars
- 202
- Repository forks
- 24
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/medusajs/medusa-agent-skills/mcloud-local)