deploy¶
Deploy files from a branch to your system.
Usage¶
What It Does¶
- Reads the target branch's
dot-man.tomlconfiguration - Copies files from the repository to their local paths
- Runs pre/post deploy hooks if configured
- Handles secret decryption (restores encrypted values)
Options¶
| Flag | Description |
|---|---|
--branch, -b |
Branch to deploy from (default: current) |
--dry-run, -n |
Show what would be deployed without making changes |
--force, -f |
Overwrite existing files without prompting |
--section, -s |
Deploy only a specific section |
Examples¶
# Deploy current branch
dot-man deploy
# Preview deployment
dot-man deploy --dry-run
# Deploy from another branch
dot-man deploy --branch work
# Deploy specific section
dot-man deploy --section nvim
Deploy Behaviour¶
| Strategy | Behaviour |
|---|---|
replace |
Overwrite existing files (default) |
rename_old |
Back up existing file as file.bak before overwriting |
ignore |
Skip if file already exists |
Symlink Mode¶
If deploy_method = "symlink" is set in a section, files are symlinked instead of copied:
Hooks¶
Pre/post deploy hooks run automatically: