disk-cleanup-cli

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i disk-cleanup-cli

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

4.8 kB

Total Files

3

Last publish

Collaborators

  • suraj_chandra