To import end devices, you need access to an application in The Things Stack. If you have not created one previously, see the Adding Applications guide for detailed instructions.
Import devices via the Console
Open your application and click the button Import end devices
The Things Stack JSON as the File format and upload the
You can also expand the Advanced claiming and component settings to set targeted components, and set the claim authentication code to be generated.
Start the import by clicking the Import end devices button.
Wait for the end devices to be successfully imported. In case any device fails, you will see a relevant error message in the console.
If the import was successful, your devices are added to the list of end devices in your application.
Import devices via the CLI
To complete these steps, you need the have the latest version of
ttn-lw-cli installed on your system.
Command-line interface only
The instructions below use the command-line interface (CLI).
devices.json file in The Things Stack, run the following command with
ttn-lw-cli end-devices create --application-id <application-id> < devices.json
This will import your devices in The Things Stack. In case any device import fails, you will see a relevant error message at the end of the output.
If the import was successful, you will see your devices added to the list of end devices in your application.
Your devices are now registered on The Things Stack.
Keep in mind that you still might need to initiate a new join on The Things Stack network! See Migrating End Devices from V2 for detailed info on how to complete the migration of your devices.