macOS
brew install watchexeclocal Homebrew formula metadata
sudo port install watchexecMacPorts ports tree · sysutils/watchexec/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für watchexec in AI-Agent-Workflows.
Installation
brew install watchexeclocal Homebrew formula metadata
sudo port install watchexecMacPorts ports tree · sysutils/watchexec/Portfile · Quelle: api.github.com
sudo apk add watchexecAlpine Linux edge package indexes · watchexec · Quelle: dl-cdn.alpinelinux.org
nix profile install nixpkgs#watchexecnixpkgs package indexes · pkgs/by-name/wa/watchexec/package.nix · Quelle: api.github.com
sudo pacman -S watchexecArch Linux sync databases · watchexec · Quelle: geo.mirror.pkgbuild.com
sudo zypper install watchexecopenSUSE Tumbleweed package metadata · watchexec · Quelle: download.opensuse.org
scoop install main/watchexecScoop official bucket manifest trees · bucket/watchexec.json · Quelle: api.github.com
Überblick
Execute commands when watched files change
Verlauf
watchexec is a Rust command-line tool that watches files and runs commands when they change. It is aimed at software-development feedback loops: rebuild, retest, rerun a server, invoke a linter, or emit structured file-change events without binding the workflow to one programming language or build system.
The public GitHub repository dates to September 18, 2016, and the GitHub release feed records an early 1.5.0 release on November 23, 2016. The project has since grown from a standalone file-watcher command into what its citation metadata calls both a tool and a crate ecosystem, with the CLI, reusable library crates, event types, signal support, process supervision, ignore-file handling, project-origin helpers, and related utilities.
The current README emphasizes cross-platform behavior on OS X/macOS, Linux, Windows, and more, along with practical details that matter in real projects: recursive watching, coalescing editor save bursts, loading `.gitignore` and `.ignore`, process-group handling, exposing changed paths through environment variables or JSON on stdin, and avoiding any required language runtime. The 2026 citation metadata identifies version 2.5.1, released March 30, 2026, and credits Matt Green and Felix Saparelli.
watchexec's adoption is visible in both packaging breadth and downstream specialization. The upstream package list distinguishes first-party binary packages, distro packages, Homebrew and MacPorts, Windows packaging through Scoop and Chocolatey, and installation through Cargo or cargo-binstall. The README also lists downstreams such as cargo-watch, cargo-lambda, devenv.sh, dotter, ghciwatch, and Tectonic, showing that watchexec is used both as an executable and as infrastructure for other developer tools.
The repository page reports roughly seven thousand stars and more than one hundred releases, which is substantial for a general-purpose CLI watcher. More importantly, the project's anti-feature is part of its adoption story: it is intentionally not tied to Git, not tied to a language ecosystem, and not a wrapper requiring cryptic `xargs` pipelines.
Common invocations are direct and task-shaped: watch JavaScript, CSS, and HTML files and run `npm run build`; restart `python server.py` when Python files change; run `make test` while ignoring `target`; send a signal instead of restarting; or emit JSON events to stdout for another program to consume. The CLI README documents extension filters, watch roots, ignore patterns, desktop notifications, timings, shell selection, process groups, and generated completions/manual pages.
In package-maintainer and developer workflows, watchexec is the lightweight alternative to writing a bespoke file watcher into each project. It can sit beside `make`, `just`, `systemfd`, cargo tools, static site generators, test runners, and local servers, providing the missing event loop while letting the existing command remain the source of truth.
watchexec matters to package nerds because it packages the hard part of cross-platform file watching into a small, reusable Rust tool with first-party binaries, distro packages, and library crates. It also reflects a modern CLI pattern: one executable for everyday use, but a crate ecosystem underneath for downstream tools that need event filtering, process supervision, and shell-independent process control.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
watchexec | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/watchexec/watchexec
Installationsmetadaten
| Paketschlüssel | brew:watchexec |
|---|---|
| Version | 2.5.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/watchexec |
| Homepage | https://watchexec.github.io/ |
| Repository | https://github.com/watchexec/watchexec |
| Upstream-Dokumentation | https://watchexec.github.io/docs |
| Lizenz | Apache-2.0 |
| Quellarchiv | https://github.com/watchexec/watchexec/archive/refs/tags/v2.5.1.tar.gz |
| Build-Abhängigkeiten | rust |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | watchexec |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
watchexec
nix profile install nixpkgs#watchexecwatchexec 2.3.2-r1
Executes commands in response to file modifications
https://github.com/watchexec/watchexec
sudo apk add watchexecwatchexec-bash-completion 2.3.2-r1
Bash completions for watchexec
https://github.com/watchexec/watchexec
sudo apk add watchexec-bash-completionwatchexec-doc 2.3.2-r1
Executes commands in response to file modifications (documentation)
https://github.com/watchexec/watchexec
sudo apk add watchexec-docwatchexec-fish-completion 2.3.2-r1
Fish completions for watchexec
https://github.com/watchexec/watchexec
sudo apk add watchexec-fish-completionwatchexec-zsh-completion 2.3.2-r1
Zsh completions for watchexec
https://github.com/watchexec/watchexec
sudo apk add watchexec-zsh-completionwatchexec 2.5.1-1
Executes commands in response to file modifications
https://github.com/watchexec/watchexec
sudo pacman -S watchexecwatchexec 2.5.1-1.1
Watches a path and runs a command whenever it detects modifications.
https://github.com/watchexec/watchexec
sudo zypper install watchexecwatchexec
sudo port install watchexecmain/watchexec
scoop install main/watchexecQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.