@sotatek-tanhoang/cli
v0.22.5
Published
cli for subquery. Support Solana
Downloads
6
Readme
@subql/cli
cli for polkagraph
Usage
$ npm install -g @sotatek-tanhoang/cli
$ subql COMMAND
running command...
$ subql (-v|--version|version)
@sotatek-tanhoang/cli/0.22.5 win32-x64 node-v16.13.0
$ subql --help [COMMAND]
USAGE
$ subql COMMAND
...
$ npm install -g @subql/cli
$ subql COMMAND
running command...
$ subql (-v|--version|version)
@subql/cli/0.21.1-0 linux-x64 node-v16.14.0
$ subql --help [COMMAND]
USAGE
$ subql COMMAND
...
Commands
subql build
subql codegen
subql help [COMMAND]
subql init [PROJECTNAME]
subql migrate
subql publish
subql validate
subql build
Build this SubQuery project code
USAGE
$ subql build
OPTIONS
-f, --location=location local folder
-o, --output=output output folder of build e.g. dist
--mode=(production|prod|development|dev) [default: production]
See code: lib/commands/build.js
subql codegen
Generate schemas for graph node
USAGE
$ subql codegen
OPTIONS
-f, --force
-l, --location=location local folder to run codegen in
--file=file
See code: lib/commands/codegen.js
subql help [COMMAND]
display help for subql
USAGE
$ subql help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
subql init [PROJECTNAME]
Initialize a scaffold subquery project
USAGE
$ subql init [PROJECTNAME]
ARGUMENTS
PROJECTNAME Give the starter project name
OPTIONS
-f, --force
-l, --location=location local folder to create the project in
--install-dependencies Install dependencies as well
--npm Force using NPM instead of yarn, only works with `install-dependencies` flag
--specVersion=0.0.1|0.2.0|0.3.0 [default: 0.2.0] The spec version to be used by the project
See code: lib/commands/init.js
subql migrate
Migrate Subquery project manifest v0.0.1 to v0.2.0
USAGE
$ subql migrate
OPTIONS
-f, --force
-l, --location=location local folder to run migrate in
--file=file
See code: lib/commands/migrate.js
subql publish
Upload this SubQuery project to IPFS
USAGE
$ subql publish
OPTIONS
-f, --location=location from project or manifest path
--ipfs=ipfs IPFS gateway endpoint
See code: lib/commands/publish.js
subql validate
Check a folder or github repo is a validate subquery project
USAGE
$ subql validate
OPTIONS
-l, --location=location local folder, github repo url or IPFS cid
--ipfs=ipfs [default: https://ipfs.subquery.network/ipfs/api/v0] IPFS gateway endpoint, used for
validating projects on IPFS
--silent
See code: lib/commands/validate.js
subql build
subql codegen
subql help [COMMAND]
subql init [PROJECTNAME]
subql migrate
subql publish
subql validate
subql build
Build this SubQuery project code
USAGE
$ subql build
OPTIONS
-f, --location=location local folder
-o, --output=output output folder of build e.g. dist
--mode=(production|prod|development|dev) [default: production]
See code: lib/commands/build.js
subql codegen
Generate schemas for graph node
USAGE
$ subql codegen
OPTIONS
-f, --force
-l, --location=location local folder to run codegen in
--file=file
See code: lib/commands/codegen.js
subql help [COMMAND]
display help for subql
USAGE
$ subql help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
subql init [PROJECTNAME]
Initialize a scaffold subquery project
USAGE
$ subql init [PROJECTNAME]
(For Solana & Terra, use: $ subql init [PROJECTNAME] --specVersion 0.3.0)
ARGUMENTS
PROJECTNAME Give the starter project name
OPTIONS
-f, --force
-l, --location=location local folder to create the project in
--install-dependencies Install dependencies as well
--npm Force using NPM instead of yarn, only works with `install-dependencies` flag
--specVersion=0.0.1|0.2.0|0.3.0 [default: 0.2.0] The spec version to be used by the project
See code: lib/commands/init.js
subql migrate
Migrate Subquery project manifest v0.0.1 to v0.2.0
USAGE
$ subql migrate
OPTIONS
-f, --force
-l, --location=location local folder to run migrate in
--file=file
See code: lib/commands/migrate.js
subql publish
Upload this SubQuery project to IPFS
USAGE
$ subql publish
OPTIONS
-f, --location=location from project or manifest path
--ipfs=ipfs IPFS gateway endpoint
See code: lib/commands/publish.js
subql validate
Check a folder or github repo is a validate subquery project
USAGE
$ subql validate
OPTIONS
-l, --location=location local folder, github repo url or IPFS cid
--ipfs=ipfs [default: https://ipfs.subquery.network/ipfs/api/v0] IPFS gateway endpoint, used for
validating projects on IPFS
--silent
See code: lib/commands/validate.js