We use cookies to provide you a better service and analyze traffic. To find out more about cookies, please see our Cookie Declaration. By continuing to browse our website, you agree to our use of cookies.

Agree
Manage

Cookie Settings

We use cookies to provide you a better service and analyze traffic, To find out more about cookies, please see our Cookie Declaration.

Essential

Our website relies on these cookies for proper functionality.

Functionality

These cookies are utilized to retain your preferences, such as language selection.

Statistics

Cookies enable us to gain insights into our visitors and enhance their browsing.

Advertising

Cookies that are used to track conversions for ads platforms.

Confirm

X‑VPN Premium Giveaway Is Happening Now on Our Subreddit!

X‑VPN Premium Giveaway Is Happening Now on Our Subreddit!
Enter Now

How to use X-VPN on Linux(Command Line)?

Latest edited on 2025-12-17

Download & Install X-VPN for Linux

Copy and run the curl command below for installation.

sh <(curl -sSf https://app.xvpncdn.com/4dzfjmwrjw/cli_install.sh)

Or, try the wget command below if you encounter any problems or just prefer to use wget.

sh <(wget -qO - https://app.xvpncdn.com/4dzfjmwrjw/cli_install.sh)

X-VPN Account

1. Log In

  • Log in with email & password

Use the following command to log in. A premium account is required to use X-VPN on Linux.

xvpn login

Then you need to enter your email and password, and you are all set!

  • Log in via passcode

Use the command below to log in via passcode.

xvpn login --via-passcode

Then you need to enter your passcode generated on other logged-in devices, and you are all set!

2. View Account Info

Copy and run the command below to view your account information.

xvpn account

3. Log Out

Copy and run the command below to log out of your current account.

xvpn logout

*If you want to change your password or unlink devices, please go to the Account Center.


X-VPN Location

1. Check X-VPN Locations

Use the following command to view the full list of X-VPN servers.

xvpn location

or

xvpn location --get

or

xvpn location -g

2. Update X-VPN Location List

Use the following command to update the latest list of servers.

xvpn location --update

or

xvpn location -u

X-VPN Protocol

1. Check X-VPN Protocols

Use the following command to view the full list of X-VPN protocols.

xvpn protocol

or

xvpn protocol --get

or

xvpn protocol -g

Connect to X-VPN

1. Fast Connect

Use the command below to connect to "The Fastest Server" and the "Auto" protocol.

xvpn connect 

or

xvpn c

Once you connect to X-VPN, you will see the following message:

2. Change Location & Protocol

Use the following command to change the location and protocol.

xvpn connect [location] -p [protocol]

or

xvpn connect -p [protocol] [location] 

3. Change Location Only

Use the location --set command. For example, to connect to the United States, run:

xvpn location --set "United States"

or

xvpn location -s us

4. Change Protocol Only

Use the protocol --set command. For example, to switch to UDP, run:

xvpn protocol --set UDP

or

xvpn protocol -s udp

5. Check Current Connection Status

Copy and run the command below to see your current connection status, including whether you're connected successfully, what location you are connected to, and what protocol you are using.

xvpn status

Disconnect from X-VPN

Copy and run the command below to disconnect from X-VPN.

xvpn disconnect

or

xvpn d

X-VPN Command UI

1. Use the Command UI Version of X-VPN

Copy and run the following command to use the UI version of X-VPN.

xvpn ui

After logging in your X-VPN premium account, you will see the main page as follows:

2. Operating on the UI Version

  • Manipulate the cursor position with the up, down, left, and right keys of the keyboard, and press Enter to select. You can connect and select the protocol and location with a simple cmd UI.
  • The 'Q' key functions as a back button and an exit button. Press 'Q' on the Location/Protocol selection page to return to the home page, and press 'Q' on the home page to exit the UI.

X-VPN Command help

Executing the xvpn command directly to get help content. You'll see all the X-VPN command lines here.

xvpn

For any further help, feel free to contact our support email: support@xvpn.io.

Was this article helpful?

Thanks for your feedback!

Why wasn't this article helpful?