mcloud-local
Installation
SKILL.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
--jsonflag.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.