|
1 | | -nmcli |
2 | | -===== |
| 1 | +# nmcli |
3 | 2 |
|
4 | 3 | nmcli is a python wrapper library for the network-manager cli client. |
5 | 4 |
|
@@ -31,62 +30,61 @@ except Exception as e: |
31 | 30 |
|
32 | 31 | ## Dependency |
33 | 32 |
|
34 | | -* NetworkManager |
35 | | - * `sudo apt install network-manager` (Debian) |
36 | | -* User who can execute nmcli with sudo with NOPASSWD |
37 | | - * If sudo is not needed (like root user), use `disable_use_sudo` at the beginning of the process. |
| 33 | +- NetworkManager |
| 34 | + - `sudo apt install network-manager` (Debian) |
| 35 | +- User who can execute nmcli with sudo with NOPASSWD |
| 36 | + - If sudo is not needed (like root user), use `disable_use_sudo` at the beginning of the process. |
38 | 37 |
|
39 | 38 | ## Compatibility table |
40 | 39 |
|
41 | | -| Object | Command | Status | |
42 | | -|--------|---------|--------| |
43 | | -| general | | supported | |
44 | | -| general | status | supported | |
45 | | -| general | hostname | supported | |
46 | | -| general | permissions | not supported | |
47 | | -| general | logging | not supported | |
48 | | -| networking | | supported | |
49 | | -| networking | on | supported | |
50 | | -| networking | off | supported | |
51 | | -| networking | connectivity | supported | |
52 | | -| radio | | supported | |
53 | | -| radio | all | supported | |
54 | | -| radio | wifi | supported | |
55 | | -| radio | wwan | supported | |
56 | | -| connection | | supported | |
57 | | -| connection | show | supported | |
58 | | -| connection | up | supported | |
59 | | -| connection | down | supported | |
60 | | -| connection | add | supported | |
61 | | -| connection | modify | supported | |
62 | | -| connection | clone | not supported | |
63 | | -| connection | edit | not supported | |
64 | | -| connection | delete | supported | |
65 | | -| connection | reload | supported | |
66 | | -| connection | load | not supported | |
67 | | -| connection | import | not supported | |
68 | | -| connection | export | not supported | |
69 | | -| device | | supported | |
70 | | -| device | status | supported | |
71 | | -| device | show | supported | |
72 | | -| device | set | not supported | |
73 | | -| device | connect | supported | |
74 | | -| device | reapply | supported | |
75 | | -| device | modify | not supported | |
76 | | -| device | disconnect | supported | |
77 | | -| device | delete | supported | |
78 | | -| device | monitor | not supported | |
79 | | -| device | wifi | supported | |
80 | | -| device | wifi connect | supported | |
81 | | -| device | wifi rescan | supported | |
82 | | -| device | wifi hotspot | supported | |
83 | | -| device | lldp | not supported | |
84 | | -| agent | | not supported | |
85 | | -| agent | secret | not supported | |
86 | | -| agent | polkit | not supported | |
87 | | -| agent | all | not supported | |
88 | | -| monitor | | not supported | |
89 | | - |
| 40 | +| Object | Command | Status | |
| 41 | +| ---------- | ------------ | ------------- | |
| 42 | +| general | | supported | |
| 43 | +| general | status | supported | |
| 44 | +| general | hostname | supported | |
| 45 | +| general | permissions | not supported | |
| 46 | +| general | logging | not supported | |
| 47 | +| networking | | supported | |
| 48 | +| networking | on | supported | |
| 49 | +| networking | off | supported | |
| 50 | +| networking | connectivity | supported | |
| 51 | +| radio | | supported | |
| 52 | +| radio | all | supported | |
| 53 | +| radio | wifi | supported | |
| 54 | +| radio | wwan | supported | |
| 55 | +| connection | | supported | |
| 56 | +| connection | show | supported | |
| 57 | +| connection | up | supported | |
| 58 | +| connection | down | supported | |
| 59 | +| connection | add | supported | |
| 60 | +| connection | modify | supported | |
| 61 | +| connection | clone | not supported | |
| 62 | +| connection | edit | not supported | |
| 63 | +| connection | delete | supported | |
| 64 | +| connection | reload | supported | |
| 65 | +| connection | load | not supported | |
| 66 | +| connection | import | not supported | |
| 67 | +| connection | export | not supported | |
| 68 | +| device | | supported | |
| 69 | +| device | status | supported | |
| 70 | +| device | show | supported | |
| 71 | +| device | set | not supported | |
| 72 | +| device | connect | supported | |
| 73 | +| device | reapply | supported | |
| 74 | +| device | modify | not supported | |
| 75 | +| device | disconnect | supported | |
| 76 | +| device | delete | supported | |
| 77 | +| device | monitor | not supported | |
| 78 | +| device | wifi | supported | |
| 79 | +| device | wifi connect | supported | |
| 80 | +| device | wifi rescan | supported | |
| 81 | +| device | wifi hotspot | supported | |
| 82 | +| device | lldp | not supported | |
| 83 | +| agent | | not supported | |
| 84 | +| agent | secret | not supported | |
| 85 | +| agent | polkit | not supported | |
| 86 | +| agent | all | not supported | |
| 87 | +| monitor | | not supported | |
90 | 88 |
|
91 | 89 | ## API |
92 | 90 |
|
@@ -155,8 +153,10 @@ nmcli.connection.down(name: str, wait: int = None) -> None |
155 | 153 |
|
156 | 154 | Show details for specified connections. |
157 | 155 |
|
| 156 | +Use `show_secrets` argument to reveal associated secrets as well. |
| 157 | + |
158 | 158 | ``` |
159 | | -nmcli.connection.show(name: str) -> ConnectionDetails |
| 159 | +nmcli.connection.show(name: str, show_secrets: bool = False) -> ConnectionDetails |
160 | 160 | ``` |
161 | 161 |
|
162 | 162 | #### nmcli.connection.reload |
@@ -239,7 +239,6 @@ Delete the software devices. |
239 | 239 |
|
240 | 240 | The `wait` argument applies the same effect to the command as the `--wait` option. If it is omitted, the default behavior is followed. |
241 | 241 |
|
242 | | - |
243 | 242 | ``` |
244 | 243 | nmcli.device.delete(ifname: str, wait: int = None) -> None |
245 | 244 | ``` |
@@ -459,6 +458,10 @@ nmcli.set_lang(lang: str) -> None |
459 | 458 |
|
460 | 459 | ## Change Log |
461 | 460 |
|
| 461 | +### 1.5.0 |
| 462 | + |
| 463 | +- Added show_secrets option to `nmcli.connection.show` |
| 464 | + |
462 | 465 | ### 1.4.0 |
463 | 466 |
|
464 | 467 | - Supported unsupported cases of `DeviceWifi.parse`. |
|
0 commit comments