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 goRegistry shorthands count as the backend they resolve to, so
jqis 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 versionsHides requested versions that are not installed.
--grouped— List tools in a separate section for each backendCannot 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 onesmise tracks the config files it loads so
mise prunekeeps the versions they use.--monorepo— Also list tools from every config root in[monorepo].config_rootsRequires
monorepo_root = trueand an explicitconfig_rootslist 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 withmise prune-h --help— Print help
Examples
Show installed versions and the requests from the loaded config files
mise lsShow only versions the loaded config files request
mise ls --currentFind requested versions that are not installed
mise ls --missing机器可读的输出:以工具名称为键的对象
mise ls --json提供工具参数时,JSON 输出为其版本记录的数组
mise ls node --jsonInclude requests from every config file mise has seen
mise ls --all-sourcesShow only tools from the go or cargo backends
mise ls --backend go --backend cargoList tools in a separate section for each backend
mise ls --grouped