| Crates.io | kleen |
| lib.rs | kleen |
| version | 0.1.0 |
| created_at | 2025-12-20 05:44:28.094157+00 |
| updated_at | 2025-12-20 05:44:28.094157+00 |
| description | A CLI tool to clean Mac system temporary and cache files |
| homepage | https://github.com/ark930/kleen |
| repository | https://github.com/ark930/kleen |
| max_upload_size | |
| id | 1996051 |
| size | 75,372 |
A CLI tool to clean Mac system temporary and cache files.
cargo install kleen
git clone https://github.com/ark930/kleen.git
cd kleen
cargo install --path .
# List all caches
kleen list
# List with detailed file information
kleen list --verbose
# List only specific category
kleen list --category dev
# Clean all caches (with confirmation)
kleen clean
# Clean without confirmation
kleen clean --force
# Clean only specific category
kleen clean --category browser
# Preview what will be deleted
kleen dry-run
# Preview specific category
kleen dry-run --category user
kleen categories
# Show config file path
kleen config path
# Generate default config file
kleen config init
| Category | Description |
|---|---|
system |
System temp files (/tmp, /private/var/folders) |
user |
User caches, logs, and Trash |
dev |
Developer tool caches (Xcode, Cargo, npm, pip, etc.) |
browser |
Browser caches (Chrome, Safari, Firefox, Edge) |
all |
All categories (default) |
The config file is located at ~/Library/Application Support/kleen/config.toml.
Run kleen config init to generate a default config file, then customize it as needed.
Example config entry:
[[dev]]
name = "Cargo Registry Cache"
path = "~/.cargo/registry/cache"
category = "dev"
description = "Rust Cargo package cache"
/private/var/folders)/tmp)~/Library/Caches)~/Library/Logs)~/.Trash)This project is licensed under the MIT License - see the LICENSE file for details.