npm.io
1.0.0 • Published 2 years agoCLI

disk-cleanup-cli

Licence
ISC
Version
1.0.0
Deps
1
Size
5 kB
Vulns
0
Weekly
0

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