Generates a SmartThings app
npm install generator-smartthings> Generates a SmartThings SmartApp application
If you have NPM install (5.2.0+), just run the following command from a root repository directory:
``bash`
npx yo smartthings
or,
`bash`
npm init yo smartthings
> Take note of the name, missing the generator- prefix. This is intentional.
First, install Yeoman and generator-smartthings using npm (we assume you have pre-installed node.js).
`bash`
npm install -g yo
npm install -g generator-smartthings
Then generate your new project:
`bash`
yo smartthings
* From the source directory:
`bash`
npm link
* From anywhere:
`bashwhich yo
node --inspect smartthings`
* For additional debug logging from Yeoman itself:
`bashwhich yo
DEBUG=yeoman:generator node --inspect smartthings``
* Yeoman has a heart of gold.
* Yeoman is a person with feelings and opinions, but is very easy to work with.
* Yeoman can be too opinionated at times but is easily convinced not to be.
* Feel free to learn more about Yeoman.
If you are not familiar with SmartThings, we have
extensive on-line documentation.
To create and manage your services and devices on SmartThings, create an account in the
Developer Workspace.
The SmartThings Community is a good place share and
ask questions.
There is also a SmartThings reddit community where you
can read and share information.
Licensed under the Apache License, Version 2.0
Copyright 2019 SmartThings, Inc.