Introducing PureSquare – for security beyond VPNs

Visit our website

Don’t worry about forgetting your passwords ever again with the all-new password manager. Try PureKeep

Command Line Linux App

Sep 30, 2022
Feb 14, 2023
0 Comments
Download PDF

From downloading and installation to using PureVPN for complete internet freedom, learn all there’s to know about setup the PureVPN app on your Linux.

Things to consider:

You will need a Linux device running and an active PureVPN subscription. If you don’t have the subscription yet, you can get it here.

Install PureVPN App

This guide will walk you through the entire installation process from start to finish.

  • Install PureVPN app by using the following command.

curl https://purevpn-dialer-assets.s3.amazonaws.com/cross-platform/linux-cli/cli-install.sh | sudo bash

  • Once installation is completed, run the following command to load PureVPN CLI in your profile.

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/etc/pure-linux-cli/:/etc/pure-linux-cli/ > ~/.bashrc

Login to PureVPN app

After you have successfully installed PureVPN, you can login to the app by entering the command below.

purevpn-cli  –login OR purevpn-cli –i

Note: Please use double hyphen if you’re using “login” as a whole.

Connect with your preferred location

So you’d like to connect to a specific location? No worries, PureVPN helps you select your desired location.

  • Country name must be specified after the command as follow:

purevpn-cli –connect “United States” OR purevpn-cli -c “US”

  • Country codes are also specified in the country list and can be used to create VPN connection. For example:

purevpn-cli –connect DE OR purevpn-cli -c DE

Note: Please use double hyphen if you’re using “connect” as a whole.

Connect via recommended server/ location

Wondering what is the recommended server?

Well, the recommended server will automatically connect you to a country/ server proposed  by our smart algorithm (based on geographical distance). Read more about how PureVPN smart algorithms work.

How to get connected with the recommended location/server? Enter the command below 👇

purevpn-cli -r

Note: Please use double hyphen if you’re using “recommended” as a whole.

Locations list

List of countries and their respective country codes can be viewed using this command.

purevpn-cli –location OR purevpn-cli -l

Note: Please use double hyphen if you’re using “location list” as a whole.

How to switch protocol

VPN protocol type affects the performance and stability of your connection. Be sure to select the correct protocol when connecting to a VPN server. PureVPN recommends the automatic protocol as it will pick up the most appropriate connection setting for you. But in case the Automatic protocol option does not work for you then you may proceed to switch between different protocols. 

Protocol Guide:

Wireguard: (Recommended)

Wireguard provides a fast and secure VPN connection and it’s usually used for web browsing and streaming.

UDP: 

UDP is mainly used for streaming and downloading. It provides a fast VPN connection with medium encryption.

TCP:

TCP is more reliable, but also a little slower, and is usually used for web browsing. 

Wondering how to switch between protocols? Enter the command below 👇

purevpn-cli –protocol auto OR purevpn-cli -p auto

purevpn-cli –protocol wireguard OR purevpn-cli -p wireguard

  • To simply view the selected protocol, use the same command with no arguments.

purevpn-cli –protocol

Note: Please use double hyphen if you’re using “protocol” as a whole.

Check account details

Looking to see account details in PureVPN app? In the PureVPN application you can find the details by entering this below command 👇

purevpn-cli –account purevpn-cli -a

Note: Please use double hyphen if you’re using “account” as a whole.

Find app version

View your Linux application version by using the following command:

purevpn-cli –version purevpn-cli -v

Note: Please use double hyphen if you’re using “version” as a whole.

Manage help section

Our latest application has a help section which allows you to get help for commands. To use this feature, enter the command below 👇

purevpn-cli –help purevpn-cli -h

Note: Please use double hyphen if you’re using “help” as a whole.

Disconnect PureVPN

Our disconnect option is just as easy to connect. Here’s how you can learn to disconnect it. Enter the command below 👇

Purevpn-cli –disconnect OR purevpn-cli -d

Note: Please use double hyphen if you’re using “disconnect” as a whole.

Logout PureVPN

Wish to logout from the PureVPN application? No problem..!! Enter the simple command below 👇

purevpn-cli –logout OR purevpn-cli -o

Note: Before logging-out, make sure that VPN is not connected. Also, please use double hyphen if you’re using “login” as a whole.

Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.

How helpful did you find this answer?

Comments (0 )