2014-12-09 19:20:22 +00:00
# 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)
2014-12-09 19:20:22 +00:00
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
2015-03-02 16:26:38 +00:00
$ git clone git@github.com:resin-io/resin-cli.git
2014-12-09 19:20:22 +00:00
$ 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
2014-12-09 19:35:15 +00:00
$ ./bin/resin
2014-12-09 19:20:22 +00:00
```
2014-12-09 19:35:15 +00:00
Or:
```sh
2015-03-02 16:30:07 +00:00
$ node build/app.js
2014-12-09 19:35:15 +00:00
```
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-30 17:20:07 +00:00
## Release
The following command will compile the application into a single executable for the current platform (supports Mac OS X, GNU/Linux and Windows > XP):
```sh
$ gulp release
```
The binary will be located at `build/Release` .
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
2014-12-24 19:12:31 +00:00
UNIX manual pages reside in `man/`
2014-12-10 19:18:39 +00:00
You can regenerate UNIX `roff` manual pages from markdown with:
```sh
2014-12-24 19:12:31 +00:00
$ gulp man
2014-12-10 19:18:39 +00:00
```
2014-12-24 19:12:31 +00:00
If you add a new `man` page, remember to add the generated filename to the `man` array in `package.json` .
2014-12-09 19:20:22 +00:00
## 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 ).