<!-- @generated by usage-cli from usage spec -->
# `mise bootstrap dotfiles add`

- **Usage**: `mise bootstrap dotfiles add [FLAGS] <TARGET>…`
- **Effect**: modifies state
- **Source code**: [`src/cli/dotfiles/add.rs`](https://github.com/jdx/mise/blob/main/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.

## Arguments

### `<TARGET>…`

Targets to add or update

## Flags

### `-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

Examples:

```
mise bootstrap dotfiles add ~/.zshrc
mise bootstrap dotfiles add --mode copy ~/.config/starship.toml
mise bootstrap dotfiles add --source dotfiles/gitconfig ~/.gitconfig
```
