Skip to main content

Bulk Operations

The myDevices CLI provides bulk commands for importing, deactivating, and generating data at scale.

Bulk Import

Import locations and devices from a CSV file:

mydevices bulk import <csv-file> --company <company-id>

The CSV file should contain location and device data. See the bulk import guide in the CLI repository for CSV format details.

Bulk Deactivate

Deactivate multiple devices by EUI using a CSV file:

mydevices bulk deactivate <csv-file>

Generate AppKeys

Generate unique LoRaWAN AppKeys for a list of DevEUIs:

mydevices bulk generate-appkeys <csv-file>

Options:

FlagDescription
--output <file>Save results to a file
--appeui <eui>Specify an AppEUI

Example:

mydevices bulk generate-appkeys devices.csv --output appkeys.csv --appeui 0000000000000001

Generate UUIDs

Generate BLE beacon UUIDs:

mydevices bulk generate-uuids --count <n>

Options:

FlagDescription
--count <n>Number of UUIDs to generate
--output <file>Save results to a file

Example:

mydevices bulk generate-uuids --count 100 --output uuids.csv