CLI Reference
The companion CLI (ovpn-gui) shares the same service layer as the GUI. All commands support --json for machine-readable output.
Profile Management
Section titled “Profile Management”ovpn-gui profiles listovpn-gui profiles import-file /path/to/profile.ovpnovpn-gui profiles import-url https://vpn.example.com/profile.ovpnovpn-gui profiles rename PROFILE_ID "My VPN"ovpn-gui profiles remove PROFILE_IDSessions
Section titled “Sessions”ovpn-gui sessions connect PROFILE_IDovpn-gui sessions status SESSION_IDovpn-gui sessions pause SESSION_IDovpn-gui sessions resume SESSION_IDovpn-gui sessions disconnect SESSION_IDSettings
Section titled “Settings”ovpn-gui settings listovpn-gui settings set protocol tcpovpn-gui settings set launch_behavior restore-connectionProxy Management
Section titled “Proxy Management”ovpn-gui proxies listovpn-gui proxies add --name "Corp Proxy" --type http --host proxy.corp.com --port 8080ovpn-gui profiles assign-proxy PROFILE_ID PROXY_IDDiagnostics
Section titled “Diagnostics”ovpn-gui doctorovpn-gui doctor logsovpn-gui doctor exportovpn-gui doctor dbus-surface