Command reference
ed cleaner machines
Scan and clean the computers saved in Machines the same way Cleaner scans this Mac: caches, project build output and dependencies, and git worktrees in each machine's home folder. Cleaner runs small POSIX sh scripts on each machine over SSH, so nothing is installed there. The Machines extension must be on. macOS and Linux machines are supported. In the app, the same machines appear under Machines in Choose where to search, and their results join the normal Cleanup list.
ed cleaner machinesed cleaner machines scaned cleaner machines scan build-box --category nodeModules --jsoned cleaner machines cleaned cleaner machines clean build-box --yesed cleaner machines clean --path /home/dev/.cache/pip/http-v2 --permanently --yes| Command | Effect |
|---|---|
ls |
List the saved machines Cleaner can reach. The default. |
scan [machine...] |
Measure every category on each machine, in parallel. Read only. |
clean [machine...] |
Scan, then preview or apply the default selection on each machine. |
Machine names match the name, SSH alias, identifier or a unique prefix. With no names, every saved machine is used.
| Option | Effect |
|---|---|
--category <id> |
Limit to one category listed by categories, including project rules and worktrees. |
--path <path> |
Clean only these exact discovered remote paths. |
--include-review-required |
Also include categories that start unchecked, such as project output and worktrees. |
--permanently |
Delete instead of moving to the machine's Trash. Still needs --yes. |
--yes |
Apply. Omit for a read-only preview. |
--json |
Emit per-machine categories, planned bytes, moved bytes and failures. |
The project rules, git ignore checks, walk depth and skipped folders are the ones Cleaner uses on this Mac. Linux machines use the XDG locations of each cache rule (for example ~/.cache/pip), and ~/Library rules only apply on macOS. Worktrees with uncommitted changes, unpushed commits or a lock are never cleaned. Each item is checked against the file identity recorded by the scan before it is removed, and symbolic links are left alone. Trash moves go to ~/.Trash on macOS and to the freedesktop Trash (~/.local/share/Trash, with a .trashinfo file) on Linux, so file managers and trash-cli can restore them. Moving to Trash does not free space until that Trash is emptied.