v3.4.0
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)
- Individual devices by ID (
- Interactive confirmation dialog by default; use
--yesfor automation - Supports
--forceto skip already-installed checks - Supports
--retriesfor automatic retry on failure - Custom deployment names with
--name(defaults to release name) - Raw JSON output with
-r/--rawfor scripting
Safety Confirmations for Destructive Operations
mender-cli artifacts delete: Now requires interactive confirmation
before deleting. Use--yesto skip for automation/scripting.- Consistent confirmation pattern across
artifacts delete,inventory groups delete,token clear, anddeployments create.
Notes
- Safety by default: Destructive commands (
artifacts delete,
deployments create) now require interactive confirmation. For CI/CD
pipelines and scripts, use--yesto skip the prompt. - Non-interactive detection: When stdin is not a TTY (e.g., in CI), these
commands will fail with an error unless--yesis provided, preventing
accidental execution.
Upgrading
- Breaking change for scripts: If you have scripts that call
mender-cli artifacts deletewithout user interaction, you must add--yes
to continue working.