From 80dec9849d8d4a8c7d0f7fd26d17a6a28995e806 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Sat, 28 Jun 2025 12:03:41 +0100 Subject: [PATCH] doc: add all watch-mode related flags to node.1 PR-URL: https://github.com/nodejs/node/pull/58719 Reviewed-By: Yagiz Nizipli --- doc/node.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/node.1 b/doc/node.1 index de6a3f7aa5f..a5f301a01eb 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -618,6 +618,19 @@ Set V8's thread pool size which will be used to allocate background jobs. If set to 0 then V8 will choose an appropriate size of the thread pool based on the number of online processors. If the value provided is larger than V8's maximum, then the largest value will be chosen. . +.It Fl -watch +Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart. + +By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch. +. +.It Fl -watch-path +Starts Node.js in watch mode and specifies what paths to watch. When in watch mode, changes in the watched paths cause the Node.js process to restart. + +This will turn off watching of required or imported modules, even when used in combination with --watch. +. +.It Fl -watch-kill-signal +Customizes the signal sent to the process on watch mode restarts. +. .It Fl -zero-fill-buffers Automatically zero-fills all newly allocated Buffer and SlowBuffer instances. .