Skip to content

v3.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Jul 18:19
· 4 commits to master since this release

v3.4.0

Date: 2026-07-27
Previous release: v3.3.0

Summary

Adds a new deployments create command for creating deployments from the CLI,
and introduces interactive confirmation dialogs for destructive operations.

Highlights

Deployment Creation

  • mender-cli deployments create: Create deployments targeting (mutually
    exclusive — exactly one required):
    • Individual devices by ID (--device, repeatable)
    • A single device by inventory filter (-f/--filter)
    • All devices in a static group (--group)
    • All accepted devices (--all)
  • Interactive confirmation dialog by default; use --yes for automation
  • Supports --force to skip already-installed checks
  • Supports --retries for automatic retry on failure
  • Custom deployment names with --name (defaults to release name)
  • Raw JSON output with -r/--raw for scripting

Safety Confirmations for Destructive Operations

  • mender-cli artifacts delete: Now requires interactive confirmation
    before deleting. Use --yes to skip for automation/scripting.
  • Consistent confirmation pattern across artifacts delete, inventory groups delete, token clear, and deployments create.

Notes

  • Safety by default: Destructive commands (artifacts delete,
    deployments create) now require interactive confirmation. For CI/CD
    pipelines and scripts, use --yes to skip the prompt.
  • Non-interactive detection: When stdin is not a TTY (e.g., in CI), these
    commands will fail with an error unless --yes is provided, preventing
    accidental execution.

Upgrading

  • Breaking change for scripts: If you have scripts that call
    mender-cli artifacts delete without user interaction, you must add --yes
    to continue working.