Skip to content

agentstack sync

Terminal window
agentstack sync <subcommand>

sync keeps your local ~/.agentstack/profiles/ store aligned across machines.

Current backends:

  • git — repo-first sync for teams and versioned profile packages
  • github-gist — zero-config convenience sync via a private Gist

Use git when you want the profile/package itself to be the canonical shared unit.

Use github-gist when you want lightweight personal backup/restore with minimal setup.

SubcommandDescription
authAuthenticate GitHub CLI and store a token for zero-config gist mode
discoverDiscover either a configured git remote (--repo) or an existing zero-config gist
initInitialize sync in git mode (--repo) or gist mode (default)
restoreInitialize then pull from the selected backend
statusShow current sync status
pullPull latest changes from remote
pushPush local changes to remote
autoPull if behind, then push if ahead

Discover a git remote before initializing:

Discover repo sync target
agentstack sync discover --repo git@github.com:acme/agentstack-profiles.git --branch main

Initialize repo-first sync:

Initialize git sync
agentstack sync init --repo git@github.com:acme/agentstack-profiles.git --branch main

Restore from a git remote on a new machine:

Restore from git remote
agentstack sync restore --repo git@github.com:acme/agentstack-profiles.git --branch main

Discover an existing zero-config gist:

Discover gist sync
agentstack sync auth
agentstack sync discover

Initialize zero-config gist sync:

Initialize gist sync
agentstack sync auth
agentstack sync init

Daily workflow:

Auto-sync
agentstack sync auto