2.6.4 • Published 2 months ago

@wharfkit/cli v2.6.4

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 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.6.4

2 months ago

2.6.3

3 months ago

2.6.2

4 months ago

2.6.1

4 months ago

2.6.0

4 months ago

2.5.0

4 months ago

2.5.1

4 months ago

2.4.0

5 months ago

2.3.0

5 months ago

2.2.0

5 months ago

2.1.0

6 months ago

2.0.0

6 months ago

1.9.1

6 months ago

1.9.0

6 months ago

1.8.0

7 months ago

1.7.0

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.0

7 months ago

1.3.0

8 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago