Command line
On every node, asdl-agent is also a command line for the agent running
there: whether it reaches the Hub, what runs on the node, logs, maintenance and
updates. It talks to the agent’s local dashboard, so it only works on the node
itself, and needs no login.
$ asdl-agent statusNode node-1 (10.101.0.3)Hub http://10.101.0.1:8080, connected, last heartbeat 12s agoMesh handshake 26s agoMaintenance offAgent v2026.09.28-1a2b3c4, up to date (auto-update on)Apps 4 running of 4 containersCPU 12%, load 0.41 0.35 0.30Memory 4.6 / 7.1 GBDisk 99.9 / 115.8 GBUp 14h55m10sThe agent keeps /usr/local/bin/asdl-agent pointing at its own binary, so the
command is there on every node and updates with the agent.
Commands
Section titled “Commands”| Command | Does |
|---|---|
status |
The node, its connection to the Hub and the mesh, maintenance, the agent’s version and updates, and CPU, memory and disk. |
doctor |
Check this node and say what to fix: see below. |
apps |
Containers on the node, and which the Hub started. |
logs <app> [-n 100] |
A container’s last lines of output. |
restart <app> |
Restart a container. |
jobs |
Jobs the Hub sent since the agent started. |
maintenance on|off |
Start maintenance for this node (its apps move to other nodes) or end it, e.g. before a reboot. |
update |
Check for a new agent release now. |
update install |
Install it now and wait until the agent runs it. |
auto-update on|off |
Let new releases install by themselves, or not. |
service status|restart|logs |
The agent’s service. restart (with sudo) waits until the agent answers again; logs -f follows its log. |
config |
The agent’s settings in /etc/asdl/<hub>/agent.conf (with sudo). |
config set [KEY=VALUE…] |
Change interval, max_jobs, work_dir or dashboard.port (asks which, if none are given), keep an agent.conf.bak and offer to restart the agent. hub_url, vpn_ip and enrolled need --force. |
config unset [KEY…] |
Reset settings to their defaults. |
version |
The program’s version. |
run |
Run the agent; this is what the service runs. |
Add --json to print the agent’s answer. On a machine that runs agents for
more than one Hub, choose one with --hub <name> (the folder name in
/etc/asdl/).
Changes (restart, maintenance, updates) are only accepted from the node
itself, like the local dashboard’s buttons. logs and restart use Docker
through the agent, so they work without sudo.
For the whole Hub (every node and app), use asdl-hub.
Doctor
Section titled “Doctor”asdl-agent doctor checks the node and prints what’s wrong with the command
that fixes it. It exits with 1 if it found a problem.
$ asdl-agent doctorASDL Agent doctor
Agent ✓ The agent answers (v2026.10.03-1a2b3c4 on node-1) ✓ Up to date
Hub connection ✗ Heartbeats are failing (last one that worked 12m ago): dial tcp 10.101.0.1:8080: i/o timeout → sudo wg show (is there a recent handshake?) → Is the Hub's WireGuard UDP port open in its cloud firewall? → journalctl -u 'asdl-agent*' -n 50
Apps ! api is exited (Exited (1) 2 minutes ago) → asdl-agent logs api → asdl-agent restart api
Resources ✓ Disk: 40.1 GB (35%) free ✓ Memory: 41% used
4 ok, 1 warning, 1 problem| Section | Checks |
|---|---|
| Agent | The agent is running (if not, which asdl-agent-* service is down and how to start it), and whether an update is out or the last one failed. |
| Hub connection | Heartbeats reach the Hub, the WireGuard tunnel has a recent handshake, the Hub answers from this machine, this machine’s clock agrees with the Hub’s, and maintenance. |
| Apps | Docker works, and every container the Hub started is running. |
| Resources | Free disk (deploys fail when it’s full), memory and load. |
When something doesn’t work
Section titled “When something doesn’t work”Every error the command line prints, and what to do about it, is in Troubleshooting → Command line.