v3.5.0
v3.5.0
Date: 2026-07-27
Previous release: v3.4.0
Summary
Adds a new export report command for exporting comprehensive device reports
in CSV format, including inventory attributes, group membership, and deployment
history.
Highlights
Device Report Export
mender-cli export report: Export all devices with their complete
inventory, group assignment, and latest deployment status to CSV.- Dynamic column discovery: Automatically includes all inventory attributes
found across the fleet as columns. Devices missing an attribute have an empty
cell — no schema definition required. - Pipe-delimited CSV: Uses
|as the field delimiter to avoid conflicts
with comma-containing inventory values (e.g.update_modules). - Fixed columns:
ID,LastSeen,Group,LatestDeploymentName,
LatestDeploymentArtifact,LatestDeploymentStatus,
LatestDeploymentCreated,LatestDeploymentFinished. - Inventory columns: All attributes are included, sorted alphabetically and
prefixed with their scope (e.g.[inventory]artifact_name,[identity]mac,
[tags]environment). - Filtering: Supports
--groupto export only devices in a specific group. - Output: Writes to stdout by default; use
-o/--outputto write to a file.
Example Usage
# Export all devices to stdout
mender-cli export report
# Export to a file
mender-cli export report -o devices.csv
# Export only production devices
mender-cli export report --group production -o prod-devices.csvNotes
- Large fleets: The export fetches inventory, groups, and deployment history
for every device. For fleets with thousands of devices, this may take several
minutes. - Deployment history: Only the most recent deployment per device is
included. Devices without any deployment history have empty deployment
columns.
Upgrading
- No breaking changes. The new
exportcommand tree is purely additive.