pitunnel program can take the following command-line parameters:
pitunnel [-h] [--port PORT] [--host HOST] [--name NAME] [--token TOKEN]
[--http] [--register] [--type TYPE] [--http-auth HTTP_AUTH]
[--quiet] [--persist] [--list] [--remove ID]
Show this help message and exit.
Port number of destination server.
Hostname or IP address of destination server (default: localhost).
Display name, for reference and subdomain creation.
Optional user tunnel token. Not required if installed from website.
Indicates that a tunnel is for a HTTP service. Will create a http link on the active tunnels list and subdomains for named tunnels.
Register a new device. Only needs to be called on first use by install script.
Used to identify system tunnels like device_monitor and terminal.
Add HTTP authorization to external access for this tunnel: HTTP_AUTH=username:password
Quite Mode. Doesn't output messages to standard out.
Makes the tunnel stay active even after closing your terminal or rebooting.
Lists persistent tunnels and their IDs.
Remove a persistent tunnel with an ID.