DOKK / manpages / debian 11 / reflex / reflex.1.en
REFLEX(1) USER COMMANDS REFLEX(1)

Reflex - Run a command when files change

reflex [OPTIONS] [COMMAND]

Reflex is a small tool to watch a directory and rerun a command when certain files change. It's great for automatically running compile/lint/test tasks and for reloading your application when the code changes.

Include normally ignored files (VCS and editor special files). Defaults to False.

A configuration file that describes how to run reflex (or '-' to read the configuration from stdin).

How to decorate command output. Choices: none, plain, fancy. Default is plain.

A shell glob expression to match filenames. (May be repeated.)

A shell glob expression to exclude matching filenames. (May be repeated.)

A regular expression to exclude matching filenames. (May be repeated.)

Only match directories (not files). Defaults to false.

Only match files (not directories). Defaults to false.

A regular expression to match filenames. (May be repeated.)

Don't run multiple commands at the same time. Defaults to false.

Allow services this long to shut down. Defaults to 500ms.

Indicates that the command is a long-running process to be restarted on matching changes. Defaults to false.

The substitution symbol that is replaced with the filename in a command. Defaults to "{}"

Verbose mode: print out more information about what reflex is doing. Defaults to false.

Print each .txt file if it changes:

reflex -r '\.txt$' echo {}

Run make(1) if any of the .c files in this directory change:

reflex -g '*.c' make

Build and run a server; rebuild and restart when .java files change:

reflex -r '\.java$' -s -- sh -c 'make && java bin/Server'

October 29, 2018 version 0.2.0+git20181022.3df204f