watchexec
CLIExecutes commands in response to file modifications.
0 views
Installation
Homebrew
brew install watchexecCargo
cargo install watchexec-cliLinks
License
Apache-2.0AI Agent Notes
Re-run commands automatically when files change
When to use
Auto-restarting dev servers or rebuilding on file save
Examples
watchexec -r -- cargo runwatchexec -e ts -- pnpm build
Proven Recipes
Restart server on file change🟢 97% success
watchexec -r -- node server.jsRun build on TypeScript change🟢 96% success
watchexec -e ts -- pnpm buildWatch specific directory only🟢 97% success
watchexec -w src/ -- pnpm test