SwarmCLI Documentation: Installation & Command Reference

Install SwarmCLI on macOS, Linux and Windows, then work through the commands, configuration and licensing of the Community and Business editions.

A Business Edition license is bound to one Docker Swarm. Binding is what connects the key you bought to the swarm you run it on, and it is the step most people meet for the first time when a feature they expected is switched off.

The license lives on the swarm itself, as a Docker Config named swarmcli-license, not on your laptop and not in your shell profile. Any machine whose Docker context points at that swarm sees the same license, which is why a colleague does not need a copy of the key to get the same features.

The mode SwarmCLI is standardizing on, and what the licenses page shows as Managed. The swarm is named in the key, as with Bound at issuance, but features work only while the swarm also holds a live lease, which it renews by itself. That renewal is also the control: declining one ends the license, and moving it to another swarm is something you do from the portal rather than something we re-issue.

The legacy mode, shown as Static on the licenses page. The swarm is named inside the key when it is signed and nothing renews it, which is exactly why it is kept for deployments that are deliberately offline and never change. Moving one needs a new key, so it is an issuance exception rather than a second default.

Shown as None. Verifies on any swarm. Legacy and internal testing only; free and paid licenses are both bound.

Which one do I have?

Open :license in swarmcli. It names the mode and, for a bound key, the swarm it is bound to. The MODE column on swarmcli.io/licenses answers the same question from a browser. You do not have to work it out from your invoice.

Bind a license to a swarm

Three steps: read the swarm's cluster id, register it against your license, install the key that comes back. The first and last are run against the swarm you are licensing, so both need a Docker context pointing at one of its manager nodes.

1. Read the cluster id

In swarmcli, run the command below, or open the :license view and press g. It is 25 characters of lowercase letters and digits, and it identifies the swarm rather than any one node.

Without swarmcli, the same value comes from the Docker daemon on a manager node:

Sign in at swarmcli.io/licenses and choose Register Cluster. Paste the cluster id, give it an alias so that a later list of swarms is readable, and pick the subscription it belongs to. The key is signed bound to that swarm and appears on the license card, where you can copy it.

Following the link from swarmcli's own license prompt opens that page with the cluster id already filled in, so it never has to be retyped.

3. Install the key on the swarm

Save the key to a file and install it, or press s on the :license view and paste it. Either way it is stored on the swarm and takes effect immediately; there is nothing to restart.

If you keep the key in the SWARMCLI_LICENSE environment variable or in ~/.config/swarmcli/license.key, the :license view offers a keystroke to install it from there. Neither location licenses a swarm on its own; both are places to carry a key from.

Managed licenses activate in two steps

A managed license names its swarm in the key, just as a key bound at issuance does, but installing the key is only half of it. The second half is the lease: a short-lived signed artifact naming that license and that swarm. On a swarm that can reach us this happens by itself: with no lease installed the swarm asks for one, so activation follows the key install within a few minutes, and renewal continues on its own from there. Until a lease is in place, :license reports "Not activated for this swarm" and Business Edition features stay off. The absence of a lease is an answer, not an unknown. Which mode a key gets is settled when it is signed, not later: a paid license is issued managed and needs this second step, while a free license is bound at issuance and needs no lease at all. Lease issuance is still being rolled out. If a managed key reports "Not activated for this swarm" and no lease follows, contact us rather than waiting.

Air-gapped, and on a server

A swarm with no route to us is activated from a lease file instead, and your dashboard issues one: open the license, choose Offline activation, and take away the lease and the key together. Install the key first when the swarm is being activated for the first time and the lease first when it is already running; a managed key with no lease grants nothing. The lease installs from a shell with swarmcli license lease install <file>, and from swarmcli's own command bar with the same verb behind a colon. If carrying a file every month is too often, ask us for a longer lease window before the first one lapses rather than after; the same dialog says what to send. On a server or inside a health check, swarmcli reports the same thing without starting the interface. status exits 0 only while the license actually grants features, so it stands on its own as a check; sync asks now rather than waiting for the automatic attempt. For a managed license that renews its lease, and for any other it collects a key we have re-signed. Both need a reachable manager node. An exit code of 2 means the command line was wrong and 1 means the daemon could not be reached. Neither is a verdict about your license.

Constraints worth knowing before you bind

A bound key licenses exactly the swarm named in it. On any other swarm it is still cryptographically valid, but Business Edition features switch off and :license shows Wrong swarm. There is no grace period on this check. It applies the moment swarmcli sees a different swarm, and pointing your Docker context back restores everything just as immediately.

Moving a license to another swarm

From swarmcli.io/licenses, use Unbind Cluster and then Register Cluster with the new id. Unbinding clears the key we store for that swarm, so the dashboard will not hand it out again, but a key that is already installed is verified against a key inside swarmcli itself rather than looked up here, so the cluster you released keeps working until its lease ends, or until its token expires if it was bound at issuance. That window is the move: nothing is taken away from the old swarm, it simply stops. Binding a license that already names a different swarm is refused until you unbind, and a license bound at issuance may be moved once a day. The released swarm keeps its key until that key expires, so the wait bounds how many licensed swarms one account can collect, not how quickly you can rebuild one.

A managed license moves at most once per lease window (60 days at the default 30 days plus 30 days of grace) because a lease that has already been issued cannot be recalled, and the refusal names the date the next move becomes possible. There is no swarmcli command that moves a license, and there never will be one: keys are exportable on purpose, so if holding a key were enough to move it, a copied key would be enough to take a swarm's license away from it.

Rebuilding a swarm changes its identity

docker swarm leave --force followed by docker swarm init mints a new cluster id, and a key bound to the old one will not verify against it. Restoring from a backup of /var/lib/docker/swarm with docker swarm init --force-new-cluster keeps the id, so the original license keeps working, which is worth knowing before you choose a disaster-recovery procedure rather than after.

Expiry, and the grace you get

A key that reaches its expiry date keeps working for a further five days, and :license counts them down. A managed license's lease is separate and more generous: 30 days to renewal and another 30 days of grace by default, so features keep working through a month of failed renewals. Longer leases are available for air-gapped and low-touch installations, and are worth asking for before your first outage rather than after.

What stops working when binding is wrong

More than the feature you were reaching for. Everything that goes through the agent (shell and exec sessions, port forwarding, cross-node volume browsing, container statistics) is refused at the agent, so those stop together, and they stop with a permission error rather than a licensing one. If several unrelated features fail at once, read :license before you read the logs.

Node, size and user counts

Your plan's node allowance is shown on the license in the dashboard. On a paid plan, exceeding it is reported rather than enforced: :license adds a Nodes line such as "12 of 10", saying that nothing is switched off, with a link to the portal, and every feature stays on, because swarmcli does not switch features off on account of a swarm growing. swarmcli license status reports the same pair as nodes and max_nodes, for a check that runs unattended. The report is recent; an older swarmcli tracks the count without printing it. The free tier is the exception, and the only one: a free license that reports more than its three nodes goes over limit, and its term stops being rolled forward 14 days later unless the swarm comes back under. Coming back under clears both the state and the clock. On a paid plan, treat the node count as the commercial limit it is, not as a technical one. Users are the one count swarmcli acts on. Your plan allows 1 user on the free license, 3 on Starter and 5 on Business, and an Enterprise license names its own number. The count is of people: each person's first phone running the SwarmCLI app does not count. From v2.6.0, adding a user past the cap is refused, in :users and in the Connect tab. A swarm that is already over it keeps every feature, and :license adds a Users line such as "4 of 3" saying that adding users is refused. On a paid plan that warning is all; a free license is judged as it is for nodes, and its term stops being rolled forward 14 days after it reports more than its one user, unless the swarm comes back under. Node size is the third number, and behaves exactly like the node count: your plan allows up to 16 vCPUs per node on Starter and 32 on Business, swarmcli reports the largest node it can see, and :license adds a vCPU line such as "48 of 16 per node", saying that nothing is switched off, when the swarm is over. It is measured per node rather than across the swarm, so what matters is your biggest machine and not how many you run, and only nodes that are Ready are measured; draining the largest one lowers the figure. Nothing is enforced on it anywhere, on any plan.

What :license tells you, and what to do

The status line names the problem precisely, which means it also names the fix. These are the states that relate to binding.

The key is valid but bound to a different swarm.

A managed license with no lease installed for this swarm.

The lease is past its renewal date; features still work.

The lease is past its grace window; features are off.

The key itself expired; you have five days.

The key uses something this build does not understand.

Point your Docker context at the bound swarm, or move the license from the dashboard.

Usually nothing. The swarm asks for a lease by itself within a few minutes. If it persists, check it can reach swarmcli.io, or install a lease file with :license lease install <file>.

Check connectivity and run :license renew; nothing is lost yet.

Renew from the dashboard and install the lease you are sent.

Renew the subscription; the new key installs over the old one.

Upgrade swarmcli: the license is newer than the binary.

Get SwarmCLI up and running in under 60 seconds. Manage your Docker Swarm clusters with a premium Terminal User Interface.

SwarmCLI is a performance-optimized TUI designed for SREs and DevOps engineers. It provides a real-time, interactive dashboard for managing services, tasks, and nodes in a Docker Swarm environment.

For the strongest security, use SwarmCLI with our RBAC Proxy solution.

Every method below installs the same swarmcli binary.

Tapped eldara-tech/tap before? Run brew trust eldara-tech/tap once: since Homebrew 6, brew upgrade skips an untrusted tap without a word.

Get a key (free on up to 3 nodes) at

SwarmCLI provides a dedicated UI for managing Docker Secrets. Passwords and keys often need to be rotated or inspected securely.

Create new versions of configs and update services seamlessly directly from the dashboard.

View and edit non-sensitive config files mapped to your services.

SwarmCLI can decode secrets for debugging purposes using a temporary helper container.

Set this variable to define which image is used for the decryption helper.

Set to 'dev' for pretty logs, 'prod' for JSON logs.

Control verbosity (debug, info, warn, error).

Image used for secret revealing tasks.

Preferred text editor for editing configs (e.g., vi, nano, vim).

Initialize the tool and connect to your local swarm manager:

Keyboard shortcuts at a glance

Mobile App pairing popup (or :connect)

Filter logs (/ to search, /! to exclude)

Mouse & Trackpad Navigation (v2.2.0+)

Full cursor and scroll wheel ergonomics in the terminal

Smoothly scroll through long lists of services, tasks, nodes, and container logs.

Click any row to instantly focus and inspect details.

Double-click a stack to expand its services, or double-click a service to inspect its running tasks.

Mouse events outside the list view pass directly to your terminal for standard text selection.