Product SiteDocumentation Site

7.8. Network Manager in a CLI

For those users who prefer the command line, Fedora 13 introduces two new tools for managing networks with Network Manager at the command line.

7.8.1. nmcli

nmcli , is the console command that makes Network Manager available in a console. nmcli has the following format: nmcli [OPTIONS] OBJECT { COMMAND | help }.
  • OPTIONS: allows you to view the output in terse -t or pretty -p mode.
  • OBJECT: can be nm (NetworkManager status), con (NetworkManager connections) or dev (devices managed by NetworkManager)
  • COMMAND: is the action on OBJECT
Type nmcli OBJECT help to see a list of the available actions. For example when OBJECT is nm , the COMMAND are:
nmcli nm help
Usage: nmcli nm { COMMAND | help }

 COMMAND := { status | sleep | wakeup | wifi | wwan }

  wifi [on|off]
  wwan [on|off]

So, running nmcli nm status , we have:
NM running:               running
NM state:                 connected
NM wireless hardware:     enabled
NM wireless:              enabled
NM WWAN hardware:         enabled
NM WWAN:                  enabled

Refer to man NetworkManager for more information.