You can use the dump-to-file command with the following output options:
OUTPUT_FILEpath in the command - This is the path to the output file for writing the device memory. Only one device can have its memory dumped at a time when using this parameter. Required if not using--template--template <TEMPLATE>- Template for generating output file names for multiple devices. Required if not specifyingOUTPUT_FILE. See the argument help for more information.