Subcommands24 subcommands
watchman clock
Returns the current clock value for a watched root
watchman find
Finds all files that match the optional list of patterns under the specified dir
watchman flush-subscriptions
This is designed to be used by interactive programs that have a background process or daemon maintaining a subscription to Watchman
watchman get-config
Returns the .watchmanconfig for the root
watchman get-config path
The path to root
watchman get-sockname
Get socket path
watchman list-capabilities
Returns the full list of supported capabilities offered by the watchman server
watchman log
Generates a log line in the watchman log
watchman log-level
Changes the log level of your connection to the watchman service
watchman query
Executes a query against the specified root
watchman shutdown-server
This causes your watchman service to exit with a normal status code
watchman since
Finds all files that were modified since the specified clockspec that match the optional list of patterns
watchman state-enter
This causes a watch to be marked as being in a particular named state
watchman state-leave
This causes a watch to no longer be marked as being in a particular named state
watchman subscribe
Subscribes to changes against a specified root and requests that they be sent to the client via its connection
watchman trigger
This will create or replace a trigger
watchman trigger-del
Deletes a named trigger from the list of registered triggers
watchman trigger-list
Returns the set of registered triggers associated with a root directory
watchman unsubscribe
Cancels a named subscription against the specified root
watchman version
The version and build information for the currently running watchman service
watchman watch-del
Removes a watch and any associated triggers
watchman watch-del-all
Removes all watches and associated triggers
watchman watch-list
Returns a list of watched dirs
watchman watch-project
Requests that the project containing the requested dir is watched for changes
OptionsOn watchman itself
--help-h
Show help for watchman
--inetd
Spawning from an inetd style supervisor
-S--no-site-spawner
Don't use the site or system spawner
-v--version
Show version number for watchman
--named-pipe-path
Specify alternate named pipe path <path>
-u
Specify alternate unix domain socket path <path>
--unix-listener-path
Specify alternate unix domain socket path <path>
-o
Specify the path to logfile <path>
--logfile
Specify the path to logfile <path>
--log-level
Set the log level <level>
--pidfile
Specify path to pidfile
-p--persistent
Persist and wait for further responses
-n--no-save-state
Don't save state between invocations
--statefile
Specify path to file to hold watch and trigger state <path>
-j--json-command
Instead of parsing CLI arguments, take a single json object from stdin
--output-encoding
CLI output encoding <encoding>
--server-encoding
CLI<->server encoding <encoding>
-f--foreground
Run the service in the foreground
--no-pretty
Don't pretty print JSON
--no-spawn
Don't try to start the service if it is not available
--no-local
When no-spawn is enabled, don't try to handle request in client mode if service is unavailable