Command-Line Options

The 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]

Optional Arguments

-h, --help
Show this help message and exit.

--port PORT
Port number of destination server.

--host HOST
Hostname or IP address of destination server (default: localhost).

--name NAME
Display name, for reference and subdomain creation.

--token TOKEN
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.

--type TYPE
Used to identify system tunnels like device_monitor and terminal.

--http-auth HTTP_AUTH
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 ID
Remove a persistent tunnel with an ID.

Next: Mass Deployment