mise bootstrap dotfiles add
- Usage:
mise bootstrap dotfiles add [FLAGS] [TARGET]… - Effect: modifies state
- Source code:
src/cli/dotfiles/add.rs
Add or update dotfiles in [dotfiles]
If the target is already managed, this updates its source from the live target. Otherwise it creates a [dotfiles] entry and seeds the source under dotfiles.root unless --source is provided. Captured entries are applied unless --no-apply is passed. Use --dry-run to preview both the source capture and config write without making those changes.
Arguments
[TARGET]…— Targets to add or update
Flags
--changed— Update the sources of every changed file managed in copy mode-f --force— Overwrite existing sources without prompting-g --global— Write to the global config-l --local— Write to the local config instead of the global config-m --mode <MODE>— Dotfile mode to write-n --dry-run— Print the config/source updates without writing anything--no-apply— Add the entry without applying it-p --path <PATH>— Write to this config file or directory-s --source <PATH>— Source path to use for a single target-y --yes— Skip the confirmation prompt-h --help— Print help
Examples
mise bootstrap dotfiles add ~/.zshrc
mise bootstrap dotfiles add --mode copy ~/.config/starship.toml
mise bootstrap dotfiles add --source dotfiles/gitconfig ~/.gitconfig
mise bootstrap dotfiles add --changed