docs/cli/dotfiles/add.md
mise dotfiles addmise dotfiles add [FLAGS] <TARGET>…src/cli/dotfiles/add.rsAdd 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.
<TARGET>…Targets to add or update
-f --forceOverwrite existing sources without prompting
-g --globalWrite to the global config
-l --localWrite to the local config instead of the global config
-m --mode <MODE>Dotfile mode to write
-n --dry-runPrint the config/source updates without writing anything
-p --path <PATH>Write to this config file or directory
-s --source <PATH>Source path to use for a single target
-y --yesSkip the confirmation prompt
Examples:
mise dotfiles add ~/.zshrc
mise dotfiles add --mode copy ~/.config/starship.toml
mise dotfiles add --source dotfiles/gitconfig ~/.gitconfig