Use sync to save and retrieve machine state. It does not install, upgrade, or remove packages. It uses this machine’s configured or derived ID; OUTFITTING_MACHINE_ID overrides it. Default file paths are relative to the current directory.
configure
Configure the sync Worker URL or API token. The URL and token are stored in the OS keychain when configured interactively.
configure worker
Syntax: outfitting-manager sync configure worker [<url>]
Set the service URL before using other sync commands. Omit <url> to enter it at the prompt. Sync commands require a configured URL and do not choose a default. Set OUTFITTING_SYNC_URL to override the saved URL.
provision saves the URL it creates automatically. Pass --skip-configure to skip that step.
outfitting-manager sync configure worker https://example.com/apiIn Amp orbs (AMP_ORB=1), the CLI skips the OS keychain and requires both OUTFITTING_SYNC_URL and OUTFITTING_SYNC_TOKEN. For other noninteractive environments, set both variables to avoid keychain access or token prompts; running without a terminal does not itself disable the keychain.
configure token
Syntax: outfitting-manager sync configure token
Prompt for and save the service token for later sync commands. You can also set OUTFITTING_SYNC_TOKEN; it takes precedence over the saved token.
outfitting-manager sync configure tokenpush
Syntax: outfitting-manager sync push [<kind>] [<path>] [--if-match <sha256>]
Upload one lock file, or run without arguments to upload known lock files in the current directory. Git-tracked files are not uploaded.
# Push all known lock files in the current directory
outfitting-manager sync push
# Push one lock file
outfitting-manager sync push nix ./saved-flake.lock| Argument or option | Description |
|---|---|
<kind> |
Lockfile type. Omit it or use all to push all known local lock files. |
<path> |
File to push. Required for one kind; omit when pushing all kinds. |
--if-match <sha256> |
Push only if the saved version still has this SHA-256 hash. Use with one kind. |
pull
Syntax: outfitting-manager sync pull [<kind>] [<out-path>]
Download one saved lock file, or omit the kind (or pass all) to download every saved type. If you do not provide a path, files are written to their default locations in the current directory. Pull refuses to replace a Git-tracked file or a symlink; pass the target path explicitly for a symlink. Other existing files are replaced without prompting, preserving their Unix permission bits. New snapshots use mode 0600 on Unix.
# Download a saved lock file to a specific location
outfitting-manager sync pull nix ./backups/saved-flake.locklist
Syntax: outfitting-manager sync list
List the saved lock file types for this machine.
outfitting-manager sync listhistory
Syntax: outfitting-manager sync history [<kind>]
Show saved versions of one lock file. Omit the type or use all to show all types.
outfitting-manager sync history nix