Global Flags
Global Flags
These flags are available on all commands:
| Flag | Short | Description |
|---|---|---|
--conf | Custom config file path | |
--format | -f | Output format: table, simple, detailed, json |
--org | -o | Organization name (overrides config default) |
--help | -h | Help for the command |
Output Formats
NDCLI supports four output formats that can be set globally or per-command:
Table (default for lists)
ndcli device list -f tableHuman-readable tabular format, ideal for terminal viewing.
Simple
ndcli device list -f simpleCompact bullet-point format for quick scanning.
Detailed
ndcli device describe my-device -f detailedRich Unicode box drawing with comprehensive information. This is the default format.
JSON
ndcli device list -f jsonMachine-readable JSON output for scripting and automation.
Setting Default Format
You can set your preferred default format in the configuration:
ndcli config set output detailedOr override per-command using the -f flag.