mise prepare
- Usage:
mise prepare [FLAGS] - Aliases:
prep - Source code:
src/cli/prepare.rs
[experimental] Ensure project dependencies are ready
Runs all applicable prepare steps for the current project. This checks if dependency lockfiles are newer than installed outputs (e.g., package-lock.json vs node_modules/) and runs install commands if needed.
Providers with auto = true are automatically invoked before mise x and mise run unless skipped with the --no-prepare flag.
Flags
-f --force
Force run all prepare steps even if outputs are fresh
--list
Show what prepare steps are available
-n --dry-run
Only check if prepare is needed, don't run commands
--only… <ONLY>
Run specific prepare rule(s) only
--skip… <SKIP>
Skip specific prepare rule(s)
Examples:
mise prepare # Run all applicable prepare steps
mise prepare --dry-run # Show what would run without executing
mise prepare --force # Force run even if outputs are fresh
mise prepare --list # List available prepare providers
mise prepare --only npm # Run only npm prepare
mise prepare --skip npm # Skip npm prepareConfiguration:
Configure prepare providers in mise.toml:
```toml
# Built-in npm provider (auto-detects lockfile)
[prepare.npm]
auto = true # Auto-run before mise x/run
# Custom provider
[prepare.codegen]
auto = true
sources = ["schema/*.graphql"]
outputs = ["src/generated/"]
run = "npm run codegen"
[prepare]
disable = ["npm"] # Disable specific providers at runtime