Skip to main content

goliothctl device list

List all devices that have been registered with Golioth

goliothctl device list [flags]

Examples

# List all devices
> goliothctl device list
id:"60abc24dad0772e87bb232c9" hardware_ids:"AA:AA:AA:AA" name:"Test Device 1"
id:"60ad5f25ad0772e87bb232cd" hardware_ids:"CC:CC:CC:CC" hardware_ids:"BB:BB:BB:BB" name:"foobar"

# list devices searching by name or hardwareId that contains the provided 'search' term
> goliothctl device list --search num
id:"60abc24dad0772e87bb232f4" hardware_ids:"serialNumber1" name:"Test Device 1"
id:"60abc24dad0772e87bb232f4" hardware_ids:"serialNumber2" name:"Test Device 2"

> goliothctl device list --search dev
id:"60abc24dad0772e87bb232f4" hardware_ids:"serialNumber1" name:"Test Device 1"
id:"60abc24dad0772e87bb232f4" hardware_ids:"serialNumber2" name:"Test Device 2"

Options

      --disabled           filter by disabled device
--enabled filter by enabled device
-h, --help help for list
--hwId stringArray device hardware id
--name string device name
--search string search devices by name or hardware id
--state string LightDB state path
--stream string LightDB stream latest path
--tags stringArray tag names
--update string LightDB update state path

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

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