config
Configuration management commands for NDCLI. These commands help you view and modify NDCLI settings.
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
Display the current NDCLI configuration including all settings and their values.
ndcli config showOutput
Shows:
- OAuth2 settings (provider, domain, client ID)
- Control plane host
- Default organization
- Output format preference
- Auth storage settings
- Config file location
Examples
ndcli config show
ndcli config show -f jsonconfig set org
Set the default organization for all commands. This saves you from specifying --org on every command.
ndcli config set org [name]Arguments
| Argument | Required | Description |
|---|---|---|
name | Yes | Organization name to set as default |
Examples
ndcli config set org my-company
ndcli config showNotes
- 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
Set the default output format for all commands.
ndcli config set output [format]Arguments
| Argument | Required | Description |
|---|---|---|
format | Yes | One of: table, simple, detailed, json |
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
ndcli config set output json
ndcli config set output detailedconfig reset
Reset the configuration file to default values. This removes custom settings.
ndcli config resetExamples
ndcli config reset