Skip to content

sync Command

Reconcile workspace state when repositories drift or after branch lifecycle changes.

  • Checks configured repositories against expected workspace metadata.
  • Refreshes repository/worktree alignment.
  • Surfaces mismatches so maintainers can resolve them quickly.
Terminal window
arashi sync [options]
  • --only <repos> sync comma-separated repository names only.
  • -v, --verbose show detailed per-repository sync output.
  • --json output machine-readable sync results.
Terminal window
# Sync all managed repositories
arashi sync
# Sync selected repositories
arashi sync --only api,web
# Sync with per-repo details
arashi sync --verbose
# Sync selected repositories and emit JSON
arashi sync --only api,web --json
  • sync aligns repositories to the parent repository’s current branch.
  • When needed, it can create missing target branches in child repositories.
  • JSON mode keeps stdout parseable as a single result document for programmatic callers.
  • Use arashi sync when branch/worktree state has drifted and you need the child repos aligned to the current parent branch.
  • Inspect arashi status before and after sync so any remaining mismatches are visible before implementation or handoff.
  • Avoid using sync as a substitute for understanding dirty worktrees; resolve or preserve local changes deliberately.