2014-12-09 15:20:22 -04:00
# Resin CLI
2015-03-03 14:32:13 -04:00
[![npm version ](https://badge.fury.io/js/resin-cli.svg )](http://badge.fury.io/js/resin-cli)
2015-03-02 12:34:15 -04:00
[![dependencies ](https://david-dm.org/resin-io/resin-cli.png )](https://david-dm.org/resin-io/resin-cli.png)
[![Build Status ](https://travis-ci.org/resin-io/resin-cli.svg?branch=master )](https://travis-ci.org/resin-io/resin-cli)
2015-05-21 10:52:37 -04:00
[![Build status ](https://ci.appveyor.com/api/projects/status/45i7d0m0patxj420?svg=true )](https://ci.appveyor.com/project/jviotti/resin-cli)
2015-03-02 12:34:15 -04:00
2015-03-02 12:40:19 -04:00
The official Resin CLI tool.
2014-12-09 15:20:22 -04:00
## Installing
```sh
2015-03-03 15:05:46 -04:00
$ npm install -g resin-cli
2014-12-09 15:20:22 -04:00
```
2015-03-03 15:05:46 -04:00
### Running locally
2014-12-09 15:20:22 -04:00
```sh
2014-12-09 15:35:15 -04:00
$ ./bin/resin
2014-12-09 15:20:22 -04: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
```
2014-12-10 14:12:12 -04:00
If you set `DEBUG` environment variable, errors will print with a stack trace:
```sh
$ DEBUG=true resin ...
```
2014-12-09 15:20:22 -04:00
## Documentation
You can renegerate the documentation with:
```sh
$ npm run-script doc
```
## Caveats
2014-12-24 08:04:36 -04:00
- Some interactive widgets don't work on [Cygwin ](https://cygwin.com/ ). If you're running Windows, it's preferrable that you use `cmd.exe` , as `Cygwin` is [not official supported by Node.js ](https://github.com/chjj/blessed/issues/56#issuecomment-42671945 ).