Dev.JoshBrunton.WatchFile.Cli
0.4.1
dotnet tool install --global Dev.JoshBrunton.WatchFile.Cli --version 0.4.1
dotnet new tool-manifest
dotnet tool install --local Dev.JoshBrunton.WatchFile.Cli --version 0.4.1
#tool dotnet:?package=Dev.JoshBrunton.WatchFile.Cli&version=0.4.1
nuke :add-package Dev.JoshBrunton.WatchFile.Cli --version 0.4.1
<div> <span style="text-align: center;"> <h1>watch-file</h1> <p> A command-line utility for observing change (not growth!) in files. </p>
<hr />
This tool acknowledges that change and growth are different. Unlike tail -f and similar utilities, we reconsider the whole file when it changes.
Installation
This tool isn't currently available on any package managers.
If you're running a compatible operating system (Windows x64 or x86, Linux x64), you can download any of the pre-compiled releases. Download the file relevant to your OS and architecture, rename it to whatever you like (usually watch-file[.exe]), and drop it in a directory with the following guide:
| OS | Arch | Users | Path |
|---|---|---|---|
| Windows | x86 | Single | %USERPROFILE%\AppData\Local\Programs\ |
| Windows | x86 | Multi | C:\Program Files (x86)\ |
| Windows | x64 | Single | %USERPROFILE%\AppData\Local\Programs\ |
| Windows | x64 | Multi | C:\Program Files\ |
| Linux | x64 | Single | ~/.local/bin |
| Linux | x64 | Multi | /usr/local/bin |
Compile From Source
As a pre-requisite, you'll need the .NET 9 SDK. The shortest robust way to compile and install the tool is:
dotnet tool uninstall -g WatchFile.Cli
dotnet tool restore
dotnet cake --target Pack
dotnet tool install -g --add-source ./src/WatchFile.Cli/bin/nupkg WatchFile.Cli
As a one-liner:
dotnet tool uninstall -g WatchFile.Cli; dotnet tool restore && dotnet cake --target Pack && dotnet tool install -g --add-source ./src/WatchFile.Cli/bin/nupkg WatchFile.Cli;
License
The MIT License (MIT)
Copyright 2025 Josh Brunton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Credits & Notices
Thanks to Inter for the badges displayed in this README, which are released under the MIT license.
Thanks to the .NET Foundation and Contributors, who publish the .NET SDK under the MIT license.
Thanks to mmanela, who publishes DiffPlex under the Apache-2.0 license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.