Command line¶
Open the interface¶
Running pqsetup without a subcommand starts the local interface.
pqsetup
pqsetup serve --host 127.0.0.1 --port 8888
pqsetup serve --no-browser
The server only accepts 127.0.0.1 or localhost.
The startup screen shows the browser address and detected PQ environment.
The browser opens after the server is ready. Stop with Ctrl+C.
Server logs¶
Structure loading, perturbation, exports, errors and shutdown appear in the
terminal. Routine polling and static requests are quiet at info.
pqsetup serve --log-level debug --no-browser
pqsetup serve --no-browser 2> pqsetup.log
Logs go to standard error; the startup address goes to standard output.
Redirected output is plain text. NO_COLOR=1 disables terminal colors.
Level |
Events |
|---|---|
|
Actions, requests and server details |
|
Actions, readiness and shutdown |
|
Rejected requests and errors |
|
Failed requests and server errors |
Inspect the environment¶
pqsetup doctor
pqsetup doctor --json
doctor exits with 0 when PQ is found and 1 when it is not found.
Validate an input¶
pqsetup validate run.in
pqsetup validate --json run.in
Exit status:
Status |
Meaning |
|---|---|
|
Available checks passed |
|
Local or PQ validation reported an invalid input |
|
PQ validation could not run because of an explicit configuration or probe error |
Select a PQ executable¶
The global option works before the subcommand:
pqsetup --pq-executable /opt/pq/bin/PQ doctor
pqsetup --pq-executable /opt/pq/bin/PQ validate run.in
pqsetup --pq-executable /opt/pq/bin/PQ serve
PQSetup resolves the executable in this order:
--pq-executablethe saved PQSetup configuration
PQ_EXECUTABLEPQorpqonPATHa nearby PQ development build, when present
The saved configuration lives at $XDG_CONFIG_HOME/pqsetup/config.json, or
~/.config/pqsetup/config.json when XDG_CONFIG_HOME is unset.
Version¶
pqsetup --version