# How to extract the mender artifact content

**URL:** <https://hub.mender.io/t/how-to-extract-the-mender-artifact-content/2678>\
**Category:** General Discussions\
**Created:** [October 15, 2020, 8:08pm UTC](https://hub.mender.io/t/how-to-extract-the-mender-artifact-content/2678 "2020-10-15T20:08:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 16, 2020, 6:11am UTC](https://hub.mender.io/t/how-to-extract-the-mender-artifact-content/2678/4 "2020-10-16T06:11:51Z")

</div>

Yeah, `tar` should work.

But the `mender-artifact dump` command can also be useful, but you need to specify what you want to extract,

Example to extract payload files:

```auto
mkdir files
mender-artifact dump --files files *.mender

```

Check the `--help` for additional arguments,

```auto
$ 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.

```

---

_[View the full topic](https://hub.mender.io/t/how-to-extract-the-mender-artifact-content/2678)._
