Skip to main content

infrahubctl schema

Manage the schema in a remote Infrahub instance.

Usage:

$ infrahubctl schema [OPTIONS] COMMAND [ARGS]...

Options:

  • --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:

  • check: Check if schema files are valid and what...
  • load: Load one or multiple schema files into...

infrahubctl schema check

Check if schema files are valid and what would be the impact of loading them with Infrahub.

Usage:

$ infrahubctl schema check [OPTIONS] SCHEMAS...

Arguments:

  • SCHEMAS...: [required]

Options:

  • --debug / --no-debug: [default: no-debug]
  • --branch TEXT: Branch on which to check the schema. [default: main]
  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.

infrahubctl schema load

Load one or multiple schema files into Infrahub.

Usage:

$ infrahubctl schema load [OPTIONS] SCHEMAS...

Arguments:

  • SCHEMAS...: [required]

Options:

  • --debug / --no-debug: [default: no-debug]
  • --branch TEXT: Branch on which to load the schema. [default: main]
  • --wait INTEGER: Time in seconds to wait until the schema has converged across all workers [default: 0]
  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.