All apps/Mender CLI

Mender CLI

mender-cli

General-purpose CLI tool for the Mender backend.

Runs as mender-cli|macOS, Linux, Windows|github.com

Command form

ai-draft · 1 task · 5 fields

Log in to a Mender server. Passwords are deliberately not a field (the tool prompts); artifacts operations are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui mender-cli

mender-cli login

Log in to the server
Log in to the serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Server URL*
url
Username (email)*
string
Two-factor code
string
TasksEach one presets the form for one job
Log in
serverusernametfa_code
ParametersOnly these flags are editable in the form
Server URL
url
--serverhttps://hosted.mender.io
Username (email)
string
--username
Two-factor code
string
--2fa-code
Skip TLS verification
boolean
--skip-verify-k
Verbose
boolean
--verbose-v
SourcesEvery flag above is checked against these
src
Use: "login", Short: "Log in to the Mender server (required before other operations).", "username, format: email (will prompt if not provided)" "two-factor authentication token" argLoginUsername = "username" argLoginToken = "2fa-code" argRootServer = "server" argRootSkipVerify = "skip-verify" "root server URL, e.g. 'https://hosted.mender.io'" BoolP(…
helpmaster 2026-10

github.com

Before it fills your prompt, Otty checks the installed mender-cli against its version. A form that does not match your version is not offered.