NetBox CLI and TUI
netbox-cli is a terminal client for NetBox with two ways to work:
- fast command-line operations such as
nbx dcim devices get --id 1 - interactive terminal apps such as
nbx tuiandnbx dev tui
Temporary naming note: the GitHub repository remains
netbox-cli, but the published PyPI package is currentlynetbox-consoledue to PyPI naming policy constraints tracked in https://github.com/pypi/support/issues/9925. This will be reverted tonetbox-clion PyPI after that issue is resolved.
Quick Start with the Demo Instance
Install (official PyPI):
sudo apt-get update && sudo apt-get install -y curl
curl -fsSL https://raw.githubusercontent.com/emersonfelipesp/netbox-cli/main/install.sh | bash
Reload your shell:
source ~/.bashrc # bash
source ~/.zshrc # zsh
Authenticate against the public demo instance:
nbx demo init
Try a few commands:
nbx demo dcim devices list
nbx demo ipam prefixes list
nbx demo tui
nbx demo dev tui
Install
Install from official PyPI:
pip install netbox-console
or with uv:
uv tool install --force netbox-console
Install from a local checkout (developer workflow):
cd <path-to-netbox-cli>
uv tool install --force .
If nbx is not available after install, make sure ~/.local/bin is in your PATH.
Configure
Set up your normal profile:
nbx init
Set up the demo profile:
nbx demo init
You can also pass credentials directly when needed:
nbx demo init --username <your-demo-user> --password <your-demo-password>
Common Commands
List and inspect resources:
nbx dcim devices list
nbx dcim devices get --id 1
nbx ipam prefixes list
Create or update objects:
nbx ipam ip-addresses create --body-json '{"address":"192.0.2.10/24","status":"active"}'
nbx dcim devices patch --id 1 --body-json '{"name":"edge-sw01"}'
Send direct HTTP requests:
nbx call GET /api/status/
nbx call POST /api/ipam/ip-addresses/ --body-file ./payload.json
Explore available groups, resources, and operations:
nbx groups
nbx resources dcim
nbx ops dcim devices
TUI Modes
Main TUI:
nbx tui
nbx demo tui
Developer workbench:
nbx dev tui
nbx demo dev tui
Log viewer:
nbx logs
Themes
List available themes:
nbx tui --theme
Start with a specific theme:
nbx tui --theme dracula
nbx tui --theme netbox-light
nbx dev tui --theme netbox-dark
You can also change themes live from the top-left theme selector in the TUI.
Useful TUI Keys
/focus searchgfocus navigationsfocus resultsrrefresh current resourcefopen filtersdswitch to detailsqquit
Custom Themes
Built-in themes include:
netbox-darkdraculanetbox-light
You can add your own theme by placing a JSON theme file in netbox_cli/themes/.
Tips
nbx demo ...uses a separate demo profile from your normalnbx ...profile.- If a command works in the CLI, there is usually a matching flow in the TUI.
- The Dev TUI is useful for exploring endpoints, request timing, and raw JSON responses.
Metadata
Release files for netbox-console 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netbox_console-0.0.3.tar.gz | 495.5 kB | Without provenance | Details for netbox_console-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_console-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for netbox_console-0.0.3-py3-none-any.whl |
Total release size: 998.0 kB
Release files / netbox_console-0.0.3.tar.gz
| Download URL | netbox_console-0.0.3.tar.gz |
|---|---|
| Size | 495.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4d7ea060bd55f62706d3aa5bf0f5ccc398630e2623e89c2524c60aa74c158ea
|
|
BLAKE2b-256 checksum How to use checksums |
18c11c3b3b4378c8390c236b86cfaf876d34bdd1cbecb048d7e24039f0aa69ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / netbox_console-0.0.3-py3-none-any.whl
| Download URL | netbox_console-0.0.3-py3-none-any.whl |
|---|---|
| Size | 502.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f62353b66d6a559e15ffa4c2e20e52879716b5d364e4ab6cca2acb7f97a29ed
|
|
BLAKE2b-256 checksum How to use checksums |
cea95cf8c034667fa699845d8d187d7a909472255c140bbafc1b76543c1c911e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for netbox-console 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.