2014-12-09 19:20:22 +00:00
# Resin CLI
2015-03-03 18:32:13 +00:00
[![npm version ](https://badge.fury.io/js/resin-cli.svg )](http://badge.fury.io/js/resin-cli)
2015-03-02 16:34:15 +00: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 14:52:37 +00:00
[![Build status ](https://ci.appveyor.com/api/projects/status/45i7d0m0patxj420?svg=true )](https://ci.appveyor.com/project/jviotti/resin-cli)
2015-03-02 16:34:15 +00:00
2015-03-02 16:40:19 +00:00
The official Resin CLI tool.
2014-12-09 19:20:22 +00:00
## Installing
```sh
2015-03-03 19:05:46 +00:00
$ npm install -g resin-cli
2014-12-09 19:20:22 +00:00
```
2015-03-03 19:05:46 +00:00
### Running locally
2014-12-09 19:20:22 +00:00
```sh
2014-12-09 19:35:15 +00:00
$ ./bin/resin
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
```
2014-12-10 18:12:12 +00:00
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
```
## Caveats
2014-12-24 12:04:36 +00: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 ).