# CLI Reference ## Commands ### scan Scan a directory for files. ```bash nodupe scan [options] ``` Options: - `--threads N` - Number of threads - `--hash-size N` - Hash chunk size ### apply Apply changes from a plan. ```bash nodupe apply --plan ``` ### similarity Find similar files. ```bash nodupe similarity --file ``` ### verify Verify file integrity. ```bash nodupe verify --database ``` ### version Show version information. ```bash nodupe version ``` ### Rollback Commands #### rollback list List snapshots or transactions. ```bash nodupe rollback --list nodupe rollback --snapshots nodupe rollback --transactions ``` #### rollback create Create a snapshot of specified paths. ```bash nodupe rollback create [path2 ...] ``` #### rollback restore Restore files from a snapshot. ```bash nodupe rollback restore ``` #### rollback delete Delete a snapshot. ```bash nodupe rollback delete ``` #### rollback undo Undo the last transaction. ```bash nodupe rollback undo ``` ## Exit Codes | Code | Meaning | |------|---------| | 0 | Success | | 1 | Error | ## Configuration See [Getting Started](../Getting-Started.md#configuration) for config file options.