Command-Line Options
The pitunnel
program can take the following command-line parameters:
Usage
pitunnel [-h] [--port PORT] [--host HOST] [--name NAME] [--token TOKEN]
[--http] [--https] [--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.--http
Indicates that a tunnel is for a HTTP service. Will create a http link on the custom tunnels list with a subdomain.--https (newer version of pitunnel only)
Indicates that a tunnel is for a HTTPS service. Will create a https link on the custom tunnels list with a subdomain.--register
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--quiet
Quite Mode. Doesn't output messages to standard out.--persist
Makes the tunnel stay active even after closing your terminal or rebooting.--list
Lists persistent tunnels and their IDs.--remove ID
Remove a persistent tunnel with an ID.Next: Mass Deployment