Registry / devops / miot-dsl-cli

miot-dsl-cli

JSON →
library1.0.1jsnpmunverified

CLI tool for MIoT (Mi Internet of Things) DSL template scaffolding, linting, code generation, and publishing. Current version 1.0.1 targets Node >=12.20. It provides commands for project creation with 'miot-dsl create', schema generation from source code via 'miot-dsl generate', config validation with 'miot-dsl config lint', config normalization with 'miot-dsl config normalize', and template publishing to the ump-pbs platform via 'miot-dsl publish'. Part of an internal monorepo by Xiaomi, this tool is specific to the Xiaomi IoT ecosystem and not intended for general use.

npm install miot-dsl-cli
INSTALL
IMPORT
SIG · MIOT-DSL-CLI
M
miot-dsl-cli
devopsjavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cli
npx miot-dsl create
This is a CLI tool, not a library. Importing 'miot-dsl-cli' as a module is unsupported and will fail.

Shows typical workflow: create a new template project, modify sources, generate schema, validate config, normalize, then publish.

npx miot-dsl-cli create my-template cd my-template # edit source files npx miot-dsl-cli generate npx miot-dsl-cli config lint npx miot-dsl-cli config normalize npx miot-dsl-cli publish
Debug
Known issues
gotchaPackage is designed exclusively for Xiaomi's internal MIoT ecosystem. External users cannot use this tool without access to Xiaomi's internal npm registry and ump-pbs platform.
fix
Only use if you are a Xiaomi IoT developer with appropriate access.
affects: all
gotchaEngines requirement is Node >=12.20, which is very old. Node 12 reached EOL in April 2022 and may have unpatched security vulnerabilities.
fix
Upgrade to a newer version of Node (>=14 or >=16). If the tool works, consider that future versions may drop support.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'miot-dsl-cli'
Attempting to import the package as a library (CommonJS require or ES import) instead of running as a CLI tool.
fix
Use npx miot-dsl-cli <command> or install globally and run miot-dsl <command>.
command not found: miot-dsl
Package not installed globally or not available via npx.
fix
Run 'npm install -g miot-dsl-cli' or use 'npx miot-dsl-cli' <command>.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
miot-dsl-cli — npm install miot-dsl-cli · libregistry