Skip to main content

Overview

The mullvad account command provides account management functionality including account creation, login, logout, device management, and voucher redemption.

Syntax

Subcommands

create

Create and log in to a new Mullvad account:
Generates a new account number and automatically logs you in.

login

Log in to an existing account:
If no account number is provided, you’ll be prompted to enter one.

logout

Log out from the current account:
Removes the device from your Mullvad account.

get

Display information about the current account:
Options:
  • -v, --verbose - Enable verbose output including device ID and public key

list-devices

List all devices associated with an account:
Options:
  • -a, --account <ACCOUNT> - Mullvad account number (uses current account if not specified)
  • -v, --verbose - Show detailed device information including IDs and public keys

revoke-device

Revoke a device from an account:
Arguments:
  • <DEVICE> - Name or UID of the device to revoke
Options:
  • -a, --account <ACCOUNT> - Mullvad account number (uses current account if not specified)

redeem

Redeem a voucher code:
Arguments:
  • <VOUCHER> - Voucher code to submit

Examples

Create New Account

Output:

Login to Account

With account number as argument:
Interactive login (prompts for account number):
Output:

Check Account Information

Basic account info:
Output:
Verbose account info:
Output:

List Devices

List devices on current account:
Output:
Verbose device listing:
Output:

Revoke Device

Revoke by device name:
Revoke by device ID:
Revoke device from specific account:
Output:

Redeem Voucher

Output:

Logout

Output:

Account States

The account can be in one of three states:
  1. LoggedIn - Successfully logged in with active device
  2. LoggedOut - Not logged in to any account
  3. Revoked - Device has been revoked from the account
  • connect - Connect to VPN (requires active account)
  • status - Check connection and account status

Exit Status

Notes

  • Account numbers are 16-digit identifiers
  • Voucher codes accept alphanumeric characters (non-alphanumeric characters are automatically removed)
  • Device names and IDs are case-insensitive when revoking
  • The CLI automatically updates device information before displaying account details
  • Devices are sorted by creation date when listing

Source Reference

Implementation: mullvad-cli/src/cmds/account.rs