Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update nrf cli doc to reflect latest command #13278

Merged
merged 2 commits into from
Jan 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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