跳转到内容

mise ​

作者: Jeff Dickey <@jdx>

用法: mise [FLAGS] [COMMAND | TASK] [ARGS]…

使用 mise COMMAND --help 查看随已安装版本提供的帮助。将 mise 标志放在任务名称之前;名称之后的参数会传递给该任务。方括号表示可选输入,尖括号表示必需输入,… 表示参数可以重复。不要输入这些表示法字符。

Arguments ​

  • [TASK] — Task to run

    Shorthand for mise run <TASK>.

全局标志 ​

这些标志提供共享上下文。命令可以定义同名标志,因此请参阅该命令的页面以了解其位置和含义。效果标签描述命令预期执行的操作;配置评估、缓存和所需工具安装仍可能产生副作用。它们不保证提供沙箱隔离。

  • -C --cd <DIR> — Run as if mise were started in DIR

  • -E --env <ENV> — Load the mise.<ENV>.toml config 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 the jobs setting

    Values 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 terminal

    Commands then run one at a time. Same as MISE_RAW=1 or the raw setting.

  • --locked — Require download URLs from the lockfile when installing

    Installing 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=1 or the locked setting.

  • --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 files

    Same as MISE_NO_ENV=1.

  • --no-hooks — Do not run hooks from config files

    Same as MISE_NO_HOOKS=1.

  • -h --help — Print help

子命令 ​

选择下面的命令系列。其页面列出了可用的子命令。

安装和检查工具 ​

  • mise use — Install a tool and add it to configuration
  • mise install — Install the tools in your config, or specific tool versions
  • mise install-into — Install a tool version into a directory outside mise
  • mise installs — [experimental] Inspect and choose identity-layout installations
  • mise uninstall — Remove installed tool versions
  • mise unuse — Remove tool requests from config files and prune unused installations
  • mise upgrade — Upgrade outdated tools
  • mise outdated — Show outdated tool versions
  • mise lock — Create or refresh lockfile versions, checksums, and download URLs
  • mise latest — Print the latest version that matches a version request
  • mise ls — List installed and active tool versions
  • mise ls-remote — List tool versions available to install
  • mise tool — Show information about a tool
  • mise where — Show the install directory of a tool version
  • mise which — Show the path a tool's executable resolves to
  • mise bin-paths — List the bin directories of the active tools
  • mise registry — List registry shorthand names and their backends
  • mise search — Search for available tools
  • mise backends — Manage backends
  • mise link — Symlink a tool version into mise
  • mise sync — Use tool versions installed by other version managers
  • mise prune — Delete tool versions that nothing uses
  • mise reshim — Create shims for executables provided by installed tools
  • mise tool-stub — Run a tool stub file
  • mise packslip — Inspect and reset the signers mise has pinned for packslip tools

Shell 和环境 ​

  • mise activate — Print the script to activate mise in an interactive shell
  • mise deactivate — Print the script to disable mise in the current shell session
  • mise completion — Generate shell completions
  • mise en — Start a subshell with mise's tools and environment
  • mise env — Print the environment for the current configuration
  • mise exec — Run a command with mise's tools and environment
  • mise shell — Set a tool version for the current shell session
  • mise set — Set, show, or list environment variables in mise.toml
  • mise unset — Remove environment variables from mise.toml
  • mise vars — List, set, and ask for config vars
  • mise shell-alias — Manage shell aliases
  • mise tool-alias — Manage tool backend and version aliases
  • mise secrets — [experimental] Inspect the project's secrets source
  • mise token — Show which Git provider token mise uses
  • mise ssh — Open an SSH session, optionally borrowing read-only GitHub access

任务和项目自动化 ​

  • mise run — Run tasks and their dependencies
  • mise tasks — Manage tasks
  • mise watch — Run tasks and rerun them when files change
  • mise deps — [experimental] Manage project dependencies
  • mise daemons — [experimental] Manage project daemons with pitchfork
  • mise generate — Generate project files such as CI workflows, git hooks, and scripts

机器设置和镜像 ​

  • mise bootstrap — Set up this machine from your mise config
  • mise dotfiles — Deploy, track, and sync dotfiles
  • mise oci — [experimental] Build, push, and run OCI images of a project's tools

配置和诊断 ​

Plugins ​

Integrations and community ​

  • mise mcp — Run the Model Context Protocol server over stdin/stdout
  • mise skills — List and link the agent skills that active tools ship
  • mise patrons — Show the individuals supporting mise as Patron-tier members
  • mise sponsors — Show the companies sponsoring mise and the jdx.dev open source tools