command line interface 💻
- Create and remove units
- Edit and debug with your favorite text editers and IDE
- Deploy units with single button and it already working!
npm to install
npm i -g unit-cli
Then use it like any other console command
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
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 🚀