README
henesis-cli
===========
Getting Started
Install
To use henesis-cli, Node v10 or higher must be installed.
$ npm install -g @haechi-labs/henesis-cli
$ henesis help
VERSION
henesis-cli/0.1.0 darwin-x64 node-v10.15.3
USAGE
$ henesis [COMMAND]
COMMANDS
help display help for cli
init describe the command here
integration manage integrations
login Perform a login
logout Perform a logout
Usage
- login
$ henesis login
Allow Henesis to collect anonymous CLI usage and error reporting information
yes(y) or no(n): y
email: yoonsung@haechi.io
password: ***********
🎉 Login Success from yoonsung@haechi.io 🎉
- init
The directory in which the init command is run must be empty.
$ henesis init -n sample-project
sample-project directory has been created.
After this, the following folder structure is created.
sample-project/
├─ contract/
│ └─ example.sol
├─ handler/
│ ├─ execution.ts
│ └─ execution2.ts
└─ henesis.yaml
- integration
You can use command where the henesis.yaml file exists.
$ henesis integration
manage integrations
USAGE
$ cli integration:COMMAND
COMMANDS
integration:delete delete a integration
integration:deploy deploy a integration
integration:describe describe a integration
integration:status get integrations
There are tasks to be done before the deploy command.
- Place the contract file distributed in Blockchain inside the contract directory.
- Modify the henesis.yaml file to match the event you want to subscribe to and place the file with logic in the handler directory.
- You can run the deploy command and check the status of the distribution through the status command.
- logout
$ henesis logout
🤗 Logout Success 👍