Research-Stack/4-Infrastructure/NoDupeLabs/wiki/API/CLI.md

1.2 KiB

CLI Reference

Commands

scan

Scan a directory for files.

nodupe scan <directory> [options]

Options:

  • --threads N - Number of threads
  • --hash-size N - Hash chunk size

apply

Apply changes from a plan.

nodupe apply --plan <plan.json>

similarity

Find similar files.

nodupe similarity --file <file>

verify

Verify file integrity.

nodupe verify --database <db>

version

Show version information.

nodupe version

Rollback Commands

rollback list

List snapshots or transactions.

nodupe rollback --list
nodupe rollback --snapshots
nodupe rollback --transactions

rollback create

Create a snapshot of specified paths.

nodupe rollback create <path1> [path2 ...]

rollback restore

Restore files from a snapshot.

nodupe rollback restore <snapshot_id>

rollback delete

Delete a snapshot.

nodupe rollback delete <snapshot_id>

rollback undo

Undo the last transaction.

nodupe rollback undo

Exit Codes

Code Meaning
0 Success
1 Error

Configuration

See Getting Started for config file options.