The following command lists all connected devices as JSON:
nrfutil --json device list
The following command programs devices and shows progress information as JSON messages:
nrfutil --json device program --traits nordicDfu --firmware <path_to_dfu_package_file>.zip