← 返回命令列表

Linux command

piactl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect to VPN

piactl connect

Disconnect VPN

piactl disconnect

Show connection status

piactl get connectionstate

Set region

piactl set region [us-east]

List regions

piactl get regions

Get current region

piactl get region

Enable kill switch

piactl set killswitch on

Show public IP

piactl get vpnip

说明

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.

参数

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.

FAQ

What is the piactl command used for?

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.

How do I run a basic piactl example?

Run `piactl connect` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does connect do in piactl?

Connect to VPN.