watch
Watch a directory and auto-organize new files as they appear.
Usage
Options
| Flag | Description |
|---|---|
--by-type |
Organize by file type (default) |
--by-date |
Organize by date |
--by-extension |
Organize by extension |
--config |
Use custom config file |
--auto |
Auto-confirm without prompts |
Examples
Watch Downloads Folder
Output:
→ Watching /Users/you/Downloads (press Ctrl+C to stop)...
[14:32:15] New file: report.pdf
→ Moving to Documents/report.pdf
Confirm? [y/N]:
Auto Mode
Skip confirmations:
With Custom Config
How It Works
- NeatCLI monitors the directory for new files
- When a file is created or modified, it's detected
- The file is organized according to the selected mode
- With
--auto, this happens immediately; otherwise, you're prompted
Background Service
For permanent background watching, consider setting up a launchd (macOS) or systemd (Linux) service.
Use Cases
- Downloads folder - Auto-organize downloads as they complete
- Sync folders - Organize files from cloud sync services
- Import folders - Sort files from camera imports
See Also
- organize - One-time organization
- Configuration - Custom rules