Read this in: English | Spanish
A command-line tool (CLI) to automatically organize files in any directory on your system.
When working with folders that accumulate files (Downloads, Desktop, projects, etc.), things usually get messy:
- Files mixed by type.
- Time wasted manually sorting files.
- Risk of moving or deleting the wrong files.
Auto Organize CLI automates and fixes this process.
- Automatic file organization by type (based on file extensions).
- Simulation mode (
--preview) to preview changes. - Type filters (
--only,--exclude). - Only moves files — never deletes them.
- Tested on Windows and Linux (macOS compatibility is expected due to Node.js cross-platform support).
Requires Node.js >= 16
npx auto-organizenpm install -g auto-organizeNavigate to any directory on your system. For example:
cd /Users/DownloadsThen run:
auto-organize || npx auto-organizeDepending on the files present, it will create folders such as:
Images/
Documents/
Audios/
Videos/
Archives/And move files into their corresponding folders.
photo.jpg -> Images/
document.pdf -> Documents/
song.mp3 -> Audios/
video.mp4 -> Videos/
archive.rar -> Archives/Example
Preview the organization before applying real changes:
auto-organize --preview || auto-organize -pExample output:
Images/
photo.jpg
Documents/
contract.pdf
Audios/
song.mp3Example
Organize only the specified file types (if there is more than one type, separate the types with a comma).
auto-organize --only imagesauto-organize --only images,videosExcludes the specified file types (if there is more than one type, separate the types with a comma)
auto-organize --exclude archivesauto-organize --exclude archives,documentsDisplay the help guide and available types.
auto-organize --help || auto-organize -h- images
- documents
- spreadsheets
- presentations
- archives
- audios
- videos
- codes
- Organizing the Downloads folder
- Quick Desktop cleanup
- Automatically classifying project files (e.g. a
/publicdirectory)
Contributions are welcome:
- Fork the project.
- Create a feature branch:
git checkout -b feature/{your-feature} - Commit your changes:
git commit -m 'Add your feature' - Push the branch:
git push origin feature/{your-feature} - Open a pull request.
- MIT
-
LinkedIn: Christian Mathías Rincón
-
GitHub: @ChristianRincon


