# ed machines power shutdown

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

- Canonical URL: https://getedith.pro/docs/cli/machines-power/power-shutdown
- Updated: 2026-12-02

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

```
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. |

```
$ ed machines power shutdown devbox
would shut Devbox down
nothing was done; pass --yes to go ahead

$ ed machines power shutdown devbox --yes
Devbox 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"
}
```

## Examples

```
ed machines power shutdown devbox
ed machines power shutdown devbox --yes
ed machines devbox power poweroff --yes
ed 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

- [`ed machines power`](https://getedith.pro/docs/cli/machines-power), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
