CLI Reference¶
Global flags¶
| Flag | Description |
|---|---|
--file <PATH> |
Path to Mustfile.toml (default: search upward) |
--profile <NAME> |
Apply [env.<profile>] overrides (default: default) |
-j, --parallelism <N> |
Max parallel recipes (default: num_cpus) |
--dry-run |
Plan without executing |
--fail-fast |
Cancel in-flight recipes on first failure |
-v, -vv, -vvv |
Verbosity level |
--target <TARGET> |
Cross-compilation target or group name |
-h, --help |
Show help |
-V, --version |
Show version |
Commands¶
must build [RECIPES...]¶
Build one or more recipes. Defaults to the build recipe.
must build # build default "build" recipe
must build api frontend # build specific recipes
must build --dry-run # show what would run
must build --profile release
must run [RECIPES...]¶
Alias for must build.
must test [RECIPES...]¶
Run test recipes. Defaults to the test recipe.
must fmt¶
Run the fmt recipe if defined.
must lint¶
Run the lint recipe if defined.
must list¶
List all recipes with their type and dependencies.
Output:
must graph¶
Visualize the dependency graph.
must explain <RECIPE>¶
Show detailed information about a recipe: cache key, inputs, outputs, environment, and command preview.
Output:
Recipe: build
Type: rust-bin
Package: my-app
Cache: hash
Key: 74852f22d02e93ac...
Inputs: src/main.rs, Cargo.toml
Outputs: target/release/my-app
Command: cargo build --release -p my-app
must outdated¶
Show cache status for all recipes.
Output:
✓ build [fresh] rust-bin cached 4s ago
⚠ test [stale] rust-test deps changed
✗ lint [miss] shell never built
must diff¶
Show what changed since the last build.
must watch [RECIPES...]¶
Watch for file changes and rebuild automatically.
must log [RECIPE]¶
Show build log output.
must log build # show last build log
must log build --follow # stream in real time
must log --clear # clear all logs
must cache <ACTION>¶
Manage the build cache.
must cache list # list cached recipes
must cache du # show cache disk usage
must cache invalidate <RECIPE> # invalidate a recipe's cache
must cache invalidate --all # invalidate everything
must plugin <ACTION>¶
Manage Lua plugins.
must plugin list # list discovered plugins
must plugin check <NAME> # validate a plugin
must plugin install <URL> # install from URL
must plugin remove <NAME> # remove a plugin
must import <PATH>¶
Import a Makefile and generate a starter Mustfile.toml.
must init¶
Initialize a new Mustfile.toml interactively.
must clean [--cache]¶
Remove build outputs. With --cache, also clears the build cache.
must doctor¶
Check toolchains and environment.
Output:
must foreach -- <COMMAND>¶
Run a command in each recipe's context.
must completions <SHELL>¶
Generate shell completions.
Environment variables¶
| Variable | Description |
|---|---|
MUST_ARGS |
Extra arguments appended to every must invocation |
MUST_FILE |
Default Mustfile.toml path (same as --file) |
MUST_PROFILE |
Default profile (same as --profile) |