cmdop machines
cmdop machines is a read-only inventory. It lists every machine in every
fleet you are a member of, in one request.
cmdop machines
cmdop machines --online
cmdop machines --json| Flag | Purpose |
|---|---|
--online | Hide offline machines. |
--json | Emit JSON instead of a table. |
How it differs from cmdop connect --list
Both print machines, but they answer different questions:
| Command | Scope | Purpose |
|---|---|---|
cmdop machines | Every fleet you belong to | Inventory. Viewer only — it does not attach. |
cmdop connect --list | One fleet, tied to the attach flow | Pick a target to connect to. |
Use cmdop machines to answer “what do I have and what is up right now”, then
cmdop connect <machine> to actually attach a terminal to one of them.
Automation output
Use --json when another tool or script needs the inventory. Treat the result
as a snapshot: online state can change between listing a machine and trying to
connect to it. A failed attach after a successful inventory usually means the
target went offline, the selected relay changed, or the target no longer
allows the requested access.
Related
Last updated on