# Everything in the app works in Terminal, too.

> Everything Disk Census does, in Terminal: scan, find, clean and maintain with the census command, with JSON output for scripts and AI agents.

The app’s own engine ships inside it as the census command. Turn it on from the CLI and Agents tab and use it from any shell.

Disk Census feature: Command line. Canonical page: https://diskcensus.com/features/command-line

## How it works

### One engine, the same answers.

census is the engine the app runs on, so the app and Terminal always agree. One update brings both to the same version.

### It asks before it deletes.

Commands that delete list what they’ll remove and ask first. Everything else only reads.

### Made for scripts.

Every command can print JSON, with stable exit codes and progress updates.

## Good to know

- census comes inside the app, not as a separate download.
- One license covers the app and census.
- census search and census history do what Search and the Change card do in the app.

## Read more

- [The census command line docs](https://diskcensus.com/docs/cli.md)

## More features

- [Agent setup](https://diskcensus.com/features/agent-setup.md): Tick Claude Code, Codex, Gemini CLI or another agent in Disk Census, and it can check your disk and clean up with census, asking before it deletes.
- [AI Agents](https://diskcensus.com/features/ai-agents.md): Old versions, caches and logs left by Claude Code, Codex, Cursor and other AI coding agents, found and cleaned while their history and settings stay.
- [Safe to Clean](https://diskcensus.com/features/safe-to-clean.md): Disk Census finds the caches, logs, build output and old versions that rebuild on their own, and cleans them in one click after you check the list.
- [Every feature](https://diskcensus.com/features.md)
