Skip to main content
Last updated

kda cli

Prerequisite

In order to use this cli tool the following packages need to be installed manually. In a later version some might be installed via the cli tool.

Login to docker with your github account , use the gh access token as password:

sh
docker login ghcr.io -u <your gh username># orecho $GITHUB_TOKEN | docker login ghcr.io --username <your gh username> --password-stdin
sh
docker login ghcr.io -u <your gh username># orecho $GITHUB_TOKEN | docker login ghcr.io --username <your gh username> --password-stdin

Install

Note that the package is not yet published, so for now you need to clone this repo and make a symlink.

sh
$ npm install --global @kadena/kda-cli
sh
$ npm install --global @kadena/kda-cli

Install From repo

To install the executable from this repo:

sh
pnpm installpnpm build --filter @kadena/kda-cli# if you are using NVM, you should have this environment variable availableln -s $(pwd)/bin/kda.js $NVM_BIN/kda# if not, you can replace $NVM_BIN to any path you have added in your $PATH
sh
pnpm installpnpm build --filter @kadena/kda-cli# if you are using NVM, you should have this environment variable availableln -s $(pwd)/bin/kda.js $NVM_BIN/kda# if not, you can replace $NVM_BIN to any path you have added in your $PATH

CLI

sh
$ kda --help   Usage    $ kda   Options    --task  Task   Examples    $ kda --task=rerun    $ kda --task=start    $ kda --task=stop    $ kda --task=fund    $ kda --task=deploy    $ kda --task=local
sh
$ kda --help   Usage    $ kda   Options    --task  Task   Examples    $ kda --task=rerun    $ kda --task=start    $ kda --task=stop    $ kda --task=fund    $ kda --task=deploy    $ kda --task=local

Chainweaver

To setup your devnet (L1 and L2) you can configure chainweaver as such:

Then add the account(s) you've funded:

Devnet

The current version of devnet is hard coded to target fast-devnet. This branch has some optimizations in place to target the L2 development. In a later version this will become configurable.

NOTE

The pact.ts mini lib has been added as both an experiment to test out a functional approach for kadena.js, as well as a means to provide for continuation requests. Please note that once kadena.js supports continuation requests, this package will be refactored to use our lib instead.