Skip to content

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

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

Terminal window
ndcli device list -f table

Human-readable tabular format, ideal for terminal viewing.

Terminal window
ndcli device list -f simple

Compact bullet-point format for quick scanning.

Terminal window
ndcli device describe my-device -f detailed

Unicode box drawing with the full set of fields for the resource. This is the default format.

Terminal window
ndcli device list -f json

Machine-readable JSON output for scripting and automation.

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.