mise
作者: Jeff Dickey <@jdx>
用法: mise [FLAGS] [COMMAND | TASK] [ARGS]…
使用 mise COMMAND --help 查看随已安装版本提供的帮助。将 mise 标志放在任务名称之前;名称之后的参数会传递给该任务。方括号表示可选输入,尖括号表示必需输入,… 表示参数可以重复。不要输入这些表示法字符。
Arguments
[TASK]— Task to runShorthand for
mise run <TASK>.
全局标志
这些标志提供共享上下文。命令可以定义同名标志,因此请参阅该命令的页面以了解其位置和含义。效果标签描述命令预期执行的操作;配置评估、缓存和所需工具安装仍可能产生副作用。它们不保证提供沙箱隔离。
-C --cd <DIR>— Run as if mise were started in DIR-E --env <ENV>— Load themise.<ENV>.tomlconfig files (same as MISE_ENV)Repeat the flag or separate names with commas to load several environments.
-j --jobs <JOBS>— How many jobs to run in parallel; defaults to thejobssettingValues below 1 are treated as 1.
环境变量:
MISE_JOBS-q --quiet— 抑制非错误消息Environment Variable:
MISE_QUIET-v --verbose— Show extra output (use -vv for even more)-y --yes— Answer yes to all confirmation prompts--raw— Connect tasks and install commands directly to the terminalCommands then run one at a time. Same as
MISE_RAW=1or therawsetting.--locked— Require download URLs from the lockfile when installingInstalling fails when the lockfile has no pre-resolved URL for a tool on the current platform, so mise does not call the GitHub or aqua registry APIs to find one. Same as
MISE_LOCKED=1or thelockedsetting.--silent— Suppress all task output and mise non-error messages
标志
--no-config— 不加载任何配置文件Same as
MISE_NO_CONFIG=1.--no-env— Do not load environment variables from config filesSame as
MISE_NO_ENV=1.--no-hooks— Do not run hooks from config filesSame as
MISE_NO_HOOKS=1.-h --help— Print help
子命令
选择下面的命令系列。其页面列出了可用的子命令。
安装和检查工具
mise use— Install a tool and add it to configurationmise install— Install the tools in your config, or specific tool versionsmise install-into— Install a tool version into a directory outside misemise installs— [experimental] Inspect and choose identity-layout installationsmise uninstall— Remove installed tool versionsmise unuse— Remove tool requests from config files and prune unused installationsmise upgrade— Upgrade outdated toolsmise outdated— Show outdated tool versionsmise lock— Create or refresh lockfile versions, checksums, and download URLsmise latest— Print the latest version that matches a version requestmise ls— List installed and active tool versionsmise ls-remote— List tool versions available to installmise tool— Show information about a toolmise where— Show the install directory of a tool versionmise which— Show the path a tool's executable resolves tomise bin-paths— List the bin directories of the active toolsmise registry— List registry shorthand names and their backendsmise search— Search for available toolsmise backends— Manage backendsmise link— Symlink a tool version into misemise sync— Use tool versions installed by other version managersmise prune— Delete tool versions that nothing usesmise reshim— Create shims for executables provided by installed toolsmise tool-stub— Run a tool stub filemise packslip— Inspect and reset the signers mise has pinned for packslip tools
Shell 和环境
mise activate— Print the script to activate mise in an interactive shellmise deactivate— Print the script to disable mise in the current shell sessionmise completion— Generate shell completionsmise en— Start a subshell with mise's tools and environmentmise env— Print the environment for the current configurationmise exec— Run a command with mise's tools and environmentmise shell— Set a tool version for the current shell sessionmise set— Set, show, or list environment variables in mise.tomlmise unset— Remove environment variables from mise.tomlmise vars— List, set, and ask for config varsmise shell-alias— Manage shell aliasesmise tool-alias— Manage tool backend and version aliasesmise secrets— [experimental] Inspect the project's secrets sourcemise token— Show which Git provider token mise usesmise ssh— Open an SSH session, optionally borrowing read-only GitHub access
任务和项目自动化
mise run— Run tasks and their dependenciesmise tasks— Manage tasksmise watch— Run tasks and rerun them when files changemise deps— [experimental] Manage project dependenciesmise daemons— [experimental] Manage project daemons with pitchforkmise generate— Generate project files such as CI workflows, git hooks, and scripts
机器设置和镜像
mise bootstrap— Set up this machine from your mise configmise dotfiles— Deploy, track, and sync dotfilesmise oci— [experimental] Build, push, and run OCI images of a project's tools
配置和诊断
mise config— Manage config filesmise edit— Edit mise.toml interactivelymise fmt— Format mise TOML configurationmise settings— Manage settingsmise trust— Mark a config file as trustedmise untrust— Remove explicit trust for a configmise doctor— Check your mise setup for problemsmise cache— Manage the mise cachemise version— Show the version of misemise self-update— Update mise itselfmise implode— Remove the mise CLI and all related data
Plugins
mise plugins— Manage pluginsmise test-tool— Test that a tool installs and runs
Integrations and community
mise mcp— Run the Model Context Protocol server over stdin/stdoutmise skills— List and link the agent skills that active tools shipmise patrons— Show the individuals supporting mise as Patron-tier membersmise sponsors— Show the companies sponsoring mise and the jdx.dev open source tools