A cross-platform CLI tool that safely moves files and folders to the trash instead of permanently deleting them.
trash-cli is a cross-platform command-line tool that moves files and folders to the system trash instead of permanently deleting them. It provides a safer alternative to the `rm` command by making file deletion reversible, preventing accidental data loss while maintaining command-line convenience.
Developers and command-line users who regularly delete files via terminal and want a safer, recoverable alternative to permanent deletion commands.
Unlike traditional deletion tools, trash-cli prioritizes safety by moving files to the trash where they can be recovered, reducing the risk of accidental data loss while maintaining the efficiency of command-line workflows.
Move files and folders to the trash
Works consistently on macOS, Linux, and Windows by moving files to the system trash, providing a safer alternative to 'rm' across different operating systems as highlighted in the README.
Accepts both file paths and glob patterns like '*.png' for batch operations, with support for dotfile matching via the --dot flag, enabling efficient and selective file trashing.
Includes a --verbose option to print trashed items, offering clear feedback and confirmation of actions, which reduces uncertainty in command-line operations.
Can be easily aliased to replace 'rm' in shell configurations (e.g., .bashrc), promoting safer deletion habits without extra typing, as suggested in the README's Tip section.
Requires Node.js and npm for installation, adding setup complexity and overhead compared to native shell commands, which may not be ideal for minimal or restricted environments.
Lacks an option for immediate, irreversible deletion; users needing to permanently remove files must rely on separate tools like del-cli or native commands, limiting its utility for secure data disposal.
Depends on the underlying OS's trash implementation, which can vary in reliability, capacity, or availability, potentially leading to inconsistencies or issues on some systems, despite cross-platform claims.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.