Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirill-dev-pro/unit-cli
Unitcluster CLI tool
https://github.com/kirill-dev-pro/unit-cli
cli developer-tools development-utility unitcluster
Last synced: 2 days ago
JSON representation
Unitcluster CLI tool
- Host: GitHub
- URL: https://github.com/kirill-dev-pro/unit-cli
- Owner: kirill-dev-pro
- Created: 2017-08-30T11:49:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T11:03:46.000Z (almost 7 years ago)
- Last Synced: 2024-05-30T16:40:02.972Z (5 months ago)
- Topics: cli, developer-tools, development-utility, unitcluster
- Language: JavaScript
- Homepage: https://unitcluster.com
- Size: 94.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Unitcluster logo](http://oi63.tinypic.com/219ri8i.jpg)
[![Build Status](https://travis-ci.org/Zmeu213/unit-cli.svg?branch=master)](https://travis-ci.org/Zmeu213/unit-cli)
[![codecov](https://codecov.io/gh/Zmeu213/unit-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/Zmeu213/unit-cli)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)## command line interface :computer:
* Create and remove units
* Edit and debug with your favorite text editers and IDE
* Deploy units with single button and it already working!### Instalation
Use `npm` to install `unit-cli` globaly
```
npm i -g unit-cli
```
Then use it like any other console command
```
unit-cli
```### Basic usage
In the first run it will ask provide you account information from unitcluster.com,
such as API token which you could find on https://unitcluster.com/account/settings and loginFirst create new unit with `new [unit] [description]` command inside cli
```
unit-cli-$ new greeter-unit "Hello world unitcluster app"
```
`unit-cli` will create new folder inside your units folder that you provided at login. Also it will output to you path to this folder like this
```
✔ Unit created at /path/to/your/units/directory/greeter-unit
```
Then edit unit files. For example paste this to your `greeter-unit/index.js`
```javascript
module.exports = unit => unit.done(null, 'Hello world!')
```
Right after you save changes on your computer `unit-cli` will update unit and show you how to run it
```
✔ Press [Ctrl + R] or type [run greeter-unit] to run greeter-unit
```
Press shortcut on keybord or type `run [unit name]` to run your unit and get output from it right into your console
```
[ greeter-unit-result ] Hello world!
```
Its done :rocket: