New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

unit-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unit-cli

Unitcluster cli tool

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Unitcluster logo Build Status JavaScript Style Guide

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 login

First 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

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:

Keywords

cli

FAQs

Package last updated on 04 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts