Kevin Schoedel 6ed99f4234 Restructure CHIP_ERROR numeric values (#8179) пре 4 година
..
efr32 6ed99f4234 Restructure CHIP_ERROR numeric values (#8179) пре 4 година
esp32 f209caf6a1 [ESP] Add ESP32C3 DevKitM support to all-clusters-app (#6345) пре 4 година
k32w 6ed99f4234 Restructure CHIP_ERROR numeric values (#8179) пре 4 година
nrfconnect 4f64f509c1 doc: nrfconnect: minor style and link fixes (#7949) пре 4 година
shell_common a70c6592bc Revise System Layer clock code (#8266) пре 4 година
standalone c8f286f6d7 [shell] enable shell as an optional module in apps (#7080) пре 4 година
README.md d8a2d1f2e5 [TE1]: Provide test interface in chip-shell to test CRMP. (#5228) пре 5 година
README_DEVICE.md 6ce38940b4 [DeviceLayer] Add SetupPinCode and SetupDiscriminator to configuration manager (#1655) пре 5 година
README_OTCLI.md 23a91e1b79 Remove automake builds for standalone, nRF5, and EFR32 (#2580) пре 5 година

README.md

CHIP Shell Reference

The chip-shell firmware exposes configuration and management APIs via a command line interface (CLI). Use the shell CLI to experiment with CHIP interactively, which can also be used with additional application code. The CHIP functional test scripts use the shell CLI to execute test cases.

Separator and escaping characters

The whitespace character (' ') is used to delimit the command name and the different arguments, together with tab ('\t') and new line characters ('\r', '\n').

Some arguments might require to accept whitespaces on them. For those cases the backslash character ('\') can be used to escape separators or the backslash itself.

Example:

> networkname Test\ Network
Done
> networkname
Test Network
Done
>

CHIP Shell Command List

CHIP Shell Command Details

help

Display a list of all top-level commands supported and a brief description.

> help
  echo            Echo back provided inputs
  log             Logging utilities
  rand            Random number utilities
  base64          Base64 encode / decode utilities
  device          Device Layer commands
  otcli           Dispatch OpenThread CLI command
  ping            Using Echo Protocol to measure packet loss across network paths
  exit            Exit the shell application
  help            List out all top level commands
  version         Output the software version
Done

base64 decode <b64_string>

Decode the given base64 string into hex.

> base64 decode EjQ=
1234
Done

base64 encode <hex_string>

Decode the given hex string into base64.

> base64 encode 1234
EjQ=
Done

echo <string>

Echo back the provided string to the terminal.

> echo hello
hello
Done

exit

Exit the shell terminal. On an embedded system this may trigger a watchdog reset.

> exit
Goodbye

rand

Output a single byte random number.

> rand
103
Done

version

Output the version of the CHIP stack.

> version
CHIP 0.0.g54591338-dirty
Done