0.4.0 ā¢ Published 5 years ago
henesis-cli v0.4.0
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 š