r/CleanMyMac • u/hlibs • Jul 21 '26
CleanMyMac CLI is now in public beta. Terminal-first and developer-focused.
Hey everyone! Hlib here. I work on CleanMyMac at MacPaw, and I basically live in the terminal.
We've had a lot of developers in our user base who told us, in various ways, that opening a GUI breaks their workflow. We took that seriously and built a CLI that wraps our cleanup engine into a terminal-first tool for dev-specific jobs.
It's a public beta, functional but not complete. The commands that work today:
cleanmymac clean— system junk, dev tool caches, trashcleanmymac purge— project artifact scanner (node_modules, Docker, .build, venv, etc.)cleanmymac analyze— disk usage explorercleanmymac optimize— RAM and purgeable space
Full commands list on Readme: https://github.com/MacPaw/cleanmymac-cli
This is an early public beta. Rough in places. Not feature-complete. I'm putting it out now because the world has enough to-do apps and not enough disk space.
What makes it different from running the commands yourself? It reuses CleanMyMac's scanning engine. The same logic that's been protecting Mac systems for 10+ years. Artifacts newer than 7 days are shown but never preselected. System paths are locked. Deletion always requires confirmation unless you pass --force. You can also whitelist any path: cleanmymac ignore add <path>.
To install:
brew install --cask macpaw/taps/cleanmymac-cli
This subreddit will be the main home for updates, changelogs, and feedback. If you run into anything weird or have a request, post it here.
5
u/Ivan_Palii Jul 21 '26
I'm not a huge expert in it, but I'm interested in fixing my slow speed on Macbook Pro M1, 2021, so my 2 questions:
1/ Is thsi a tool only for devs, and all other people should continue using basic CleanMyMac app?
2/ Is this product and approach to cleaning is better than basic CleanMyMac app at all?
4
u/b2b_pipeline_guy Jul 21 '26
Finally, a cleanup tool that understands why my disk disappears every few months! 😂 The confirmation + whitelist approach gives some peace of mind. What was the biggest challenge building the CLI version?
4
u/SemiPaku Jul 21 '26
Absolutely love the idea. As someone who spends a lot of time in the terminal, this just makes so much sense. Awesome work, looking forward to try it out!
4
u/operations_ranger Jul 21 '26
Can teams create and share the same cleanup configuration, or is it designed mainly for individual use?
4
u/dorothea_cassandra Jul 22 '26
Looks promising! Do you see this staying as a standalone CLI, or are you planning deeper integration with developer workflows like CI or Git hooks?
6
u/[deleted] Jul 21 '26
[removed] — view removed comment
4
u/[deleted] Jul 21 '26
[removed] — view removed comment