@wharfkit/cli v2.10.2
@wharfkit/cli
The @wharfkit command line tool.
Installation
This command line tool currently requires the use of nodejs version 18 or above (due to its usage of built-in fetch).
It can be run using npx:
npx @wharfkit/cli helpor installed globally and run as wharfkit:
npm install -g @wharfkit/cli
wharfkit helpUsage
Once installed, simply run wharfkit to see a list of available commands.
Usage: wharfkit [options] [command]
Wharf Command Line Utilities
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
generate [options] <account> Generate Contract Kit code for the named smart contract
help [command] display help for commandGenerating Contract Code
The cli tool is capable of generating Typescript code based on a deployed smart contract for use in your application.
npx @wharfkit/cli generate [options] <account>To generate the code for the eosio.token contract on the Jungle 4 testnet:
npx @wharfkit/cli generate -u https://jungle4.greymass.com eosio.token This will output the code directly into the console window similar to this example code.
If you'd prefer to save this as a file, use the -f flag followed by a filename:
npx @wharfkit/cli generate -u https://jungle4.greymass.com eosio.token -f tokencontract.tsTo see a full list of options for the generate command, run the help command against it:
npx @wharfkit/cli help generateMade with ☕️ & ❤️ by Greymass.
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago