devsync pull
Apply repository artifacts back to local files.
Synopsis
Section titled “Synopsis”devsync pullDescription
Section titled “Description”devsync pull reads artifacts from the sync repository (~/.config/devsync/sync/) and materializes them onto the corresponding local paths. It is the reverse of devsync push.
For entries with mode: secret, the artifact is decrypted using the configured age identity before being written to disk. The decrypted content is written to the local path; the .devsync.secret artifact in the repository is never changed.
After writing each file, pull restores the original file permissions.
pull does not run git pull. It only reads what is already present in the local sync repository directory. To receive changes from a remote first, use git pull inside the sync directory (via devsync cd), then run devsync pull.
Options
Section titled “Options”| Flag | Description |
|---|---|
--dry-run | Preview what would be written locally without making any changes. |
--profile NAME | Override the active profile for this single run. Does not persist to settings.json. |
--verbose | Show per-entry and per-file detail during the operation. |
Examples
Section titled “Examples”# Apply the current sync repository state to local filesdevsync pull# Preview what pull would write without making changesdevsync pull --dry-run# Pull only entries for the "personal" profile (one-time override)devsync pull --profile personalTypical workflow on a new machine
Section titled “Typical workflow on a new machine”# 1. Initialize by cloning your existing dotfiles repodevsync init https://github.com/yourname/dotfiles.git
# 2. Preview what would be applieddevsync pull --dry-run
# 3. Apply everythingdevsync pull