Skip to main content

Overview

The mullvad status command displays the current state of the VPN tunnel and optionally listens for real-time state changes.

Syntax

Options

Subcommands

listen

Listen for tunnel state changes in real-time:
This command blocks and continuously prints tunnel state updates as they occur.

Output Formats

The status command supports three output formats:
  1. Standard - Human-readable connection status
  2. Verbose (-v) - Includes additional connection details
  3. Debug (-d) - Full debug information about tunnel state
  4. JSON (-j) - Machine-readable JSON format

Tunnel States

The command can report the following tunnel states:
  • Disconnected - Not connected to any relay
  • Connecting - Establishing connection to a relay
  • Connected - Successfully connected to a relay
  • Disconnecting - Terminating connection
  • Error - Connection error occurred

Examples

Basic Status Check

Display current VPN status:
Output:

Verbose Status

Show detailed connection information:
Output:

JSON Output

Get status in JSON format for scripting:
Output:

Listen for State Changes

Monitor tunnel state changes in real-time:
Output:

Listen with JSON Output

Stream state changes as JSON:

Debug Output

Show full debug information:

Events (Listen Mode)

When using status listen, the command reports the following daemon events:
  • TunnelState - Tunnel connection state changes
  • Settings - Configuration changes
  • RelayList - Relay list updates
  • AppVersionInfo - Version information updates
  • Device - Device-related events
  • RemoveDevice - Device removal events
  • NewAccessMethod - New API access method
  • LeakDetected - Network leak detection

Warnings

The command displays warnings for specific conditions:
  • Not logged in - You’re not logged in to a Mullvad account
  • Device revoked - Your device has been revoked from the account
These warnings appear when the tunnel is connecting, connected, or in an error state.

Exit Status

Source Reference

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