Output formats
Use table, json, and yaml output from nginxpm CLI read commands.
Add -o <format> to list and get commands:
-o table: default, human-readable output-o json: JSON for tools such asjq-o yaml: YAML output
Agents: use -o json for data you need to parse. The --quiet flag
suppresses informational output, while --verbose enables HTTP logging for
diagnostics.
nginxpm proxy list -o json | jq '.[].id'
nginxpm cert get 1 -o yaml
nginxpm status -o jsonSet the default once if most of your work is machine-readable:
nginxpm config set defaults.output jsonFile input
Create and update commands that use --file (-f) accept JSON files, YAML
files, or standard input via -f -:
nginxpm proxy create -f proxy.json
nginxpm stream update 5 -f stream.yaml
nginxpm access create -f - < access.jsonNotes & gotchas
- List and get commands render in table, JSON, or YAML;
statusalso uses the selected output format. nginxpm cert dns-providersalways returns JSON, regardless of the selected output setting.--quiet(-q) suppresses informational output from mutating commands.--verbose(-v) enables verbose HTTP logging when troubleshooting.
For safe machine-driven workflows, continue with the agents guide.