sagar-890-rm-test-cli
v1.0.1
Published
CLI tool to add SDK adaptors to your Rainmaker project
Maintainers
Readme
Rainmaker App CLI
A CLI tool to easily add various SDK Adaptors to your Rainmaker project.
Installation
npm install -g rainmaker-app-cliUsage
The CLI supports adding different SDK adaptors to your project:
# Add Rainmaker SDK Adaptor
npx rainmaker-app-cli --addsdk rainmaker
# Add Matter SDK Adaptor
npx rainmaker-app-cli --addsdk matter
# Add Luceose SDK Adaptor
npx rainmaker-app-cli --addsdk luceose
# Add a template SDK Adaptor
npx rainmaker-app-cli --addsdk templateThe tool will:
- Create the adaptor file in
src/adapters/[sdk-name].adaptor.ts - Install required SDK package (if available)
- Update or create
rainmaker.config.tsxto register the adaptor
SDK-Specific Notes
Rainmaker SDK
- Installs
@espressif/[email protected] - Provides full node management capabilities
- Includes metadata, OTA, sharing, and tag management
Matter SDK
- Package not yet released
- Basic node management template provided
- Will be updated when the SDK is available
Luceose SDK
- Package not yet released
- Basic node management template provided
- Will be updated when the SDK is available
Template SDK
- Basic template for custom SDK implementation
- No package dependencies
- Use as a starting point for your own SDK adaptor
Package Manager Detection
The tool automatically detects your project's package manager:
- Uses
yarnif yarn.lock is present - Uses
npmif package-lock.json is present - Defaults to
npmif no lock file is found
Features
Each SDK Adaptor provides:
- Node management
- Device operations
- Service operations
- SDK-specific capabilities
License
MIT
