Skip to main content

goliothctl device

Use the goliothctl device subcommands to add, remove, list, and update data associated with devices.

goliothctl device [flags]

Examples

# Add a device with multiple hardware IDs
> goliothctl device create --name foobar --hwId AA:AA:AA:AA --hwId BB:BB:BB:BB

# Update the name of a device from "foobar" to "my-device"
> goliothctl device update foobar --name my-device

# Add two hardware IDs to device and delete one old one
> goliothctl device update my-device --rmHwId AA:AA:AA:AA --addHwId BB:BB:BB:BB --addHwId CC:CC:CC:CC

# Add a tag to a device that's referred to by hardware ID
> goliothctl device update --hwId DD:DD:DD:DD --addTag something-or-other

# List all devices
> goliothctl device list
id:"60ad5f25ad0772e87bb232cd" hardware_ids:"CC:CC:CC:CC" hardware_ids:"BB:BB:BB:BB" name:"foobar"

Options

  -h, --help   help for device

Options inherited from parent commands

      --apiUrl string      golioth api server url (default "https://api.golioth.io")
-c, --config string config file (default is $HOME/.golioth/.goliothctl.yaml)
--projectId string golioth project id

SEE ALSO