1.0.0 • Published 5 months ago

disk-cleanup-cli v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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