nautobot-cli

Crates.ionautobot-cli
lib.rsnautobot-cli
version0.2.0
created_at2026-01-22 22:15:10.088887+00
updated_at2026-01-25 10:09:19.044045+00
descriptioncli client for the nautobot api
homepagehttps://github.com/cyberwitchery/nautobot.rs
repositoryhttps://github.com/cyberwitchery/nautobot.rs
max_upload_size
id2062770
size154,466
Veit Heller (hellerve)

documentation

README

nautobot-cli

crates.io

a command-line interface (cli) for interacting with nautobot, built using the nautobot rust crate.

install

you can install the cli directly from crates.io (once published) or build it from source.

cargo install nautobot-cli

configuration

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

usage

the cli supports a variety of commands mapping to nautobot's api structure.

general status

check the status of the nautobot instance:

nautobot-cli status

resource management

most resources support list, get, create, update, and delete operations.

list resources

# list all devices
nautobot-cli dcim devices list

# list all sites
nautobot-cli dcim sites list

get a specific resource

retrieve a resource by its uuid:

nautobot-cli dcim devices get <device-uuid>

create a resource

create a new resource using a json payload:

nautobot-cli extras tags create --json '{"name": "production", "slug": "prod", "content_types": ["dcim.device"]}'

help

to see all available commands and subcommands:

nautobot-cli --help
Commit count: 12

cargo fmt