The advanced workflow uses the --batch-json flag instead of --batch-file. For most use cases, prefer the --batch-file flag.
- Pass the batch inline with
--batch-jsoninstead of a file when the JSON is short. Prefer building the batch with--append-batchor inspect operation JSON with--generaterather than writing batch JSON by hand.
nrfutil device batch-execute --batch-json '{"operations":[{"operation":{"type":"reset","option":"RESET_SYSTEM"},"core":"Application"}]}'
On Unix shells, quote the JSON and escape inner double quotes if needed:
nrfutil device batch-execute --batch-json \{\"operations\":[{\"operation\":{\"type\":\"reset\",\"option\":\"RESET_SYSTEM\"},\"core\":\"Application\"}]\}
- Print the JSON definition of an operation without running or appending it:
nrfutil device erase --all --generate