mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-27 17:18:51 +00:00
The official balena CLI tool.
bin | ||
doc | ||
lib | ||
tests | ||
.editorconfig | ||
.gitignore | ||
coffeelint.json | ||
gulpfile.coffee | ||
package.json | ||
README.md |
Resin CLI
Take a look at the spec for features, roadmap and progress https://docs.google.com/a/resin.io/document/d/1mPBWy9wwLiNd25VcIvp3HEWJNjoXkALfMLMblXaGoh8/edit?usp=sharing.
Installing
$ git clone git@bitbucket.org:rulemotion/resin-cli.git
$ cd resin-cli
$ npm install
If you want to have resin on your PATH:
$ npm install -g
If you want to run it locally:
$ ./bin/resin
Or:
$ coffee lib/app.coffee
Tests
You can run the Mocha test suite, you can do:
$ gulp test
Development mode
The following command will watch for any changes and will run a linter and the whole test suite:
$ gulp watch
If you set DEBUG
environment variable, errors will print with a stack trace:
$ DEBUG=true resin ...
Documentation
You can renegerate the documentation with:
$ npm run-script doc
Manual pages
UNIX manual pages reside in doc/
You can regenerate UNIX roff
manual pages from markdown with:
$ npm run-script man
If you add a new man
page, remember to add the roff
filename to the man
array in package.json
.