How to Migrate OTAA Devices from V2 to V3

A post was split to a new topic: Importing devices in V3 with JSON generated by V2 ttn-lw-migrate tool fails