Skip to content

devsync pull

Apply repository artifacts back to local files.

Terminal window
devsync pull

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.

FlagDescription
--dry-runPreview what would be written locally without making any changes.
--profile NAMEOverride the active profile for this single run. Does not persist to settings.json.
--verboseShow per-entry and per-file detail during the operation.
Terminal window
# Apply the current sync repository state to local files
devsync pull
Terminal window
# 1. Initialize by cloning your existing dotfiles repo
devsync init https://github.com/yourname/dotfiles.git
# 2. Preview what would be applied
devsync pull --dry-run
# 3. Apply everything
devsync pull