Skip to content

Commit 912302d

Browse files
Add update nrf cli doc to reflect latest command (project-chip#13278)
* Add update nrf cli doc to reflect latest command * Restyled by prettier-markdown Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 9327ef2 commit 912302d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

docs/guides/nrfconnect_examples_cli.md

+17-8
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,33 @@ Performs device factory reset that is hardware reset preceded by erasing of the
103103
whole Matter settings stored in a non-volatile memory.
104104

105105
```shell
106-
uart:~$ matter factoryreset
106+
uart:~$ matter device factoryreset
107107
Performing factory reset ...
108108
```
109109

110110
### onboardingcodes
111111

112112
Handles a group of commands that are used to view information about device
113-
onboarding codes. You can use this command without any subcommand to print all
114-
available onboarding codes or to add a specific subcommand.
113+
onboarding codes. The `onboardingcodes` command takes one required parameter for
114+
the rendezvous type, then an optional parameter for printing a specific type of
115+
onboarding code.
116+
117+
The full format of the command is:
118+
119+
```
120+
onboardingcodes none|softap|ble|onnetwork [qrcode|qrcodeurl|manualpairingcode]
121+
```
122+
123+
To print all the onboardingcodes:
115124

116125
```shell
117-
uart:~$ matter onboardingcodes
126+
uart:~$ matter onboardingcodes none
118127
QRCode: MT:W0GU2OTB00KA0648G00
119128
QRCodeUrl: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AW0GU2OTB00KA0648G00
120129
ManualPairingCode: 34970112332
121130
```
122131

123-
The `onboardingcodes` command can also take the subcommands listed below.
132+
To print a specific type of onboarding code:
124133

125134
#### qrcode
126135

@@ -129,7 +138,7 @@ Prints the device
129138
Takes no arguments.
130139

131140
```shell
132-
uart:~$ matter onboardingcodes qrcode
141+
uart:~$ matter onboardingcodes none qrcode
133142
MT:W0GU2OTB00KA0648G00
134143
```
135144

@@ -140,7 +149,7 @@ Prints the URL to view the
140149
in a web browser. Takes no arguments.
141150

142151
```shell
143-
uart:~$ matter onboardingcodes qrcodeurl
152+
uart:~$ matter onboardingcodes none qrcodeurl
144153
https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AW0GU2OTB00KA0648G00
145154
```
146155

@@ -150,7 +159,7 @@ Prints the pairing code for the manual onboarding of a device. Takes no
150159
arguments.
151160

152161
```shell
153-
uart:~$ matter onboardingcodes manualpairingcode
162+
uart:~$ matter onboardingcodes none manualpairingcode
154163
34970112332
155164
```
156165

0 commit comments

Comments
 (0)