Hey there, welcome to the Resin CLI hello plugin!
This plugin serves many purposes:
- As an example of how Resin CLI plugins are made.
- As a tutorial, in order to learn the basics of Resin CLI plugins development.
- As a boilerplate to build your own plugin.
The index.js file is fully commented as a basic Resin CLI plugin development tutorial. Checkout this file if you want to learn to developer your first Resin CLI plugin.
Make sure that you name your plugin as resin-plugin-[pluginName] in your
package.json otherwise the CLI will not load it.
Examples of well formed plugin names:
Examples of ill formed plugin names:
If you install a Resin CLI plugin as a global module, it will be loaded by the Resin CLI automagically.
$ npm install -g resin-plugin-hello
$ npm install -g git+https://firstname.lastname@example.org/resin-io/resin-plugin-hello.git
When developing you own plugin, a nice trick is to use npm link, to link your plugin as a global module, in order for the Resin CLI to detect it, and in order to make changes and see their results on the fly.
$ cd resin-plugin-hello$ npm link$ resin hello Juan --exclamateHey there Juan!!!
We're working hard to bring extensive documentation of plugin development to you.
In the midtime, take a look at Capitano as most of the most powerful features come from it.
If you're having any problem, please raise an issue on GitHub.
The project is licensed under the MIT license.