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:
docker login ghcr.io -u <your gh username># orecho $GITHUB_TOKEN | docker login ghcr.io --username <your gh username> --password-stdindocker login ghcr.io -u <your gh username># orecho $GITHUB_TOKEN | docker login ghcr.io --username <your gh username> --password-stdinInstall
Note that the package is not yet published, so for now you need to clone this repo and make a symlink.
$ npm install --global @kadena/kda-cli$ npm install --global @kadena/kda-cliInstall From repo
To install the executable from this repo:
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 $PATHpnpm 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 $PATHCLI
$ 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$ 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=localChainweaver
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.