跳转到内容

mise ls ​

  • 用法: mise ls [FLAGS] [INSTALLED_TOOL]…
  • 别名: list
  • 效果: 只读
  • 源代码: src/cli/ls.rs

列出已安装和已激活的工具版本

Lists the tools mise knows about: versions that are installed, and versions requested by a config file (active) whether or not they are installed. Each row shows the tool, the version (marked (missing) when it is not installed), the config file that requests it, and the request as written.

Arguments ​

  • [INSTALLED_TOOL]… — Only show these tools

标志 ​

  • --truncate — 截断过长的终端输出以适应可用宽度

    Default: true

  • -b --backend <BACKEND> — Only show tools from this backend, such as aqua, cargo, core, or go

    Registry shorthands count as the backend they resolve to, so jq is listed under aqua. Repeat the flag to show several backends.

  • -c --current — Only show versions the loaded config files request

  • -g --global — Only show versions the global config requests

  • -i --installed — Only show installed versions

    Hides requested versions that are not installed.

  • --grouped — List tools in a separate section for each backend

    Cannot be combined with --json; use --backend to filter JSON output.

  • -J --json — Output in JSON format

  • -l --local — Only show versions the local config requests

  • -m --missing — Only show requested versions that are not installed

  • --all-sources — Show requests from every config file mise has seen, not only loaded ones

    mise tracks the config files it loads so mise prune keeps the versions they use.

  • --monorepo — Also list tools from every config root in [monorepo].config_roots

    Requires monorepo_root = true and an explicit config_roots list in the monorepo root's config. Uses the active MISE_ENV.

    Environment Variable: MISE_MONOREPO

  • --no-header — Do not print the header row

  • --outdated — Show whether each version is outdated

  • --prefix <PREFIX> — Only show versions starting with PREFIX (requires a tool argument)

  • --prunable — List only tools that can be pruned with mise prune

  • -h --help — Print help

Examples ​

Show installed versions and the requests from the loaded config files

mise ls

Show only versions the loaded config files request

mise ls --current

Find requested versions that are not installed

mise ls --missing

机器可读的输出:以工具名称为键的对象

mise ls --json

提供工具参数时,JSON 输出为其版本记录的数组

mise ls node --json

Include requests from every config file mise has seen

mise ls --all-sources

Show only tools from the go or cargo backends

mise ls --backend go --backend cargo

List tools in a separate section for each backend

mise ls --grouped

相关文档 ​