I have a .mender file and I want to extract the content. I tried “mender-artifact dump artifact_name.mender”, but nothing gets extracted. I also tried “mender-artifact cp” with no success. See blow some (slightly obfuscated) commands.
“mender-artifact read artifact_name.mender” will display the content, as I expected. I am running mender-artifact version 3.3.0.
$ mender-artifact read image-board-20201013213940.mender
Mender artifact:
Name: mcg-01.00.001_d
Format: mender
Version: 3
Signature: no signature
Compatible devices: ‘[board]’
Provides group:
Depends on one of artifact(s):
Depends on one of group(s):
State scripts:
ArtifactCommit_Leave_80
ArtifactFailure_Leave_80
…
$ mender-artifact dump --help
NAME:
mender-artifact dump - Dump contents from Artifacts
USAGE:
mender-artifact dump [command options] <Artifact>
DESCRIPTION:
Dump various raw files from the Artifact. These can be used to create a new Artifact with the same components.
OPTIONS:
--files value Dump all included files in the first payload into given folder
--meta-data value Dump the contents of the meta-data field in the first payload into given folder
--scripts value Dump all included state scripts into given folder
--print-cmdline Print the command line that can recreate the same Artifact with the components being dumped. If all the components are being dumped, a nearly identical Artifact can be created. Note that timestamps will cause the checksum of the Artifact to be different, and signatures can not be recreated this way. The command line will only use long option names.