The chip::DeviceLayer APIs may be invoked via the Matter Shell CLI.
List the Device CLI commands.
> device help
help Usage: device <subcommand>
start Start the device layer. Usage: device start
get Get configuration value. Usage: device get <param_name>
config Dump entire configuration of device. Usage: device dump
Done
Dump the configuration of the device.
> device config
VendorId: 235a
ProductId: feff
HardwareVersion: 0001
SerialNumber: <None>
ServiceId: <None>
FabricId: <None>
PinCode: <None>
Discriminator: <None>
DeviceId: <None>
DeviceCert: <None>
DeviceCaCerts: <None>
MfrDeviceId: <None>
MfrDeviceCert: <None>
MfgDeviceCaCerts:<None>
Where valid parameter names include:
fabricid: Fabric Identifier
> device get vendorid
235a
Done
Initialize the Matter stack and start the device layer event loop.
> device start
Init CHIP Stack
Starting Platform Manager Event Loop
Done