GitHub sync
Import a Git repository and keep its sync contract attached
Remote sync is configured through virtual repositories. The CLI imports the source repo into a Vex root path and records the branch, provider, and credentials metadata the platform uses for future sync runs.
CLI import with sync metadata
Use the GitHub shorthand form when the source repository is on GitHub. Passing a GitHub App installation id attaches the sync provider fields to the virtual repository.
vex import github <owner>/<repo> --org <org> --path <root-path> --virtual-repo <slug> --github-app-installation-id <id> --sync-branch main --sync-mode bidirectional --yesAdd --skip-sync to import the repository without attaching remote sync configuration.
Generic HTTP(S) Git
Use the generic Git import form when the source is not backed by a GitHub App. The remote URL and optional secret-backed credentials are stored on the virtual repository.
vex import git https://git.example.com/team/repo.git --org <org> --path <root-path> --virtual-repo <slug> --sync --sync-branch main --sync-mode bidirectional --yesWhat Vex stores
sync_provider_kindgithub for GitHub App sync, git for generic HTTP(S) Git sync, none otherwisesync_modepull, push, or bidirectionalgithub_app_installation_idGitHub App installation used by Vex workerssync_repository_ownerGitHub owner from owner/reposync_repository_nameGitHub repository name from owner/reposync_remote_urlHTTP(S) Git remote URL used by generic Git sync and shown for GitHub syncsync_auth_secret_idOptional Vex secret containing the generic Git token or passwordsync_source_bookmarkSource bookmark or branch to read from the remotesync_target_branchTarget Vex branch updated by sync runssync_auto_enabledWhether automatic polling is enabled for the virtual repositoryManual sync runs
The API exposes sync runs below a virtual repository. Creating a run queues the remote Git sync job and records status, provider, sync mode, source bookmark, target branch, and failure details.
POST /api/v1/virtual_repositories/<virtual_repository_id>/sync_runsView API reference