Skip to Content
CLIStart

Start and stop the agent

After joining a fleet, use the short lifecycle commands:

cmdop start cmdop status cmdop restart cmdop stop

cmdop start starts the agent on this machine and waits for a connection result. It does not open a terminal on another machine; use cmdop connect for that.

The equivalent long forms are cmdop agent start, cmdop agent status, cmdop agent restart, and cmdop agent stop.

If an agent may already be running and you want a clean one either way:

cmdop start --restart

For troubleshooting, run the agent in the foreground:

cmdop start --foreground

Start on boot

cmdop start and cmdop stop only run or halt the agent right now. They do not decide whether the machine comes back online after a reboot — that is autostart, a separate setting:

cmdop autostart status cmdop autostart on cmdop autostart off

Stopping the agent does not disable autostart, so a stopped machine still comes back after a restart until you turn autostart off.

For a long-running host, install the agent as an operating-system service:

cmdop service install cmdop service status

Supported service scope and options depend on the host operating system. Run cmdop service --help on that host for its exact interface.

Last updated on