Command line
Nyquist is a single binary called nyquist.
nyquist run
Section titled “nyquist run”Starts the server.
nyquist runnyquist 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.
nyquist check
Section titled “nyquist check”Checks a config file without starting anything.
nyquist checknyquist 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.
Everything else
Section titled “Everything else”| 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. |
Signals
Section titled “Signals”| 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. |
Environment
Section titled “Environment”| 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. |