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 [flags]

Options

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

Options inherited from parent commands

      --set stringArray        Set field value as key=value (repeatable)
      --tag stringArray        Tag(s) to apply to the item (repeatable)
      --metadata stringArray   Provider metadata key=value pairs (repeatable)
      --config string          config file (default "/home/runner/.cani/cani.yml")
      --debug                  enable debug mode
      --datastore string       datastore type (json, postgres) (default "json")
      --datastore-path string  override path to the datastore file (for testing)
      --types-dirs stringSlice local directories with additional hardware types
      --types-repos stringSlice git repo URLs 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
      --strict                 require a resolved device type (slug) for all devices (default true)

SEE ALSO