VorticPanel

Reference

Command line

Controller

/opt/panel/dist-bin/vorticpanel <command> [flags]
Command What it does
serve Runs the panel. The default when no command is given.
setup Creates the first Owner account. Refuses once the panel is set up; Owners invite more staff from Staff & roles.
open-backup <file> Checks and opens a controller backup with its passphrase, writing panel.db, secret.key and README.txt into the current folder (--to <folder> for another, --passphrase-file <path> instead of asking). It replaces nothing already there.
audit-verify Checks the audit log’s chain, and the places of pruned entries against the panel’s record of its pruning, and prints the newest entry’s hash. Exits with 1 and names the first entry that doesn’t check out when one was changed, taken out or added. With --journal FILE (or --journal - for stdin), it also checks the audit log against a copy of the journal and lists the entries where they differ. It only reads, so it can run while the panel does.
version Prints the controller’s version

apply-update and update-finished are run by the panel-update service when staff click Update to …; they aren’t for running by hand.

Flags are --name value, --name=value, or --name alone for on. Every controller setting except PANEL_SECRET_KEY and PANEL_SELF_UPDATE has a flag.

setup

Without flags, setup asks for your name, email, company name (shown in the panel) and a password of 12 characters or more, then shows a QR code for your authenticator app and asks for a code.

Flag What it does
--name, --email, --organization Answer the questions in advance
--password-file <path> Read the password from a file instead of asking
--totp-secret-file <path> Read the two-factor secret (base32) from a file instead of showing a QR code
--totp-secret <base32> The same, with the secret on the command line, where it’s kept in shell history. Use --totp-secret-file.
--no-two-factor Don’t require two-factor for staff. Not recommended.
--if-needed Do nothing if the panel already has an Owner. The installer runs setup this way, so an upgrade doesn’t ask again.

The installer runs setup for you. To run it by hand, run it as the panel user with the same settings as the service:

runuser -u panel -- sh -c 'umask 077; set -a; . /etc/panel/controller.env; exec /opt/panel/dist-bin/vorticpanel setup'

audit-verify

Run it with the service’s settings, so it finds the panel’s database:

runuser -u panel -- sh -c 'set -a; . /etc/panel/controller.env; exec /opt/panel/dist-bin/vorticpanel audit-verify'

Against the controller’s own journal:

journalctl -u panel -o cat | runuser -u panel -- sh -c 'set -a; . /etc/panel/controller.env; exec /opt/panel/dist-bin/vorticpanel audit-verify --journal -'

After a break-in, use the copy forwarded to another server instead: put it on the controller as a file the panel user can read (one audit line per line, as journalctl -o cat writes them, with or without journalctl’s date and host in front) and give its path to --journal.

Stopping

On SIGTERM (systemctl stop or restart), the controller refuses new changes, waits up to PANEL_STOP_WAIT seconds for running jobs, then gives open connections 10 seconds more. Jobs still running are marked failed, with the error interrupted, and aren’t run again.

Node agent

node /opt/panel-agent/panel-agent.mjs <command>
Command What it does
enroll --controller <url> --token <enr_…> Enrolls the node, saves its credential and keeps the panel’s key. The install script runs this for you.
run Connects to the controller and does its work. The panel-agent service runs this.
version Prints the agent’s version
controller-key Prints the panel key the node trusts (SHA256:…), to compare with the one on the node’s Settings → Agent in the panel
reset-controller-key --yes Forgets the panel key the node trusts, so it keeps the key of the next controller it connects to. Restart the agent afterwards. Only for a panel that really has a new key: see Resetting a node’s key.
bridge-plan, bridge-apply Work out and make the br-public bridge, undoing it if the node loses its connection. The install script runs these for you. bridge-plan on its own changes nothing: it says what it would do, or why it can’t.

Every word has to appear. ↑ ↓ to move, Enter to open.