balena-cli/README.md

77 lines
1.6 KiB
Markdown
Raw Normal View History

2014-12-09 19:20:22 +00:00
# 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](https://docs.google.com/a/resin.io/document/d/1mPBWy9wwLiNd25VcIvp3HEWJNjoXkALfMLMblXaGoh8/edit?usp=sharing).
## Installing
```sh
$ git clone git@bitbucket.org:rulemotion/resin-cli.git
$ cd resin-cli
$ npm install
```
### If you want to have resin on your PATH:
```sh
$ npm install -g
```
### If you want to run it locally:
```sh
$ ./bin/resin
2014-12-09 19:20:22 +00:00
```
Or:
```sh
$ coffee lib/app.coffee
```
2014-12-09 19:20:22 +00:00
## Tests
You can run the [Mocha](http://mochajs.org/) test suite, you can do:
```sh
$ gulp test
```
## Development mode
The following command will watch for any changes and will run a linter and the whole test suite:
```sh
$ gulp watch
```
If you set `DEBUG` environment variable, errors will print with a stack trace:
```sh
$ DEBUG=true resin ...
```
2014-12-09 19:20:22 +00:00
## Documentation
You can renegerate the documentation with:
```sh
$ npm run-script doc
```
2014-12-10 19:18:39 +00:00
## Manual pages
UNIX manual pages reside in `doc/`
You can regenerate UNIX `roff` manual pages from markdown with:
```sh
$ npm run-script man
```
If you add a new `man` page, remember to add the `roff` filename to the `man` array in `package.json`.
2014-12-09 19:20:22 +00:00
## Caveats
- Some interactive widgets don't work on [Cygwin](https://cygwin.com/). If you're running Windows, it's preferrable that you use `cmd.exe`.
- Most commands require an `<id>` argument, however [Commander](https://github.com/tj/commander.js) refuses to show that in the help page. This will be fixed soon.