DedCore CLI: Feature Reference

Here’s what DedCore’s CLI actually does—no fluff, just the facts (with a side of sarcasm). If you want command syntax, check the other docs. If you want to know what’s possible, read on!

🔍 Content-Based Duplicate Detection

Scans files and finds true duplicates by hashing their contents (not just names or dates). Rename your files all you want—DedCore will still catch them.

🧠 Smart Hashing

  • Uses SHA-256, Blake3, or xxHash3 (auto-selected for speed or paranoia).
  • Parallelized with Rayon for fast scanning.

⚙️ Advanced Filtering

  • Filter by file type/extension, size range, age (days), or regex pattern.
  • Target specific files, folders, or wildcards.

🧬 Similarity Detection

  • Text: Groups files by content similarity (edit distance, adjustable threshold).
  • Images: Finds visually similar images using perceptual hashing.

🗑️ Safe Deletion & Quarantine

  • Quarantine system: Moves files to a safe zone before deletion.
  • Restore or permanently delete quarantined files (with commit and rollback subcommands).
  • All destructive actions require confirmation. No accidental data loss (unless you try really hard).

📦 Reporting

  • Generates JSON and HTML reports: see what was found, what was saved, and what was banished.
  • Reports include duplicate groups, similar files, and potential space savings.

🕵️ Recovery & Audit Log

  • Every quarantine, deletion, and restoration is logged for full traceability.
  • Recovery subcommand: List and restore from history if you change your mind (or your boss does).

🤖 Automation & Platform Support

  • Script-friendly: Works in cron jobs, batch scripts, and CI/CD pipelines.
  • Cross-platform: Linux, macOS, Windows. (No excuses.)

That’s the CLI!

For actual command usage, see the rest of the docs. For everything else, try --help and enjoy the snarky help messages.