Advanced examples

nRF Util

tags
nRF Util

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-json instead of a file when the JSON is short. Prefer building the batch with --append-batch or inspect operation JSON with --generate rather 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