LinuxCommandLibrary

piactl

controls Private Internet Access VPN from the command line

TLDR

Connect to VPN

$ piactl connect
copy
Disconnect VPN
$ piactl disconnect
copy
Show connection status
$ piactl get connectionstate
copy
Set region
$ piactl set region [us-east]
copy
List regions
$ piactl get regions
copy
Get current region
$ piactl get region
copy
Enable kill switch
$ piactl set killswitch on
copy
Show public IP
$ piactl get vpnip
copy

SYNOPSIS

piactl command [args]

DESCRIPTION

piactl controls Private Internet Access VPN from the command line. It manages connections and settings.
Connection commands handle VPN state. Quick connect uses last region or auto-selects.
Region selection chooses exit location. List available regions to see options.
Kill switch blocks traffic when disconnected. This prevents IP leaks during connection issues.
Settings configure protocol, port, and features. DNS and split tunneling are configurable.

PARAMETERS

connect

Connect to VPN.
disconnect
Disconnect VPN.
get PROPERTY
Get setting or status.
set PROPERTY VALUE
Set configuration.
login
Authenticate.
logout
Log out.
reset
Reset to defaults.

PROPERTIES

connectionstate

Connection status.
region
VPN region.
regions
Available regions.
vpnip
VPN IP address.
publicip
Current public IP.
killswitch
Kill switch state.
protocol
VPN protocol.

CAVEATS

Requires PIA daemon running. Subscription required. Some features need GUI configuration first.

HISTORY

piactl is the command-line interface for Private Internet Access VPN service. It provides scriptable control over the PIA client for automation and headless systems.

SEE ALSO

openvpn(1), wg(1), nmcli(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community