Skip to main content

infrahubctl repository

Manage the repositories in a remote Infrahub instance.

List, create, delete ..

Usage:

$ infrahubctl repository [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:

  • add: Add a new repository.
  • init: Initialize a new Infrahub repository.
  • list

infrahubctl repository add

Add a new repository.

Usage:

$ infrahubctl repository add [OPTIONS] NAME LOCATION

Arguments:

  • NAME: [required]
  • LOCATION: [required]

Options:

  • --description TEXT
  • --username TEXT
  • --password TEXT
  • --ref TEXT
  • --read-only / --no-read-only: [default: no-read-only]
  • --debug / --no-debug: [default: no-debug]
  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.

infrahubctl repository init

Initialize a new Infrahub repository.

Usage:

$ infrahubctl repository init [OPTIONS] DIRECTORY

Arguments:

  • DIRECTORY: Directory path for the new project. [required]

Options:

  • --template TEXT: Template to use for the new repository. Can be a local path or a git repository URL. [default: https://github.com/opsmill/infrahub-template.git]
  • --data PATH: Path to YAML file containing answers to CLI prompt.
  • --vcs-ref TEXT: VCS reference to use for the template. Defaults to HEAD. [default: HEAD]
  • --trust / --no-trust: Trust the template repository. If set, the template will be cloned without verification. [default: no-trust]
  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.

infrahubctl repository list

Usage:

$ infrahubctl repository list [OPTIONS]

Options:

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