</>

Mender Artifacts

Beginner

The .mender update package — what's inside, device-type compatibility, and full-image vs application updates.

artifactspackaging

What an Artifact is

A Mender Artifact (a .mender file) is the unit you deploy. It bundles the update payload with metadata so a device can decide whether the update applies to it and how to install it. Crucially, it records the compatible device types — a device refuses an Artifact that isn’t marked compatible with it, which prevents flashing the wrong image onto the wrong hardware.

Two update strategies

Pick full-image when you want the strongest atomicity/rollback guarantees; pick an application update when payloads are small and you don’t want to reboot the world.

Building an Artifact

The mender-artifact CLI builds and inspects Artifacts (read-only references):

# Build a full rootfs-image Artifact
mender-artifact write rootfs-image \
  --file core-image.ext4 \
  --artifact-name release-1.2.0 \
  --device-type my-device \
  --output-path release-1.2.0.mender
# Inspect an existing Artifact's metadata
mender-artifact read release-1.2.0.mender

--artifact-name and --device-type are not cosmetic. The server uses the artifact name to know whether a device is already up to date, and the device uses the device type to accept or reject the update.

Next: pushing Artifacts to fleets — Deployments.

Mark your progress with this note: