2.10.2 • Published 3 months ago

@wharfkit/cli v2.10.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
3 months ago

@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 help

or installed globally and run as wharfkit:

npm install -g @wharfkit/cli

wharfkit help

Usage

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 command

Generating 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.ts

To see a full list of options for the generate command, run the help command against it:

npx @wharfkit/cli help generate

Made with ☕️ & ❤️ by Greymass.

2.10.1

3 months ago

2.10.2

3 months ago

2.10.0

3 months ago

2.9.0

4 months ago

2.9.1

4 months ago

2.8.0

10 months ago

2.7.2

10 months ago

2.7.0

11 months ago

2.7.1

10 months ago

2.6.4

1 year ago

2.6.3

1 year ago

2.6.2

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.5.0

1 year ago

2.5.1

1 year ago

2.4.0

1 year ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago