el: search your Mac from Terminal
el is the command-line companion to Everything Locator. It sends your search to the app's index, so results come back as fast as in the app's window, in the same Everything-style syntax, as plain paths you can pipe into other commands, or as JSON or CSV.
Install
Download el-1.0.1.pkg · 166 KB
- Open the downloaded
el-1.0.1.pkg. The installer putselin/usr/local/bin, which every Mac shell already searches. - In Everything Locator, open Settings › AI Agents and turn on Let AI agents on this Mac search with Everything Locator.
- Choose el (Terminal) next to Set up, click Copy with Key, paste the line into Terminal and press Return.
elanswers with how many items the app has indexed.
Then try el search report ext:pdf. Everything Locator must be running for el to work; turn on Open at login in its General settings if you use el in scripts.
Prefer to put it somewhere yourself? el-1.0.1.zip holds the same signed and notarized binary. SHA-256:
el-1.0.1.pkg a7ccf627dcaed3f7089c11f860ea9ed34a8cfcf8688d9fb71b3500cabe0cf29b
el-1.0.1.zip 396f9420abbfe584229f1c3db34d948856b4b530553767f89d6c1661936ff455
What it looks like
$ el search report ext:pdf dm:thisyear
/Users/demo/Documents/Quarterly report.pdf
/Users/demo/Documents/Taxes/report-2026.pdf
$ el size ~/Movies -n 3
12 GB /Users/demo/Movies/Trips/
4.1 GB /Users/demo/Movies/screen-recording.mov
850 MB /Users/demo/Movies/Family/
17.2 GB /Users/demo/Movies/ (total)
Commands
| Command | What it does |
|---|---|
el search <query> | files and folders that match, one path per line |
el size [folder] | what takes the most disk space inside a folder (default: the current one), and its total |
el dupes <query> | files with the same content among a search's results, largest first |
el info <path> | kind, size, disk space and dates |
el reveal <path> | shows the items in a Finder window |
el status | whether el can reach the app, and which folders are indexed |
el syntax | the whole search syntax, with examples |
el help [command] | every option, in Terminal |
The words after el search are one search in the Everything search syntax: pic: dm:lastweek, folder: node_modules, '*.mov' 'size:>1gb', content:invoice ext:pdf (PDFs whose text has the word, answered by Spotlight). Put a word that holds *, ?, >, <, |, ! or \ in single quotes, so the shell passes it on as typed instead of reading it as a pattern or a redirect. Quote a phrase to keep it together: el search "annual report".
Search options
| Option | Effect |
|---|---|
-n 20 | at most 20 results (default 100) |
-a, --all | every result |
-s size | sort by name, path, size, modified or created; sizes and dates come largest or newest first (--asc reverses) |
--in ~/Projects | only items inside that folder |
-l | size and date before each path |
-0 | paths ended by NUL instead of a new line, for xargs -0 |
--json, --csv | every detail, for scripts and spreadsheets |
In scripts
# the ten largest videos, with sizes
el search -l -s size -n 10 video:
# logs over 100 MB, listed by ls (names with spaces are safe)
el search -0 --all ext:log 'size:>100mb' | xargs -0 ls -lh
# duplicates in Downloads, as a spreadsheet
el dupes --in ~/Downloads --min 10mb --csv > duplicates.csv
# names and sizes with jq
el search --json ext:psd | jq -r '.items[] | "\(.bytes)\t\(.path)"'
The exit status is 0 when something was found, 1 when nothing was, 2 for a mistyped command and 3 when el could not reach the app, so if el search -n 1 "invoice 2026" >/dev/null; then … works as you would expect. Notes such as "100 of 2,345 results" go to standard error, and only when it is a terminal, so pipes get the paths alone.
Privacy
el talks only to Everything Locator on the same Mac, at 127.0.0.1, with the key you copied from the app. Nothing goes over the network. The key is saved in ~/.config/everything-locator/el.json, which only your user account can read; New Key… in the app's settings turns old keys off. el sees what the app's window shows (names, paths, sizes and dates), never what is inside files; a content: search tells it which files contain a word. It sees only the folders you allow in Settings › AI Agents.
If something goes wrong
- "zsh: no matches found" or a file named after a size appears: the shell read
*or>itself. Put that word in single quotes, e.g.'size:>100mb'. - "Everything Locator is not answering": open the app, and check that access is turned on in Settings › AI Agents. It needs Everything Locator Pro.
- "Everything Locator refused the key": the key was changed with New Key…. Copy the
el setupline again and run it. - "el: command not found": open a new Terminal window after installing, or run
/usr/local/bin/el. - A file is missing from the results:
elsearches the folders the app indexes; add the folder in Settings › Indexing. Hidden files are left out unless Index hidden files and folders is on.
Uninstall
sudo rm /usr/local/bin/el
sudo pkgutil --forget us.cnnex.everythinglocator.el
rm -r ~/.config/everything-locator
Questions: [email protected].