LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mmcli

command-line interface for ModemManager, a DBus-powered daemon that provides

TLDR

List available modems
$ mmcli --list-modems
copy
Print information about a modem
$ mmcli --modem=[modem_id]
copy
Enable a modem
$ mmcli --modem=[modem_id] --enable
copy
Disable a modem
$ mmcli --modem=[modem_id] --disable
copy
List SMS messages on the modem
$ sudo mmcli --modem=[modem_id] --messaging-list-sms
copy
Delete SMS message
$ sudo mmcli --modem=[modem_id] --messaging-delete-sms=[sms_path]
copy
Monitor modem status changes
$ mmcli --monitor-modems
copy

SYNOPSIS

mmcli [--list-modems] [--modem id] [--enable|--disable] [--messaging-list-sms] [options]

DESCRIPTION

mmcli is a command-line interface for ModemManager, a DBus-powered daemon that provides unified control of mobile broadband modems on Linux. It supports various modem types including USB modems, embedded cellular modules, and phone tethering.The tool can enable/disable modems, manage connections, send/receive SMS, control GPS functionality, scan for networks, and perform SIM operations. It communicates with ModemManager through DBus.

PARAMETERS

-L, --list-modems

List all available modems
-m, --modem _id_
Specify modem by index or DBus path
-M, --monitor-modems
Monitor modem status changes
-e, --enable
Enable the specified modem
-d, --disable
Disable the specified modem
-r, --reset
Reset the modem
--factory-reset _code_
Reset modem to factory state with unlock code
--command _at_command_
Send raw AT command to modem
--messaging-list-sms
List SMS messages on modem
--messaging-create-sms _properties_
Create new SMS message
--messaging-delete-sms _sms_
Delete SMS message
-S, --scan-modems
Scan for new modems
--output-json
Output in JSON format
--output-keyvalue
Output as key-value pairs
-v, --verbose
Enable verbose output

INSTALL

sudo apt install modemmanager
copy
sudo pacman -S modemmanager
copy
sudo apk add modemmanager
copy
nix profile install nixpkgs#modemmanager
copy

CAVEATS

Some operations require root privileges, particularly SMS and connection management. Modem indices may change across reboots or device reconnections; use DBus paths for stable identification. Factory reset requires carrier-specific unlock codes and erases all modem configuration.

HISTORY

mmcli is part of ModemManager, developed by the freedesktop.org community. ModemManager provides a unified high-level API for mobile broadband modems, abstracting differences between vendor implementations. It is commonly used with NetworkManager for mobile connectivity.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid