See the following examples for the protection-set subcommands:
-
Enable full protection on a specific device:
nrfutil device protection-set All --serial-number <serial_number> -
Enable Secure AP-Protect on an nRF5340 application core:
nrfutil device protection-set SecureRegions --core Application --serial-number <serial_number>
Tip
You can use the --json flag to get machine-readable output of protection operations:
nrfutil device protection-get --json
This is useful for scripts or automated processing. See the nrfutil --json page for more information.