CLI Reference
UndoDisk includes a command-line interface for advanced users and automation workflows.
Usage
undodisk [command] [options]
Commands
scan
Run a recovery scan on a drive or partition.
undodisk scan <drive> [options]
| Option | Description |
|---|---|
--mode | Scan mode: quick or deep (default: quick) |
--output | Output directory for recovered files |
--format | Output format: json, csv, or table (default: table) |
--min-confidence | Minimum AI confidence score (0–100) |
recover
Recover files from a completed scan.
undodisk recover <scan-id> [options]
| Option | Description |
|---|---|
--output | Recovery destination directory |
--filter | File type filter (e.g., *.jpg,*.png) |
--overwrite | Overwrite existing files at destination |
health
Display S.M.A.R.T. health information for connected drives.
undodisk health [drive]
| Option | Description |
|---|---|
--format | Output format: json or table (default: table) |
--watch | Continuously monitor drive health |
vault
Manage Recovery Vault monitored folders.
undodisk vault <subcommand>
| Subcommand | Description |
|---|---|
list | List monitored folders |
add <path> | Add a folder to Recovery Vault |
remove <path> | Remove a folder from Recovery Vault |
status | Show vault status and statistics |
Global Options
| Option | Description |
|---|---|
--help | Show help information |
--version | Show version number |
--verbose | Enable verbose output |
--quiet | Suppress non-essential output |
--license | Display license information |