mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
Write README.md
This commit is contained in:
parent
f5a0c7d6e5
commit
e82173bfb5
57
README.md
Normal file
57
README.md
Normal file
@ -0,0 +1,57 @@
|
||||
# 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
|
||||
$ coffee lib/app.coffee
|
||||
```
|
||||
|
||||
**Note:** Alternatively, you can run `bin/resin`. In that case, you first need to compile the project with `gulp build`. This will change in the future.
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
You can renegerate the documentation with:
|
||||
|
||||
```sh
|
||||
$ npm run-script doc
|
||||
```
|
||||
|
||||
This should ideally be part of `gulp`, however there doesn't seems to be any plugin for the documentation generation tool that we're using at the moment ([codo](https://github.com/coffeedoc/codo)).
|
||||
|
||||
## 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.
|
||||
- If you make a typo when writing a command, or run the app without any command, nothing is shown. This will be fixed soon.
|
Loading…
Reference in New Issue
Block a user