Checking connection...

How to use the Mullvad CLI

MULLVAD APP

Last updated: 16 October 2019


Follow these instructions to use the Mullvad command line interface (CLI) in your operating system's terminal.
 

Download

If your app isn't up to date, first download the latest version and install it.

Available commands

Open a terminal window and type mullvad to see a full list of subcommands and their usages. Below is a list of the most common ones.

Specify your account

Replace the number string with your Mullvad account number.

mullvad account set 1234123412341234

Type mullvad account to see a list of other account-related commands.

Show account info

This command will show your account number and the expiration date of your account.

mullvad account get

List server locations

This command displays a list of available countries and cities.

mullvad relay list

Select a location

In this example, we are connecting to a server in Sweden (se), in the city of Malmö (mma).

Replace "se" with the country of your choice and, optionally, "mma" with a specific city in that country.

mullvad relay set location se mma

Connect

Connect to the location that you selected.

mullvad connect

Disconnect

mullvad disconnect

Check your connection status

mullvad status

Auto-connect on start-up

If you want Mullvad to start and connect when you boot up your computer, use this command.

mullvad auto-connect set on

To turn this off, run

mullvad auto-connect set off

Enable LAN access

mullvad lan set allow

Report a problem

First create an anonymized log file.

mullvad-problem-report collect --output report.log

Before sending it to us, you have the option to view the log file.

Then send the log file.

mullvad-problem-report send --report report.log --email your@email.address --message "Write a description of your problem."

Although optional, we strongly recommend that you include a description of the problem. You also don't need to fill in an email address, but if you want a reply from us, you will need to include one.

Reset settings

This command performs a factory reset on all settings, deletes app logs and cache files, disconnects the app, and logs you out.

mullvad factory-reset

You will be asked to confirm your decision before the reset.