Command-line interface for IVPN released

Releases By Alexandr Stelnykovych | Posted on May 20, 2020

As privacy advocates and technologists we are constantly working on features which we think will improve the user experience of the IVPN apps. Less than a month after the release of the Linux app, we are proud to release a command-line interface (CLI) for the macOS and Windows apps. After installing v2.12.0, it is possible to connect to the IVPN network using either the command line or graphical interface.

To get started, open a Command Prompt from the Start menu on Windows or run Terminal.app on macOS. Enter ivpn connect -any -country Canada and hit enter - this simple command will start a VPN connection to an IVPN server in Canada. You can also try running ivpn connect -last to connect with the last successfully used connection settings.

command line interface gif

You can control all aspects of the IVPN app through the command line. Run ivpn -h to learn more about the available commands and parameters:

$ ivpn -h
Command-line interface for IVPN client (www.ivpn.net)
version:2.12.0 (date:2020-05-13 commit:f8da51caf76cab956c1cc38819d08e04a337a296)

Usage: ivpn COMMAND [OPTIONS...] [COMMAND_PARAMETER] [-h|-help]

COMMANDS:
status           Prints full info about IVPN state
connect LOCATION Establish new VPN connection
disconnect       Disconnect active VPN connection (if connected)
servers FILTER   Show servers list
firewall         Firewall management
wgkeys           WireGuard keys management
dns DNS_IP       Default 'custom DNS' management for VPN connection
antitracker      Default AntiTracker configuration management for VPN connection
logs             Logging management
login ACCOUNT_ID Login operation (register ACCOUNT_ID on this device)
logout           Logout from this device (if logged-in)
account          Get info about current account

Tips:
 ivpn COMMAND -h         Show detailed description of command
 ivpn -h -full           Show detailed description about all commands


Our continued aim is to make the IVPN experience as seamless as possible. We have added the CLI option on macOS and Windows for customers who prefer to operate through the command line. It is just an option: you can also continue using the IVPN app graphical interface as before.

IVPN Team

apps
We invite you to discuss this post in our Reddit community or on Twitter. You can also send your feedback to blog@ivpn.net.
IVPN News

Independent security audit concluded

By Nick Pestell

IVPN News

IVPN applications are now open source

By Viktor Vecsei

Releases

Beta IVPN Linux app released

By Viktor Vecsei

Releases

Key rotation issue fix in IVPN iOS app – update required

Posted on February 18, 2025 by Viktor Vecsei

In summary: We identified a potential DNS leak issue affecting our iOS app in brief intervals during WireGuard key regeneration. Details of the issue When IVPN iOS app rotates WireGuard keys while VPN is connected, the app calls the asynchronous method setTunnelNetworkSettings to update VPN tunnel with new configuration.
Introducing device management for better control of logged in devices Releases

Introducing device management for better control of logged in devices

Posted on February 13, 2024 by Viktor Vecsei

We are introducing IVPN device management, an opt-in (disabled by default) feature that helps you review and log out from devices currently logged in to IVPN apps. This step is a direct response to frequent customer requests for better device controls.
Spotted a mistake or have an idea on how to improve this page?
Suggest an edit on GitHub.