Skip to content

Welcome to NeatCLI

A smart CLI tool to organize and clean up messy directories

Crates.io GitHub release License: MIT


What is NeatCLI?

NeatCLI is a powerful command-line tool written in Rust that helps you automatically organize files, find duplicates, clean up old files, and maintain tidy directories. It's designed to be fast, safe, and flexible.

Perfect for

  • ๐Ÿ“‚ Organizing your Downloads folder
  • ๐Ÿ“ธ Sorting photos by date or camera
  • ๐ŸŽต Organizing music by artist/album
  • ๐Ÿ—‘๏ธ Cleaning up old files and duplicates
  • ๐Ÿ‘€ Watching folders for automatic organization

Features

  • ๐Ÿ—‚๏ธ Smart Organization - Organize files by type, date, extension, or metadata (EXIF/ID3)
  • ๐Ÿ” Duplicate Detection - Find duplicate files using SHA256 content hashing
  • ๐Ÿ–ผ๏ธ Similar Images - Detect visually similar images using perceptual hashing
  • ๐Ÿงน Cleanup Tools - Remove old files and empty folders
  • โช Undo Support - Full operation history with undo capability
  • ๐Ÿ‘๏ธ Watch Mode - Auto-organize new files as they appear
  • ๐Ÿ–ฅ๏ธ Interactive TUI - Visual file management interface
  • โšก Fast & Safe - Written in Rust, with dry-run by default

Quick Example

# Preview what will happen (dry-run is default)
neatcli organize ~/Downloads

# Actually organize the files
neatcli organize ~/Downloads --execute

# Find duplicate files
neatcli duplicates ~/Pictures

# Show directory statistics
neatcli stats ~/Documents

Getting Started

Ready to get started? Check out the Installation guide or jump straight to the Quick Start tutorial.

Installation

cargo install neatcli
brew tap fognil/tap
brew install neatcli
git clone https://github.com/fognil/neatcli.git
cd neatcli && cargo build --release