Getting Started
Installation
brew tap McMuellermilch/tapbrew install ordrgit clone https://github.com/McMuellermilch/ordrcd ordrgo build -o ordr ./cmd/ordrmv ordr /usr/local/bin/Verify the installation:
ordr --versionQuick Start
-
Create a config file
Terminal window ordr init --templateThis creates
~/.ordrrcwith a few starter rules (PDFs, images, archives). Open it in your editor to customize — it’s plain YAML. -
Preview what would be moved
Terminal window ordr preview ~/Desktopordr shows every file that matches a rule and where it would go. Nothing is moved yet.
-
Run the clean
Terminal window ordr clean ~/Desktopordr shows the plan again and asks for confirmation before moving anything.
-
Made a mistake? Undo it
Terminal window ordr undoEvery clean operation is logged.
ordr undoreverses the last one.
Your first .ordrrc
The config file lives at ~/.ordrrc (global) or .ordrrc in any directory (local).
It’s YAML and looks like this:
version: 1
rules: - name: "PDFs to documents" target: "documents" match: extensions: [".pdf"]
- name: "Screenshots" target: "~/Pictures/Screenshots" match: pattern: "^Screenshot.*" extensions: [".png", ".jpg"] scope: dirs: ["~/Desktop"]
- name: "Old large videos" target: "~/Archive/Videos" match: extensions: [".mp4", ".mov", ".mkv"] min_size: "500MB" older_than: "90d"See Configuration for the full reference.
What’s next?
- Command reference — all flags and options
- Configuration examples — real-world rule setups
- Install via Homebrew — tap setup and updates
- Watch mode — auto-organize files as they appear (macOS only)