config
Configuration management commands for NDCLI. These commands help you view and modify NDCLI settings.
Commands
Section titled “Commands”| Command | Description |
|---|---|
config show | Display current configuration |
config set org | Set default organization |
config set output | Set default output format |
config reset | Reset configuration to defaults |
config show
Section titled “config show”Display the current NDCLI configuration including all settings and their values.
ndcli config showOutput
Section titled “Output”Shows:
- OAuth2 settings (provider, domain, client ID)
- Control plane host
- Default organization
- Output format preference
- Auth storage settings
- Config file location
Examples
Section titled “Examples”ndcli config show
ndcli config show -f jsonconfig set org
Section titled “config set org”Set the default organization for all commands. This saves you from specifying --org on every command.
ndcli config set org [name]Arguments
Section titled “Arguments”| Argument | Required | Description |
|---|---|---|
name | Yes | Organization name to set as default |
Examples
Section titled “Examples”ndcli config set org my-company
ndcli config show- The organization must exist and you must have access to it
- Use
ndcli org listto see available organizations - Override per-command with the
--orgflag
config set output
Section titled “config set output”Set the default output format for all commands.
ndcli config set output [format]Arguments
Section titled “Arguments”| Argument | Required | Description |
|---|---|---|
format | Yes | One of: table, simple, detailed, json |
Output Formats
Section titled “Output Formats”| Format | Description |
|---|---|
table | Tabular format, good for lists |
simple | Compact bullet-point format |
detailed | Rich Unicode box drawing (default) |
json | Machine-readable JSON |
Examples
Section titled “Examples”ndcli config set output json
ndcli config set output detailedconfig reset
Section titled “config reset”Reset the configuration file to default values. This removes custom settings.
ndcli config resetExamples
Section titled “Examples”ndcli config reset