Skip to content

Commit

Permalink
Add update nrf cli doc to reflect latest command (#13278)
Browse files Browse the repository at this point in the history
* Add update nrf cli doc to reflect latest command

* Restyled by prettier-markdown

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Jan 31, 2022
1 parent ca9ecef commit 1803729
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions docs/guides/nrfconnect_examples_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,33 @@ Performs device factory reset that is hardware reset preceded by erasing of the
whole Matter settings stored in a non-volatile memory.

```shell
uart:~$ matter factoryreset
uart:~$ matter device factoryreset
Performing factory reset ...
```

### onboardingcodes

Handles a group of commands that are used to view information about device
onboarding codes. You can use this command without any subcommand to print all
available onboarding codes or to add a specific subcommand.
onboarding codes. The `onboardingcodes` command takes one required parameter for
the rendezvous type, then an optional parameter for printing a specific type of
onboarding code.

The full format of the command is:

```
onboardingcodes none|softap|ble|onnetwork [qrcode|qrcodeurl|manualpairingcode]
```

To print all the onboardingcodes:

```shell
uart:~$ matter onboardingcodes
uart:~$ matter onboardingcodes none
QRCode: MT:W0GU2OTB00KA0648G00
QRCodeUrl: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AW0GU2OTB00KA0648G00
ManualPairingCode: 34970112332
```

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

#### qrcode

Expand All @@ -129,7 +138,7 @@ Prints the device
Takes no arguments.

```shell
uart:~$ matter onboardingcodes qrcode
uart:~$ matter onboardingcodes none qrcode
MT:W0GU2OTB00KA0648G00
```

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

```shell
uart:~$ matter onboardingcodes qrcodeurl
uart:~$ matter onboardingcodes none qrcodeurl
https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AW0GU2OTB00KA0648G00
```

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

```shell
uart:~$ matter onboardingcodes manualpairingcode
uart:~$ matter onboardingcodes none manualpairingcode
34970112332
```

Expand Down

0 comments on commit 1803729

Please sign in to comment.