Cache Commander is a powerful TUI that simplifies the exploration and cleaning of developer cache directories. It allows scanning for CVEs, identifying outdated packages, and reclaiming disk space, all while supporting popular tools like pip, npm, Cargo, and Homebrew. Keep your development environment tidy with ease.
Cache Commander (ccmd) is an advanced terminal user interface (TUI) designed for developers who need to explore, audit, and clean cache directories on macOS and Linux systems. Through this tool, users can perform crucial tasks such as scanning cached packages for known vulnerabilities, identifying outdated dependencies, and reclaiming valuable disk space, all within a unified platform.
Features
-
Comprehensive Cache Management: Browse through various cache providers such as pip, npm, Cargo, HuggingFace, and Homebrew. Gain insights into cached models, package archives, build artifacts, and more that typically consume significant disk space without user awareness.
-
User-Friendly Interface: The intuitive two-pane TUI displays a navigable tree on the left for directory structure and detailed information on the right for selected items, simplifying the understanding of cache contents and their respective statuses.
-
Security Scanning:
ccmdintegrates security features to check for known Common Vulnerabilities and Exposures (CVEs) in cached packages. By connecting to the OSV.dev API, it fetches vulnerability details and resolutions. -
Version Control: Keep all packages up to date by checking cached versions against official repositories (like PyPI, crates.io, and npm) and receive direct upgrade commands.
-
Batch Operations: Mark and delete multiple items easily via keyboard shortcuts, making it quick to clean up cache data that is no longer needed or may pose a security risk.
-
Multi-Provider Support: The tool effectively manages various cache providers, offering semantic names instead of generic hashes, allowing users to navigate their caches fluidly.
ccmd # Explore all default cache locations
ccmd --vulncheck # Scan for vulnerabilities on startup
ccmd --versioncheck # Check for outdated packages on startup
ccmd --root ~/.cache/huggingface # Scan a specific directory
Efficient Workflow
The overall workflow to reclaim disk space and enhance security involves scanning for vulnerabilities, filtering results, marking items for deletion, and executing cleanup—streamlining cache management through an organized approach.
Ideal For
Cache Commander is particularly useful for developers whose machines accumulate hidden cache data, including but not limited to machine learning models from HuggingFace and libraries like PyTorch, package archives from npm, and Homebrew caches. By integrating maintenance tasks in a single interface, ccmd minimizes risks and helps keep development environments clean and efficient.
Explore more about Cache Commander on its GitHub repository for detailed documentation and the installation process.
No comments yet.
Sign in to be the first to comment.