mullvad) is included with all desktop installations of the Mullvad VPN app. This guide covers installation and setup for Linux, macOS, and Windows.
Prerequisites
Before using the CLI, you need:- A Mullvad account (create one at mullvad.net)
- The Mullvad daemon (
mullvad-daemon) installed and running - Appropriate system permissions (root/administrator for some operations)
Installation by Platform
Linux
The CLI is included with the Mullvad VPN app installation.Debian/Ubuntu
Download and install the.deb package from the Mullvad downloads page:
mullvad binary will be installed to /usr/bin/mullvad.
Fedora/RHEL
Download and install the.rpm package:
Arch Linux
Install from the AUR or use the official package:Verifying Installation
Verify the CLI is installed:macOS
The CLI is included with the Mullvad VPN app.Installation
- Download the
.pkginstaller from mullvad.net/download - Open the downloaded
.pkgfile - Follow the installation wizard
mullvad binary will be installed to /usr/local/bin/mullvad.
Adding to PATH
The installation should automatically add/usr/local/bin to your PATH. Verify the CLI is accessible:
/usr/local/bin is in your PATH:
~/.zshrc or ~/.bash_profile to make it permanent.
Windows
The CLI is included with the Mullvad VPN app installation.Installation
- Download the
.exeinstaller from mullvad.net/download - Run the installer as Administrator
- Follow the installation wizard
mullvad.exe binary will be installed to:
Adding to PATH
To use the CLI from any command prompt:- Open System Properties → Environment Variables
- Under System variables, find and edit Path
- Add:
C:\Program Files\Mullvad VPN\resources - Click OK to save
- Restart any open command prompts
PowerShell
In PowerShell, you may need to use the full path or create an alias:Verifying Installation
After installation, verify the CLI and daemon are working:Check CLI Version
Check Daemon Status
Verify the daemon is running:Linux
macOS
Windows
Open Services (services.msc) and check that “Mullvad VPN Service” is running. You can also check using the CLI:Test CLI Connection
Test that the CLI can communicate with the daemon:Building from Source
If you want to build the CLI from source:Requirements
- Rust: Latest stable toolchain via rustup.rs
- Platform-specific dependencies: See BuildInstructions.md
All Platforms
-
Install Rust toolchain:
-
Clone the repository:
-
Install additional dependencies:
- Protobuf compiler (version 3.15+)
- Go (version 1.21+)
- Bash (version 4.0+)
Linux-Specific Dependencies
Debian/Ubuntu:Build the CLI
From the repository root:Cross-Compilation
Linux ARM64:Shell Completions
The CLI can generate shell completion scripts for better command-line integration.Bash
Zsh
~/.zshrc if not already present:
Fish
PowerShell (Windows)
Shell completions are not currently supported on Windows.Permissions
Linux/macOS
Most CLI commands require the daemon to be running with root privileges. The CLI itself doesn’t need root access for most operations, but the daemon does. If you see permission errors:Windows
On Windows, the Mullvad service runs with SYSTEM privileges. You don’t need administrator privileges to use the CLI for most operations, but starting/stopping the service requires elevation.Troubleshooting
Command Not Found
Linux/macOS:Cannot Connect to Daemon
If you see “Failed to connect to daemon” errors: Linux:Permission Denied
Linux/macOS: The daemon must run as root. Verify it’s running with appropriate privileges:Next Steps
Now that the CLI is installed:- CLI Overview - Learn basic CLI usage and commands
- Command Reference - Detailed documentation for each command
- Examples - Common usage patterns and workflows