macosvpn

Create and manage Mac OS VPNs programmatically via CLI

brewmacoslinux
Try with needOr install directly
Source

About

Create Mac OS VPNs programmatically

Commands

macosvpn

Examples

Create a new L2TP VPN connection$ macosvpn create --l2tp MyVPN --endpoint vpn.example.com --username user --password pass
Create an IKEv2 VPN with pre-shared key$ macosvpn create --ikev2 CorporateVPN --endpoint corporate.vpn.com --username john --password secret
List all configured VPN connections$ macosvpn list