mise bootstrap packages import
- 用法:
mise bootstrap packages import [FLAGS] - 效果: 修改状态
- 源代码:
src/cli/system/import.rs
Record installed Homebrew formulae in [bootstrap.packages]
Adds a brew: entry for each linked formula you installed yourself, skipping formulae that were installed only as dependencies; --all includes those too. Formulae from third-party taps are written with their full name, and each tap gets a [bootstrap.brew.taps] entry with the URL already in your config or the default GitHub URL. Writes the local config unless you pass -g, -e, or -p.
Flags
-e --env <ENV>— Write to the config file for this environment (mise.<ENV>.toml)-g --global— Write to the global config (~/.config/mise/config.toml)New entries go to the
write_targets.packagesfile when that setting is set.-m --manager <MANAGER>— Package manager to import from选项:
brewDefault:
brew--all— Import every linked formula, including dependencies-n --dry-run— Show the entries that would be written without writing them-p --path <PATH>— Write to this config file or directory别名:
--file-h --help— 打印帮助
示例
Show the entries that would be written
mise bootstrap packages import --dry-runWrite them to the local config
mise bootstrap packages importInclude formulae installed as dependencies
mise bootstrap packages import --allWrite to the global config
mise bootstrap packages import -g