When building a batch file, pass --append-batch to individual subcommands.
For the JSON structure of a single operation without writing a file, use --generate on any subcommand that supports batch recording.
The following subcommands support --append-batch and --generate:
| Subcommand | Description |
|---|---|
program |
Program firmware onto devices. |
erase |
Erase firmware on devices. |
recover |
Recover devices from readback protection or a bad state. |
reset |
Reset devices. |
fw-verify |
Verify firmware on devices. |
protection-set |
Enable readback protection. |
protection-get |
Get readback protection status. |
read |
Read device memory. |
write |
Write to device memory. |
dump-to-file |
Dump device memory to a file. |
otp-write |
Write one-time programmable OICR memory. |
halt |
Halt the CPU. |
go |
Start or resume the CPU. |
Run nrfutil device <subcommand> --help to confirm that --append-batch is listed for a subcommand.
Experimental x-* subcommands may also support batch recording depending on your build.