| Crates.io | nautobot-cli |
| lib.rs | nautobot-cli |
| version | 0.2.0 |
| created_at | 2026-01-22 22:15:10.088887+00 |
| updated_at | 2026-01-25 10:09:19.044045+00 |
| description | cli client for the nautobot api |
| homepage | https://github.com/cyberwitchery/nautobot.rs |
| repository | https://github.com/cyberwitchery/nautobot.rs |
| max_upload_size | |
| id | 2062770 |
| size | 154,466 |
a command-line interface (cli) for interacting with nautobot, built using the nautobot rust crate.
you can install the cli directly from crates.io (once published) or build it from source.
cargo install nautobot-cli
the cli uses environment variables for configuration. you must set these before running commands:
export NAUTOBOT_URL=https://nautobot.example.com
export NAUTOBOT_TOKEN=your-api-token
the cli supports a variety of commands mapping to nautobot's api structure.
check the status of the nautobot instance:
nautobot-cli status
most resources support list, get, create, update, and delete operations.
# list all devices
nautobot-cli dcim devices list
# list all sites
nautobot-cli dcim sites list
retrieve a resource by its uuid:
nautobot-cli dcim devices get <device-uuid>
create a new resource using a json payload:
nautobot-cli extras tags create --json '{"name": "production", "slug": "prod", "content_types": ["dcim.device"]}'
to see all available commands and subcommands:
nautobot-cli --help