Skip to content

devsync track

Register local files or directories as sync targets.

Terminal window
devsync track <path> [<path>...]

devsync track registers one or more local paths in manifest.json so that devsync knows to include them in future push and pull operations.

Paths must reside under your home directory ($HOME). They are stored in the manifest as home-relative paths and are resolved back to absolute paths at runtime.

If a path is already tracked, running track again updates its mode and profile assignments without creating a duplicate entry.

Repository artifacts are stored at ~/.config/devsync/sync/{profile}/{relative-home-path} (or at the root level for entries not assigned to a profile).

ArgumentDescription
pathOne or more absolute or ~-prefixed paths to track. At least one path is required.
FlagDescription
--mode normal|secret|ignoreSync mode for the path. Defaults to normal.
--profile NAMEAssign the entry to a named profile. Can be repeated to assign to multiple profiles. Omit to create a global entry (synced regardless of active profile).
--verbosePrint detailed output.
ModeDescription
normalStores the file or directory content as-is in the repository.
secretEncrypts the file with age before writing to the repository. The artifact is stored as {filename}.devsync.secret. The original file is never written to the repository unencrypted.
ignoreRegisters the path in the manifest but skips it entirely during push and pull. Useful for acknowledging a path without syncing it.
Terminal window
# Track ~/.gitconfig with the default (normal) mode
devsync track ~/.gitconfig