Skip to content

Global Flags

Global Flags

These flags are available on all commands:

FlagShortDescription
--confCustom config file path
--format-fOutput format: table, simple, detailed, json
--org-oOrganization name (overrides config default)
--help-hHelp for the command

Output Formats

NDCLI supports four output formats that can be set globally or per-command:

Table (default for lists)

Terminal window
ndcli device list -f table

Human-readable tabular format, ideal for terminal viewing.

Simple

Terminal window
ndcli device list -f simple

Compact bullet-point format for quick scanning.

Detailed

Terminal window
ndcli device describe my-device -f detailed

Rich Unicode box drawing with comprehensive information. This is the default format.

JSON

Terminal window
ndcli device list -f json

Machine-readable JSON output for scripting and automation.

Setting Default Format

You can set your preferred default format in the configuration:

Terminal window
ndcli config set output detailed

Or override per-command using the -f flag.