connmanctl(1)
connmanctl π the Connman CLI, bestie edition
okay so first things first: this is the manual for connmanctl, aka the Connman CLI β a Genuine Command Line Interface for talking to Connman, and it lives in section 1 of the manual. Pull up a chair, we're doing networking π§β¨
β¨ SYNOPSIS β¨
connmanctl [state | technologies | enable technology|offline |
disable technology|offline | tether technology on|off |
tether wifi on|off ssid passphrase freq | services [service] |
peers peer | scan technology | connect service|peer |
disconnect service|peer | config service option arg... |
vpnconnections [connection] | help]
πΈ DESCRIPTION πΈ
Connmanctl is a Connman command line interface and it can run in two modes: a plain synchronous command input, and an asynchronous interactive shell. So if you wanna run one specific command you go connmanctl command [options], or you just type connmanctl all by itself β and in that second case, boom, an interactive shell starts. no cap π
Connmanctl can handle most network connections. It can:
- enable/disable any technology that exists on the system
- display a list of services available
- connect/disconnect networks
- show properties of the system, the technologies, and any individual service
- configure all of the properties
It is also able to monitor changes in the properties of the services, technologies, and the system. obsessed π
In the interactive shell, all of the same commands can be used. It provides quicker usage when needing to use connmanctl more extensively. And here's the tea: connecting to protected wireless access points for the first time requires interactive shell. like, mandatory. periodt.
π COMMANDS AND OPTIONS π
helpβ Shows the abbreviated help menu in the terminal.stateβ Shows the system properties. Includes the online state of the system, offline mode, and session mode.technologiesβ Shows a list of all technology types existing on the system and their properties. See the properties section of the Technology API for explanations of each property.enable technologyβ Enables the given technology type (e.g.ethernet,wifi,3g, etc.) Turns power on to the technology, but doesn't connect unless there is a service withautoconnectset toTrue.disable technologyβ Disables the given technology type. Turns power off to the technology and disconnects if it is already connected.enable offlineβ Enables offline mode. Disconnects and powers down all technologies system-wide, however each technology can be powered back on individually.disable offlineβ Disables offline mode. Technologies are powered back on according to their individual policies.tether technology on | offβ Enable or disable tethering on technology. Ethernet cannot be tethered by default since tethering it usually breaks local networks. Seeconnman.conf(5)for enabling.tether wifi on | off ssid passphrase [freq]β Enable or disable wireless tethering, as well set the SSID and passphrase.servicesβ Shows a list of all available services. This includes the nearby wifi networks, the wired ethernet connections, bluetooth devices, etc. An asterisk in front of the service indicates that the service has been connected before. βservices serviceβ Shows a list of all properties for that service. Only the service path (e.g.wifi_6834534139723_managed_none) is accepted as a parameter.scan technologyβ Scans for new services on the given technology.connect serviceβ Connects to the given service. Some services need a so-called provisioning file in order to connect to them, seeconnman-service.config(5).disconnect serviceβ Disconnects from the given service.move-before service target-serviceβ Prefer connecting to service over target-service.move-after service target-serviceβ Prefer connecting to target-service over service.config service option arg...β Configures a writable property of the given service to the value(s) entered after option. See the Config Options subsection for details.monitor targetβ Listens for and displays DBus signals sent by Connman. If a currently monitored property changes, the changes will be shown. If no target is specified, all changes will be shown. See the Monitor Options subsection for a summary of parameters.vpnconnectionsβ Shows a list of all available vpn connections.vpnconnections connectionβ Shows the current properties of connection.
π¦ Commands only available in interactive mode π¦
agent on | offβ Enable or disable the wireless agent, used for entering wireless network passphrases. See the EXAMPLE section of this man page for an example of connecting to a wireless access point.vpnagent on | offβ Enable or disable the vpn agent, used for entering vpn credentials.
π Config Options π
autoconnect on | offβ Sets the autoconnect property of the service.ipv4 off | dhcp | manual address netmask gatewayβ Configures the IPv4 settings for the service. The argumentoffmeans that IPv4 won't be used,dhcpmeans that dhcp will be used to get the settings andmanualmeans that the given arguments will be used as IPv4 settings. address, netmask and gateway must be valid IPv4 addresses. See the EXAMPLE section of this man page for details.ipv6 off | auto | manual address prefixlength gatewayβ Configures the IPv6 settings for the service. The argumentoffmeans that IPv6 won't be used,automeans that settings will be asked from the network andmanualmeans that the given arguments will be used as IPv6 settings. address and gateway must be valid IPv6 addresses. prefixlength is the length of the prefix in bits. See the EXAMPLE section of this man page for details.nameservers dns [...]β Set the list of nameservers, separated by spaces.timeservers server [...]β Set the list of timeservers, separated by spaces.domains domain [...]β Set the list of search domains, separated by spaces.proxy direct | auto URL | manual server[...] [--excludes server[...]]β Configures the proxy settings for the service.directmeans that no proxy will be used. If usingautowithout a parameter, the network will be asked for the proxy settings. Otherwise, use URL as an proxy autoconfiguration URL. When set tomanual, the first list of servers is used as proxy servers, and the traffic to the second list of servers are excluded from the proxy. The list of excluded servers is optional. See the EXAMPLE section of this man page for details.
π Monitor Options π
services [off]β Listens for changes to services, for example a service getting an IP address.tech [off]β Listens for changes to technologies, for example a technology getting enabled.manager [off]β Listens for the changes to global properties, available technologies, services, and peers.vpnmanager [off]β Listens for added or removed vpn connections.vpnconnection [off]β Listens for the changes to vpn connections, for example connecting to a VPN.
π EXAMPLE π
Listing available technologies:
$ connmanctl technologies
Listing available services:
$ connmanctl services
Scanning for wireless networks:
$ connmanctl scan wifi
Using the interactive mode to access a wireless access point:
$ connmanctl
connmanctl> agent on
Agent registered
connmanctl> connect wifi_100ba9d170fc_666f6f626172_managed_psk
Agent RequestInput wifi_100ba9d170fc_666f6f626172_managed_psk
Passphrase = [ Type=psk, Requirement=mandatory ]
Passphrase? password
Connected wifi_100ba9d170fc_666f6f626172_managed_psk
connmanctl>
Configuring a static IP from the command line:
$ connmanctl config wifi_100ba9d170fc_666f6f626172_managed_psk ipv4 manual 192.168.1.101 255.255.255.0 192.168.1.1
Changing the IP back to dhcp:
$ connmanctl config wifi_100ba9d170fc_666f6f626172_managed_psk ipv4 dhcp
Setting a proxy server:
$ connmanctl config wifi_100ba9d170fc_666f6f626172_managed_psk proxy manual proxy.example.com
Setting multiple proxy servers:
$ connmanctl config wifi_100ba9d170fc_666f6f626172_managed_psk proxy manual proxy.example.com http://httpproxy.example.com --excludes internal.example.com
Tethering a wireless connection (ssid "SSID", passphrase "password"):
$ connmanctl tether wifi on SSID password
π«Ά SEE ALSO π«Ά
okay that's the whole thing, you ate it up π
β¨ this page is dated 2015-10-15 and it's from the connmanctl(1) manual, General Commands Manual β go forth and connect, main character ππ
π¦ where this page comes from
- alpine 3.24: connman-doc 2.0-r0 Β· GPL-2.0-only
- arch rolling: connman 2.0-1 Β· GPL-2.0-only
- debian trixie: connman 1.44-3 Β· GPL-2.0-only
- nixos 26.05: connman 1.43
- nixpkgs unstable: connman 1.43
- ubuntu questing: connman 1.44-3
- ubuntu resolute: connman 1.45-3 Β· GPL-2.0-only
- ubuntu stonking: connman 2.0-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms