# entr

> Run arbitrary commands when files change

Source: https://talira.ai/catalog/entr-tnjj7sns
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / file watchers](https://talira.ai/categories/developer-tools/build/file-watchers)
- Platforms: linux, macos, cli[^5]
- Licence: ISC[^4]
- Pricing: Free and open source[^4]
- Free tier: yes[^4]
- Self-hostable: yes[^5]
- Creator: Eric Radman

entr (Event Notify Test Runner) runs a command whenever any of a list of files changes, using kqueue or inotify instead of polling. You pipe it a list of files from ls, find, ag or ack, so it composes with ordinary Unix tools. It can clear the screen, run through a shell, restart a long-running process such as a server on each change, react to new files in a directory, and pass the changed file name to the command. It is written by Eric Radman and runs on BSD, [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and Linux.

## Links

- Website: https://eradman.com/entrproject/
- GitHub: https://github.com/eradman/entr
- Docs: https://eradman.com/entrproject/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/entr>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/entr>[^2]

## Problems it solves

- rerun my tests every time I save a source file without a heavyweight watcher
- restart my dev server automatically when the code changes
- rebuild the project when any file in a list changes, using plain Unix pipes
- re-run a SQL script against the database each time I edit it
- watch a directory and react when a new file is added
- clear the terminal and show fresh output whenever my files change

## Features

- uses kqueue(2) or inotify(7), no polling
- reads the list of files to watch from standard input
- -r restarts a long-running process on change
- -d reacts to new files in watched directories
- -c clears the screen, -s runs the command through a shell
- /_ placeholder for the changed file
- custom status messages with awk status filters
- workaround for incomplete inotify on WSL and Docker for Mac

## Limitations

- Can't restart an interactive program: the -r flag can't be used with a task that reads from standard input[^3]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.47 out of 1.
Signals: maintenance 0.48, adoption 0.75, momentum 0.53, community 0.54, backing 0.20, extensibility 0.20.

- last commit 38 days ago
- 4 commits in the last 90 days
- 5.7k GitHub stars
- 22 contributors
- created by Eric Radman

## Alternatives

- [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md): Executes commands in response to file modifications
- [bacon](https://talira.ai/catalog/bacon-sqn1nm4z.md): Background code checker
- [Air](https://talira.ai/catalog/air-x5em024g.md): Live reload for Go apps

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://eradman.com/entrproject/ (checked 19 Nov 2026)
[^4]: https://github.com/eradman/entr/blob/master/LICENSE (checked 19 Nov 2026)
[^5]: https://github.com/eradman/entr (checked 19 Nov 2026)
