Skip to content

self config

self config env

self config env [OPTIONS]

Show active Harbor CLI environment variables.

Options

-a, --all
List all environment variables.
Type: boolean (flag)
Default: False


self config get

self config get <KEY> [OPTIONS]

Show the current CLI configuration.

Arguments

KEY
Specific config key to get value of.
Type: text

Options

--toml/--no-toml
Show the current configuration in TOML format after setting the value. Overrides --format.
Type: boolean (flag)
Default: True


self config keys

self config keys

Show all config keys that can be modified with set.


self config path

self config path

Show the path to the current configuration file, or default path if no config is loaded.


self config set

self config set <KEY> <VALUE> [OPTIONS]

Modify a CLI configuration value. Use keys to see all available keys.

Arguments

KEY
Key to set. Subkeys can be specified using dot notation. e.g. 'harbor.url'
Type: text
Required:

VALUE
Value to set.
Type: text
Required:

Options

--path <PATH>
Path to save configuration file.
Type: path

--session
Set the value in the current session only. The value will not be saved to disk. Only useful in REPL mode.
Type: boolean (flag)
Default: False

--show/--no-show
Show the current configuration after setting the value.
Type: boolean (flag)
Default: False

--toml/--no-toml
Render updated config as TOML in terminal if --show is set. Overrides global option --format.
Type: boolean (flag)
Default: True


self config write

self config write [OPTIONS]

Write the current session configuration to disk. Used to save changes made with set --session in REPL mode.

Options

--path <PATH>
Path to save configuration file. Uses current config file path if not specified.
Type: path