Skip to content
Edith

Docs

Command reference

ed machines power shutdown

Powers the machine off through systemd. Does nothing without --yes.

Output
ed machines power shutdown <machine> [--yes] [--json]

The command is also spelled ed machines power poweroff.

Arguments

Name Type / values Default What it does
<machine> machine name, ssh alias or id required Which machine to shut down.

Options

Name Type / values Default What it does
--yes flag off Actually shut it down. Without this nothing is done.
--json flag off Emit JSON on stdout instead of the human lines.
--help, -h flag off Print the help for this command on stdout and exit 0.
Output
$ ed machines power shutdown devboxwould shut Devbox downnothing was done; pass --yes to go ahead$ ed machines power shutdown devbox --yesDevbox is shutting down

--json shape

The same two shapes as reboot, with action set to shutdown and the remote line built from poweroff:

JSON
{  "action": "shutdown",  "applied": false,  "command": "sudo -n systemctl poweroff 2>&1 || systemctl poweroff 2>&1",  "machine": "Devbox"}
JSON
{  "action": "shutdown",  "applied": true,  "machine": "Devbox"}
Output
ed machines power shutdown devboxed machines power shutdown devbox --yesed machines devbox power poweroff --yesed machines power shutdown devbox --json

Behaviour notes

Identical to reboot in every respect but the verb: same 20 second timeout, same sudo-then-plain fallback, same refusal detection, same exit codes.

Think about the way back before you run it. A machine that is off answers nothing, so the only verb left is ed machines power wake, and that needs a stored MAC address and a machine whose firmware has wake-on-LAN enabled. Check with ed machines power status <machine> first: if WAKE says no, a shutdown is a trip to the physical power button.

Where to go next