Cookbook
Cookbook: Recipes
Short recipes for common tasks.
Installation & Update
1. Install on a fresh machine
# After the verified release download in the installation guide:
2. Update everything
3. Update dotfiles only (no tools)
4. Preview what would change
dot apply --dry-run passes --dry-run to chezmoi but still runs the post-apply steps (snapshot, repair, cache pre-warm), so call chezmoi directly for a pure preview.
Themes
5. Switch to a specific theme
6. Toggle between dark and light
7. Open the interactive theme picker
8. List paired wallpaper themes
9. Add a new wallpaper-driven theme
10. Regenerate all themes from scratch
Configuration
11. Edit the source directory
12. Add a new config file to chezmoi
13. Remove a managed file
chezmoi forget stops managing the file and leaves it in place.
14. Show configuration drift
15. Show diff against source
Secrets
16. Encrypt a new secret file
17. Edit an encrypted file
# or, for a file added with chezmoi add --encrypt:
18. Rotate your Age key
# SOPS key (~/.config/sops/age/keys.txt):
# Put the new public key (printed above) in .sops.yaml. Keep the old key
# in keys.txt so sops can still decrypt, then re-encrypt:
19. Check for accidental secret leaks
Diagnostics
20. Quick health check
21. Auto-fix common issues
22. Check startup performance
23. See the health score
24. Recent metrics
Fleet
25. Publish this host's attestation to a shared fleet store
Run it on each host; the evidence lands under <store>/<fleet-id>/<hostname>/.
26. Sync dotfiles to every fleet host
Each host runs dot config update && dot doctor; --cmd '<shell>' runs something else instead.
27. Check drift on every fleet host
AI & Agents
28. Show installed AI tools
29. Switch agent mode
30. Verify MCP policy
Recovery
31. Rollback the last apply
32. Create an offline bundle
The bundle holds ~/.dotfiles, ~/.config/chezmoi and ~/.local/share/mise. It leaves out your age key (any file there with an AGE-SECRET-KEY line) and names it: carry the key to the other machine separately.
33. Restore from a bundle
&&
The archive stores absolute paths, so restore it as the same user with the same home directory. Where dot is already installed, dot config import <bundle> does the unpacking: it names what it will overwrite and asks first (--yes skips the question).
Development
34. Run a test locally
35. Run all tests
36. Lint shell scripts
37. Simulate chaos to test self-healing
Manual
38. Open the manual in a browser
39. Download the PDF
40. Read the manual in a terminal
|