# mcloud-local

Run a Medusa Cloud build on your machine with mcloud local build. Use the skill to investigate a failed build or test build-variable changes before pushing.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 797 installs · ★ 235
- Author: medusajs
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/medusajs/medusa-agent-skills/tree/HEAD/plugins/medusa-cloud/skills/mcloud-local/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/mcloud-local

## What it does

\`mcloud-local` helps reproduce a Cloud build locally. It can identify a failed deployment, find its commit, and check out that revision in Git. The command reports progress as plain text, so use its exit status to tell whether the build passed; its output is not JSON.

Build the backend by default, or choose the storefront with `--type storefront`. Test a variable with `--var KEY=VALUE`, or supply a local file using `--env-file .env`. Docker caching starts disabled; `--docker-cache` turns it on. Docker must be installed and running, and the command must run from inside the project's Git repository. This skill covers build failures, not runtime failures; the instructions direct runtime debugging to `mcloud logs --deployment <id>`.

## Requirements
- Works with: Docker

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mcloud-local/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mcloud-local/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mcloud-local/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mcloud-local/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install medusajs/medusa-agent-skills mcloud-local
```

2. **Manually: put the files in place**
- File: `.github/skills/mcloud-local/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/medusajs/medusa-agent-skills --path plugins/medusa-cloud/skills/mcloud-local
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mcloud-local/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/medusajs/medusa-agent-skills/tree/HEAD/plugins/medusa-cloud/skills/mcloud-local/SKILL.md

## When to use it
- reproduce a failed Cloud build locally
- build the backend or storefront
- test a build-variable change without editing code
- identify the step that caused a build to fail

## Example prompts
- Reproduce the failed deployment's build at its commit.
- Build the storefront from `apps/storefront` with `mcloud local build --type storefront --storefront-path apps/storefront`.
- Test the build with `NODE_ENV=production` using `mcloud local build --var NODE_ENV=production`.

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 353600 installs

From the same set: [medusajs/medusa-agent-skills](https://affpapa.org/en/nevibecode/by/medusajs/medusa-agent-skills.md) — 14 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
