Skip to content

Command line

Nyquist is a single binary called nyquist.

Starts the server.

Terminal window
nyquist run
nyquist run -c /etc/nyquist/nyquist.toml
Option What it does
-c, --config The config file to use. Defaults to nyquist.toml in the current folder.

If the file doesn’t exist yet, Nyquist creates an empty one, readable only by the user running it. A fresh server without users prints a one time setup code in its log, see Users and access.

Checks a config file without starting anything.

Terminal window
nyquist check
nyquist check -c /etc/nyquist/nyquist.toml
Option What it does
-c, --config The config file to check. Defaults to nyquist.toml in the current folder.

It prints Looks good! and exits with 0 when Nyquist would take the file. Otherwise it explains every problem with its line and column, and exits with 1. Editing the config shows what that looks like.

Command What it does
nyquist --version Prints the version.
nyquist --help Lists the subcommands. Add it after one, like nyquist run --help, for its options.
Signal What happens
SIGHUP Reads the config file again and applies it, like Reload config file in the panel. A broken file is rejected and the running settings stay.
SIGINT or SIGTERM Shuts down cleanly. Connections get a little time to wrap up first.
Variable What it does
RUST_LOG Sets the log filter, like RUST_LOG=debug or RUST_LOG=nyquist=debug. When it’s set, it wins over level in [log], and the log level stops following the config file.