infrahub-sync
Infrahub-sync: synchronize data between infrastructure sources and destinations.
Usage:
$ infrahub-sync [OPTIONS] COMMAND [ARGS]...
Options:
--verbosity [quiet|default|verbose]: Log verbosity level [default: default]-v, --verbose: Shorthand for --verbosity verbose-q, --quiet: Shorthand for --verbosity quiet--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands:
list: List all available SYNC projects.diff: Calculate and print the differences...sync: Synchronize the data between source and...apply: Apply a previously cached plan against the...generate: Generate all the Python files for a given...
infrahub-sync list
List all available SYNC projects.
Usage:
$ infrahub-sync list [OPTIONS]
Options:
--directory TEXT: Base directory to search for sync configurations--help: Show this message and exit.
infrahub-sync diff
Calculate and print the differences between the source and the destination systems for a given project.
Usage:
$ infrahub-sync diff [OPTIONS]
Options:
--name TEXT: Name of the sync to use--config-file TEXT: File path to the sync configuration YAML file--directory TEXT: Base directory to search for sync configurations--branch TEXT: Branch to use for the diff.--show-progress / --no-show-progress: Show a progress bar (default: auto-detect terminal)--adapter-path TEXT: Paths to look for adapters. Can be specified multiple times.--run-id TEXT: Re-use a specific cache run id.--concurrent-load / --no-concurrent-load: Load source and destination concurrently. Disable when a custom adapter isn't thread-safe. [default: concurrent-load]--full-extract / --no-full-extract: Re-extract every resource from scratch (default). Pass --no-full-extract to enable the cursor-driven incremental path on warm runs — see docs/reference/incremental-extraction. [default: full-extract]--help: Show this message and exit.
infrahub-sync sync
Synchronize the data between source and the destination systems for a given project or configuration file.
Usage:
$ infrahub-sync sync [OPTIONS]
Options:
--name TEXT: Name of the sync to use--config-file TEXT: File path to the sync configuration YAML file--directory TEXT: Base directory to search for sync configurations--branch TEXT: Branch to use for the sync.--diff / --no-diff: Print the differences between the source and the destination before syncing [default: diff]--show-progress / --no-show-progress: Show a progress bar (default: auto-detect terminal)--adapter-path TEXT: Paths to look for adapters. Can be specified multiple times.--parallel / --no-parallel: Sync tier-by-tier using the auto-computed dep graph. Requires order: to be omitted from config.yml. [default: parallel]--allow-rowcount-drop / --no-allow-rowcount-drop: Skip the rowcount drop guardrail. Use only when you know the source intentionally shrank. [default: no-allow-rowcount-drop]--continue-on-error / --no-continue-on-error: Log and skip peer relationships whose identifier values are missing instead of aborting. Useful when source data is partial; review the warnings before relying on the result. [default: no-continue-on-error]--concurrent-load / --no-concurrent-load: Load source and destination concurrently. Disable when a custom adapter isn't thread-safe. [default: concurrent-load]--full-extract / --no-full-extract: Re-extract every resource from scratch (default). Pass --no-full-extract to enable the cursor-driven incremental path on warm runs — see docs/reference/incremental-extraction. [default: full-extract]--help: Show this message and exit.
infrahub-sync apply
Apply a previously cached plan against the destination — no source extraction.
Usage:
$ infrahub-sync apply [OPTIONS]
Options:
--name TEXT: Name of the sync to use--config-file TEXT: File path to the sync configuration YAML file--directory TEXT: Base directory to search for sync configurations--run-id TEXT: Cache run id produced by a previousdiff. [required]--branch TEXT: Branch to use for the apply.--help: Show this message and exit.
infrahub-sync generate
Generate all the Python files for a given sync based on the configuration.
Usage:
$ infrahub-sync generate [OPTIONS]
Options:
--name TEXT: Name of the sync to use--config-file TEXT: File path to the sync configuration YAML file--directory TEXT: Base directory to search for sync configurations--branch TEXT: Branch to use for the sync.--adapter-path TEXT: Paths to look for adapters. Can be specified multiple times.--help: Show this message and exit.