Commands¶
All top-level nbx commands. Run any command with --help for the full option list.
nbx init¶
Interactive setup for the default profile. Prompts for NetBox URL, token key, token secret, and timeout. Saves to ~/.config/netbox-cli/config.json.
Any command that needs a connection will also trigger this prompt automatically if config is missing.
nbx config¶
Display the current default profile configuration.
Options
| Flag | Description |
|---|---|
--show-token |
Include token key and secret in output (plaintext) |
nbx groups¶
List all OpenAPI app groups available in the bundled schema.
Output is one group name per line: circuits, core, dcim, extras, ipam, plugins, tenancy, users, virtualization, vpn, wireless.
nbx resources GROUP¶
List all resources within an app group.
nbx ops GROUP RESOURCE¶
Show all HTTP operations (method, path, operation ID) for a specific resource.
Output is a Rich table with columns: Method, Path, Operation ID.
nbx call METHOD PATH¶
Make an explicit HTTP request to any NetBox API path.
nbx call GET /api/status/
nbx call GET /api/dcim/sites/ --json
nbx call POST /api/ipam/ip-addresses/ --body-json '{"address":"192.0.2.1/24","status":"active"}'
nbx call PUT /api/dcim/devices/1/ --body-file ./device.json
Options
| Flag | Description |
|---|---|
-q / --query KEY=VALUE |
Query string parameter (repeatable) |
--body-json TEXT |
Inline JSON request body |
--body-file PATH |
Path to a JSON file to use as request body |
--json |
Output raw JSON instead of a Rich table |
--yaml |
Output as YAML |
nbx tui¶
Launch the interactive Textual TUI.
Options
| Flag | Description |
|---|---|
--theme |
List themes (no argument) or launch with a specific theme name |
See TUI Guide for full navigation documentation.
nbx logs¶
Launch the structured JSON log viewer TUI. Shows entries written to ~/.config/netbox-cli/logs/netbox-cli.log by the CLI and TUI.
Options
| Flag | Default | Description |
|---|---|---|
--limit |
200 |
Maximum number of log entries to load |
--theme |
from saved state | Theme name to use |
Use Ctrl+G inside the log viewer to clear the log file.
nbx dev tui¶
Launch the developer request workbench TUI against your default profile.
This view is designed for API exploration and request crafting rather than the standard browse/results workflow.
When you launch the same view through nbx demo dev tui, the CLI automatically refreshes expired demo v1 tokens if demo credentials were saved during nbx demo init.
Options
| Flag | Description |
|---|---|
--theme |
List themes (no argument) or launch with a specific theme name |
nbx dev http¶
Developer-oriented HTTP helpers for exploring arbitrary API paths and operations.
Use nbx dev http --help and the subcommand helps for the full option matrix.
nbx docs generate-capture¶
Generate the command capture documentation — runs every nbx command, records output, and writes docs/generated/nbx-command-capture.md plus per-command JSON files.
Options
| Flag | Default | Description |
|---|---|---|
-o / --output |
docs/generated/nbx-command-capture.md |
Markdown output path |
--raw-dir |
docs/generated/raw/ |
Directory for per-command JSON files |
--max-lines |
200 |
Max output lines embedded in Markdown |
--max-chars |
120000 |
Max output characters embedded in Markdown |
--live |
off | Use default profile (real NetBox) instead of demo profile |
See Documentation Generation for the full guide.