disk-cleanup-cli
v1.0.0
Published
cli tool for disk-cleanup package
Downloads
9
Maintainers
Readme
Disk Cleanup CLI
This Command Line Interface (CLI) tool provides functionalities to perform disk cleanup operations using the disk-cleanup Node.js library.
Installation:
- To install the Disk Cleanup CLI tool, ensure you have Node.js installed on your system and then run:
npm install disk-cleanup-cli
Usage:
- The Disk Cleanup CLI provides various commands to manage disk space. Here are the available commands:
*Command Structure:
disk <command> [options]
*Available Commands
-Remove Temporary Files:
bash
disk temp <directoryPath>
- Delete Files Greater Than a Specified Size:
disk greater <directoryPath> <size>
- Delete Files Smaller Than a Specified Size:
disk smaller <directoryPath> <size>
- Delete Files Equal to a Specified Size:
disk equal <directoryPath> <size>
- Create Backup Directory:
disk createbackupdir <directoryPath>
- Backup a File:
disk backupfile <filePath> <backupDirectoryPath>
- Restore a Backup File:
disk restorebackup <fileName> <backupDirectoryPath> <restoreDirectoryPath>
- Remove a Specific File from Backup:
disk removebackupfile <fileName> <backupDirectoryPath>
- Remove the Backup Directory:
disk removebackupdir <backupDirectoryPath>
- Help - Display Available Commands:
disk --help
- for more details check out disk-cleanup library-[https://www.npmjs.com/package/disk-cleanup]