0.4.0 ā€¢ Published 5 years ago

henesis-cli v0.4.0

Weekly downloads
2
License
LGPL3
Repository
github
Last release
5 years ago

henesis-cli

===========

oclif

Version

Downloads/week

License

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

  1. 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 šŸŽ‰
  1. 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
  1. 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.
  1. logout
$ henesis logout
šŸ¤— Logout Success šŸ‘