doc: Migrating from cnetworkmanager to nmcli
[cnetworkmanager.git] / nmcli-migration.html
1 <html>
2 <head>
3 <title>Migrating from cnetworkmanager to nmcli</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <meta name="keywords"
6 content="cnetworkmanager, nmcli, conversion, correspondence, migration">
7 </head>
8 <h1>Migrating from cnetworkmanager to nmcli</h1>
9
10 This is not meant to be a two-way comparison. I intend cnetworkmanager to
11 <a href="http://en.wikipedia.org/wiki/Dead_Parrot_sketch">rest</a> and
12 <a href="http://fedoraproject.org/wiki/Features/NetworkManagerCmdline"
13 >nmcli</a> to take its place.
14
15 <table border>
16 <tr>
17 <th>cnnetworkmanager
18 <th>nmcli
19
20 <tr>
21 <th colspan=2>general
22
23 <tr>
24 <td>cnetworkmanager --state
25 <td>nmcli nm
26 <br>nmcli -t -f state nm
27
28 <tr>
29 <td>cnetworkmanager --online=BOOL
30 <td>nmcli nm sleep
31 <br>nmcli nm wakeup
32
33 <tr>
34 <td>cnetworkmanager --we
35 <br>cnetworkmanager --wireless-enabled
36 <td>nmcli nm wifi
37
38 <tr>
39 <td>cnetworkmanager --whe
40 <br>cnetworkmanager --wireless-hardware-enabled
41 <td>nmcli -t -f wifi-hardware nm
42
43 <tr>
44 <td>cnetworkmanager --wifi=BOOL
45 <td>nmcli nm wifi BOOL
46
47 <tr>
48 <th colspan=2>devices
49
50 <tr>
51 <td>cnetworkmanager -d
52 <br>cnetworkmanager --device-list
53 <td>nmcli dev
54
55 <tr>
56 <td>cnetworkmanager --di DEVICE
57 <br>cnetworkmanager --device-info DEVICE
58 <td>nmcli dev list iface DEVICE
59
60 <tr>
61 <td>cnetworkmanager -a, -n, --ap-list, --ap, --nets
62 <td>nmcli dev wifi list
63
64 <tr>
65 <th colspan=2>connections
66
67 <tr>
68 <td>cnetworkmanager -u
69 <br>cnetworkmanager -s
70 <br>cnetworkmanager --usrcon
71 <br>cnetworkmanager --syscon
72 <td>nmcli con
73 <br>nmcli con list user
74 <br>nmcli con list system
75
76 <tr>
77 <td>cnetworkmanager --activate-connection=[KIND],ID,[DEV],[APMAC]
78 <td>nmcli con up id ID iface DEV ap APMAC
79
80 <tr>
81 <td>cnetworkmanager -c
82 <br>cnetworkmanager --actcon
83 <td>nmcli con status
84
85 <tr>
86 <td>cnetworkmanager -C
87 <br>cnetworkmanager --connect
88 <td>N/A, nmcli cannot serve as a connection service,<br>
89 nor it can add a connection to a service (which cnetworkmanager can't either)
90
91 <!--
92 <tr>
93 <td>cnetworkmanager
94 <td>nmcli
95
96 -->
97 </table>