Skip to content

Migrating from maid

ordr is a complete rewrite of the maid CLI. The core concept is the same — rules move files — but the config format and features have changed.


Config format comparison

maid .maidrc:

{
"cleanRules": [
{
"dirName": "documents",
"fileExtension": [".pdf"],
"pattern": "",
"applyInDir": []
},
{
"dirName": "images",
"fileExtension": [".png", ".jpg"],
"applyInDir": ["/Users/you/Desktop"]
}
]
}

ordr .ordrrc:

version: 1
rules:
- name: "Documents"
target: "documents"
match:
extensions: [".pdf"]
- name: "Images"
target: "images"
match:
extensions: [".png", ".jpg"]
scope:
dirs: ["~/Desktop"]

Field mapping

maid fieldordr field
dirNametarget
fileExtensionmatch.extensions
patternmatch.pattern
applyInDirscope.dirs

New features in ordr

  • Dry-run / previewordr preview before you move anything
  • Undoordr undo reverses the last clean
  • Size matchersmin_size, max_size
  • Age matchersolder_than, newer_than
  • Conflict handlingrename, skip, or overwrite per rule
  • Local + global configs — project-level .ordrrc merges with ~/.ordrrc
  • ordr rules test — debug why a file isn’t matched
  • Single binary — no Node.js runtime needed