Porthole

CLI reference

Every Porthole command, flag, and environment variable.

porthole host

Starts a terminal sharing session. Spawns your shell, registers a short-lived session with the signaling server, and prints the link, code, and QR.

porthole host [flags]
FlagDefaultDescription
--shell <name>$SHELL, else bashShell to spawn for the session.
--readonlyfalseViewers can watch but cannot type. Enforced by the agent, not the browser.
--password <value>noneRequire viewers to enter this password before joining.
--expire <duration>0 (never)Auto-expire the session after a duration, e.g. 30m, 2h.
--oncefalseClose the session after the first viewer disconnects.
--no-qrfalseSkip printing the QR code.

porthole update

Updates the agent in place to the latest release.

porthole update [flags]
FlagDefaultDescription
--checkfalseReport whether a newer version exists, without installing.
--forcefalseReinstall even if already up to date, or installed via a package manager.

porthole version

porthole version

Prints the version and platform, e.g. porthole v0.1.0 (linux/amd64).

Global flags

Available on every command:

FlagDefaultDescription
--server <url>built-in defaultOverride the signaling server URL.
--log-level <level>infoLog verbosity: debug, info, warn, or error.

Environment variables

Flags take precedence over environment variables, which take precedence over defaults.

VariableEquivalentDescription
PORTHOLE_SERVER--serverSignaling server URL.
PORTHOLE_SHELL--shellShell to spawn.
PORTHOLE_PASSWORD--passwordSession password (handy for not putting it in shell history).

On this page