
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
clean-my-mac-cli
Advanced tools
An open-source command-line tool to clean your Mac, inspired by CleanMyMac. Scan and remove junk files, caches, logs, and more.
Just run one command - no installation required:
npx clean-my-mac-cli
That's it! The CLI will:
npx clean-my-mac-cli - no complex flags to remember# Interactive mode - scan, select, and clean
npx clean-my-mac-cli
# Include risky categories (downloads, iOS backups, large files)
npx clean-my-mac-cli --risky
Remove applications completely, including their preferences, caches, and support files:
npx clean-my-mac-cli uninstall
# Flush DNS cache (may require sudo)
npx clean-my-mac-cli maintenance --dns
# Free purgeable space
npx clean-my-mac-cli maintenance --purgeable
# List all available categories
npx clean-my-mac-cli categories
# Manage configuration
npx clean-my-mac-cli config --init
npx clean-my-mac-cli config --show
# Manage backups
npx clean-my-mac-cli backup --list
npx clean-my-mac-cli backup --clean
If you use this tool frequently, install it globally:
npm install -g clean-my-mac-cli
clean-my-mac
| Category | Safety | Description |
|---|---|---|
system-cache | 🟡 Moderate | Application caches in ~/Library/Caches |
system-logs | 🟡 Moderate | System and application logs |
temp-files | 🟢 Safe | Temporary files in /tmp and /var/folders |
language-files | 🔴 Risky | Unused language localizations |
| Category | Safety | Description |
|---|---|---|
dev-cache | 🟡 Moderate | npm, yarn, pip, Xcode DerivedData, CocoaPods |
homebrew | 🟢 Safe | Homebrew download cache |
docker | 🟢 Safe | Unused Docker images, containers, volumes |
node-modules | 🟡 Moderate | Orphaned node_modules in old projects |
| Category | Safety | Description |
|---|---|---|
trash | 🟢 Safe | Files in the Trash bin |
downloads | 🔴 Risky | Downloads older than 30 days |
ios-backups | 🔴 Risky | iPhone and iPad backup files |
mail-attachments | 🔴 Risky | Downloaded email attachments |
duplicates | 🔴 Risky | Duplicate files (keeps newest) |
| Category | Safety | Description |
|---|---|---|
browser-cache | 🟢 Safe | Chrome, Safari, Firefox, Arc cache |
| Category | Safety | Description |
|---|---|---|
large-files | 🔴 Risky | Files larger than 500MB |
--risky to include.$ npx clean-my-mac-cli
🧹 Clean My Mac
──────────────────────────────────────────────────────
Scanning your Mac for cleanable files...
Found 44.8 GB that can be cleaned:
? Select categories to clean (space to toggle, enter to confirm):
◉ 🟢 Trash 2.1 GB (45 items)
◉ 🟢 Browser Cache 1.5 GB (3 items)
◉ 🟢 Temporary Files 549.2 MB (622 items)
◉ 🟡 User Cache Files 15.5 GB (118 items)
◉ 🟡 Development Cache 21.9 GB (14 items)
Summary:
Items to delete: 802
Space to free: 41.5 GB
? Proceed with cleaning? (Y/n)
✓ Cleaning Complete!
──────────────────────────────────────────────────────
Trash ✓ 2.1 GB freed
Browser Cache ✓ 1.5 GB freed
Temporary Files ✓ 549.2 MB freed
User Cache Files ✓ 15.5 GB freed
Development Cache ✓ 21.9 GB freed
──────────────────────────────────────────────────────
🎉 Freed 41.5 GB of disk space!
Cleaned 802 items
# Clone the repo
git clone https://github.com/guhcostan/clean-my-mac.git
cd clean-my-mac
# Install dependencies
npm install
# Run in development mode
npm run dev
# Run tests
npm test
# Run linter
npm run lint
# Type check
npm run typecheck
# Build for production
npm run build
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE for details.
This tool deletes files from your system. While we've implemented safety measures, always ensure you have backups of important data. Use at your own risk.
FAQs
Open source CLI tool to clean your Mac - similar to CleanMyMac
The npm package clean-my-mac-cli receives a total of 4 weekly downloads. As such, clean-my-mac-cli popularity was classified as not popular.
We found that clean-my-mac-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.