Programming the firmware
First, make sure you have Segger JLink installed in your path.
Note
Programming the firmware through CLI is currently not supported on WSL 2 because it lacks support for serial devices. For more information, see the issue on WSL 2.
To program the configured and built firmware using the CLI, run the following command:
./cli.sh flash-firmware -f /path/to/firmware.hex
# default board is the Thingy:91, use --dk to program a DK
# pass --help to see the additional options