Skip to content
W

Watchexec

Executes commands in response to file modifications

by watchexecFree

#714in Developer Tools
0In stores

Description

Watchexec is a simple, standalone command-line tool that watches a path and runs a command whenever files in it change. Software development…

Highlights

  • Runs commands when files change
  • Watches subdirectories by default
  • Respects .gitignore and .ignore files
  • Runs on macOS, Linux and Windows
  • Works with any language or ecosystem

Ratings & Reviews

No ratings yet

Be the first to rate Watchexec.

People also visit

M

Modd

A flexible developer tool that runs processes and responds to filesystem changes

Developer Tools
Launch
T

Taskctl

Concurrent task runner, developer's routine tasks automation toolkit

Developer Tools
Launch
L

Livediff

Real-time file monitoring with beautiful live diff visualization in the terminal

Developer Tools
Launch
H

Hwatch

Alternative watch command with history, diff view, JSONL logging, and…

Developer Tools
Launch
G

Github File Watcher

Get notified when files change in a GitHub repo

Productivity
Launch
P

Poltergeist

The ghost that keeps your builds fresh

Productivity
Launch

Watchexec FAQ

What does Watchexec do?

It watches files or folders and runs a command each time they change, such as rerunning tests or rebuilding a project.

How do I install it?

Use a package manager such as Homebrew, Scoop or Nix, download a binary from the GitHub releases, or run cargo binstall watchexec-cli.

Does it work on Windows?

Yes. The README says it runs on macOS, Linux and Windows.

Can I limit it to certain file types?

Yes. Pass extensions with -e, for example watching only JavaScript, CSS and HTML files for a build.

Will it ignore my git-ignored files?

Yes. It loads .gitignore and .ignore files, so paths listed there are skipped.

Is it free?

The source is public on GitHub, and the project is open source.

What are the best Watchexec alternatives?

Popular alternatives to Watchexec include Modd, Taskctl and Livediff. See all Watchexec alternatives

Developer Stuff

Badges