Skip to content

Gem device add

gem device add

Adds an device

Synopsis

Adds a new device to the DB. The machine_id must be unique in the DB. The scan_id (sticker on device) does not need to be unique because a single device (i.e. single sticker) can potentially report different machine_ids depending on the application. Those two rules put together mean that the combination of machine_id and scan_id must be unique in the DB. The type and version are convenience fields that can be used to categorize the device and are not required.

gem device add <machine_id> <scan_id> [type] [version] [flags]

Options

  -h, --help   help for add

Options inherited from parent commands

  -d, --debug     Turn on debugging output
  -t, --trace     Turn on trace output
  -v, --verbose   Turn on verbose output

SEE ALSO

  • gem device - Shows help messages for all device commands