Reference
Install → init → map projects → run targets. Cheat sheet for the setup path (moon v2 docs).
proto install moon (pin via
.prototools)
~/.moon/bin + PATH
@moonrepo/cli devDep (global binary prefers
repo package when present)
$ moon init
# optional: moon init --minimal
.moon/ with required workspace.*.gitignore; infers VCS.moon or .config/moon
Folders are invisible until listed in
.moon/workspace.* → projects (required).
# map
projects:
client: 'apps/client'
server: 'apps/server'
# globs
projects:
- 'apps/*'
- 'packages/*'
# both
projects:
globs:
- 'apps/*'
sources:
www: 'www'
Inspect: moon project <id>
.moon/tasks/** (inheritance by language/layer/tags…)
<project>/moon.* (optional)$ moon run app:build
$ moon run client:dev server:dev
$ moon run :test
$ moon run '~:test'
$ moon run app:build --affected
$ moon run app:build -- --force # passthrough args after --
moon run builds an action graph, runs deps first (topo),
hashes/caches tasks. Default fail-fast.
moon needs VCS for hashing/affected. Defaults to git; set
vcs.defaultBranch if not master.