mise tool-stub
- Usage:
mise tool-stub <FILE> [ARGS]… - Source code:
src/cli/tool_stub.rs
Run a tool stub file
A tool stub is an executable file whose shebang is #!/usr/bin/env -S mise tool-stub and whose body is TOML naming a tool, version, and executable. Running the stub runs this command, which installs the tool if needed and runs it with the stub's arguments. You rarely call it directly; create stubs with mise generate tool-stub.
#!/usr/bin/env -S mise tool-stub
# Node.js 24
tool = "node"
version = "24"
bin = "node"See https://mise.jdx.dev/dev-tools/tool-stubs.html
Arguments
<FILE>— Path to the TOML tool stub file to executeEvery field is optional:
versiondefaults tolatest,tooldefaults to the stub's file name (orhttp:<file name>when the stub setsurlor platform URLs), andbindefaults to the stub's file name. A stub can also set backend-specific options.[ARGS]…— Arguments to pass to the toolEvery argument after the stub path is passed to the tool unchanged, including a literal
--.