| Task | Command |
|---|---|
| Preview what would change | chezmoi diff |
| Apply all changes | chezmoi apply |
| Dry run (no changes) | chezmoi apply --dry-run |
| Edit a managed file | chezmoi edit ~/.zshrc |
| Pull upstream + apply | chezmoi update |
| Re-add a locally modified file | chezmoi re-add ~/.zshrc |
| Check managed files | chezmoi managed |
| Verify deployed state | chezmoi verify |
| Health check | chezmoi doctor |
# 1. Edit the source template
chezmoi edit ~/.zshrc
# 2. Preview what would change
chezmoi diff
# 3. Apply
chezmoi apply
# 4. Commit the change
cd $(chezmoi source-path)
git add -A && git commit -m "feat: add new alias"
git pushchezmoi updateThis does git pull on the source repo and then chezmoi apply in one step.