Skip to main content

ask-cli

Usage#

npx pl-ask-cli xxx

init#

initialize a ask project with node packages and create directory structure

npx pl-ask-cli init

Will create the directory structure like

projectβ”‚   package-lock.json  |└───node_modules│└───contracts

compile#

npx pl-ask-cli compile source-file [--debug|--release]

By default, npx pl-ask-cli compile will compile in release mode.

For example, npx pl-ask-cli compile contracts/index.ts will yield.

projectβ”‚   package-lock.json  |└───node_modules│└───contractsβ”‚   β”œβ”€β”€ index.tsβ”‚   └── erc20.ts│└───buildβ”‚   β”œβ”€β”€ index.wasmβ”‚   └── metadata.json

For example, npx pl-ask-cli compile contracts/index.ts --debug will yield.

projectβ”‚   package-lock.json  |└───node_modules│└───contractsβ”‚   β”œβ”€β”€ index.tsβ”‚   └── erc20.ts│└───buildβ”‚   └───extensionβ”‚       β”‚   ERC20.ts  β”‚       β”‚   index.tsβ”‚   β”œβ”€β”€ index.wasmβ”‚   └── metadata.jsonβ”‚   └── index.wast