Skip to content

v3.5.1

Choose a tag to compare

@github-actions github-actions released this 27 Jul 23:06
· 2 commits to master since this release

v3.5.1

Date: 2026-07-28
Previous release: v3.5.0

Summary

Adds --filter-multi flag to deployments create for targeting multiple
devices via inventory filters.

Highlights

  • --filter-multi flag: Target all devices matching inventory filters
    instead of requiring exactly one match. Useful for deploying to device
    classes (e.g. --filter-multi "device_type=gateway").
  • Confirmation dialog: Shows matched device count before creating
    deployment. Use --yes to skip for automation.

Example Usage

# Deploy to all gateways
mender-cli deployments create --release v2.0 --filter-multi "device_type=gateway"

# Combine multiple filters (AND logic)
mender-cli deployments create --release v2.0 \
    --filter-multi "device_type=gateway" \
    --filter-multi "tags/environment=production"

# Skip confirmation for automation
mender-cli deployments create --release v2.0 --filter-multi "device_type=gateway" --yes

Notes

  • Existing --filter unchanged: The -f/--filter flag still requires
    exactly one matching device, showing matched IDs in the error message when
    multiple devices match.
  • Mutually exclusive: --filter-multi cannot be combined with --device,
    -f/--filter, --group, or --all.

Upgrading

  • No breaking changes. The new --filter-multi flag is purely additive.