Skip to content

Cani alpha update device

cani alpha update device

Update a device in the inventory.

Synopsis

Update a device's fields by UUID or name.

cani alpha update device <uuid-or-name> [flags]

Options

      --alias string          Node alias (CSM provider)
      --description string    Description
      --face string           Rack face (front, rear)
  -h, --help                  help for device
      --name string           New name
      --nid int               Node ID (CSM provider)
      --parent string         Parent UUID or name (rack or device)
      --position int          Rack U position
      --primary-ipv4 string   Primary IPv4 address (CIDR or UUID)
      --primary-ipv6 string   Primary IPv6 address (CIDR or UUID)
      --role string           New role
      --status string         New status
      --swap                  Swap position with the device occupying the target slot

Options inherited from parent commands

      --config string           config file (default "/home/runner/.cani/cani.yml")
      --datastore string        datastore type (json, postgres) (default "json")
      --datastore-path string   override path to the datastore file (for testing)
      --debug                   enable debug mode
      --metadata stringArray    Provider metadata key=value pairs (repeatable)
      --set stringArray         Set field value as key=value (repeatable)
      --strict                  require a resolved device type (slug) for all devices (default true)
      --tag stringArray         Tag(s) to apply to the item (repeatable)
      --types-dirs strings      local directories with additional hardware types
      --types-repo-clone        clone types repos that are not yet cached locally
      --types-repo-pull         pull latest changes from types repos on startup
      --types-repos strings     git repo URLs with additional hardware types

SEE ALSO