Sync
Sync workflows from a remote Git repository
Keep your workflows in a Git repo and pull them down with wf sync.
Usage
wf sync --remote-url git@github.com:user/my-workflows.git --branch main --ssh-key ~/.ssh/id_rsa| Flag | Required | Description |
|---|---|---|
--remote-url | No | Git repo URL (defaults to workflow-vault) |
--branch | No | Branch to pull from (defaults to main) |
--ssh-key | No | Path to SSH key for private repos |
How It Works
- Clones (or pulls) the remote repo into your workflows directory
- Records the sync result (commit ID) as an event in the event store
- Workflows are immediately available for use
The sync operation emits a
SyncRequestedEvent, which transitions the state machine, which then schedules aRecordSyncResultCommandas a side effect. It'sgit clonewith extra steps.
Shared Workflow Repos
You can share workflows across a team by hosting them in a Git repo. See workflow-vault for an example.