4.9.0 • Published 2 days ago

@subql/cli v4.9.0

Weekly downloads
177
License
GPL-3.0
Repository
-
Last release
2 days ago

@subql/cli

CLI for SubQuery

oclif Version Downloads/week License

Usage

$ npm install -g @subql/cli
$ subql COMMAND
running command...
$ subql (--version)
@subql/cli/3.6.2-9-ts-manifest darwin-arm64 node-v18.16.0
$ subql --help [COMMAND]
USAGE
  $ subql COMMAND
...

Commands

subql build

Build this SubQuery project code

USAGE
  $ subql build [-f <value>] [-o <value>] [--mode production|prod|development|dev] [-s]

FLAGS
  -f, --location=<value>  local folder or manifest file to run build
  -o, --output=<value>    output folder of build e.g. dist
  -s, --silent            silent mode
  --mode=<option>         [default: production]
                          <options: production|prod|development|dev>

DESCRIPTION
  Build this SubQuery project code

See code: lib/commands/build.js

subql codegen

Generate schemas for graph node

USAGE
  $ subql codegen [-l <value>] [-f <value>]

FLAGS
  -f, --file=<value>      specify manifest file path (will overwrite -l if both used)
  -l, --location=<value>  [deprecated] local folder to run codegen in. please use file flag instead

DESCRIPTION
  Generate schemas for graph node

See code: lib/commands/codegen/index.js

subql codegen:generate

Generate Project.yaml and mapping functions based on provided ABI

USAGE
  $ subql codegen:generate --abiPath <value> --startBlock <value> [-f <value>] [--events <value>] [--functions
    <value>] [--address <value>]

FLAGS
  -f, --file=<value>    specify manifest file path
  --abiPath=<value>     (required) path to abi from root
  --address=<value>     contract address
  --events=<value>      abi events, --events="approval, transfer"
  --functions=<value>   abi functions,  --functions="approval, transfer"
  --startBlock=<value>  (required) startBlock

DESCRIPTION
  Generate Project.yaml and mapping functions based on provided ABI

See code: lib/commands/codegen/generate.js

subql deployment

Deploy to hosted service

USAGE
  $ subql deployment [--options deploy|promote|delete] [--org <value>] [--projectName <value>] [--ipfsCID
    <value>] [--type stage|primary] [--indexerVersion <value>] [--queryVersion <value>] [--dict <value>] [--endpoint
    <value>] [--indexerUnsafe] [--indexerBatchSize <value>] [--indexerSubscription] [--disableHistorical]
    [--indexerWorkers <value>] [--queryUnsafe] [--querySubscription] [--queryTimeout <value>] [--queryMaxConnection
    <value>] [--queryAggregate] [-d] [--project_name <value>] [--deploymentID <value>]

FLAGS
  -d, --useDefaults             Use default values for indexerVersion, queryVersion, dictionary, endpoint
  --deploymentID=<value>        Enter deployment ID
  --dict=<value>                Enter dictionary
  --disableHistorical           Disable Historical Data
  --endpoint=<value>            Enter endpoint
  --indexerBatchSize=<value>    Enter batchSize from 1 to 30
  --indexerSubscription         Enable Indexer subscription
  --indexerUnsafe               Enable indexer unsafe
  --indexerVersion=<value>      Enter indexer-version
  --indexerWorkers=<value>      Enter worker threads from 1 to 30
  --ipfsCID=<value>             Enter IPFS CID
  --options=<option>            <options: deploy|promote|delete>
  --org=<value>                 Enter organization name
  --projectName=<value>         Enter project name
  --project_name=<value>        Enter project name
  --queryAggregate              Enable Aggregate
  --queryMaxConnection=<value>  Enter MaxConnection from 1 to 10
  --querySubscription           Enable Query subscription
  --queryTimeout=<value>        Enter timeout from 1000ms to 60000ms
  --queryUnsafe                 Enable indexer unsafe
  --queryVersion=<value>        Enter query-version
  --type=<option>               [default: primary]
                                <options: stage|primary>

DESCRIPTION
  Deploy to hosted service

See code: lib/commands/deployment/index.js

subql deployment:delete

Delete Deployment

USAGE
  $ subql deployment:delete [--org <value>] [--project_name <value>] [--deploymentID <value>]

FLAGS
  --deploymentID=<value>  Enter deployment ID
  --org=<value>           Enter organization name
  --project_name=<value>  Enter project name

DESCRIPTION
  Delete Deployment

See code: lib/commands/deployment/delete.js

subql deployment:deploy

Deployment to hosted service

USAGE
  $ subql deployment:deploy [--org <value>] [--projectName <value>] [--ipfsCID <value>] [--type stage|primary]
    [--indexerVersion <value>] [--queryVersion <value>] [--dict <value>] [--endpoint <value>] [--indexerUnsafe]
    [--indexerBatchSize <value>] [--indexerSubscription] [--disableHistorical] [--indexerWorkers <value>]
    [--queryUnsafe] [--querySubscription] [--queryTimeout <value>] [--queryMaxConnection <value>] [--queryAggregate]
    [-d]

FLAGS
  -d, --useDefaults             Use default values for indexerVersion, queryVersion, dictionary, endpoint
  --dict=<value>                Enter dictionary
  --disableHistorical           Disable Historical Data
  --endpoint=<value>            Enter endpoint
  --indexerBatchSize=<value>    Enter batchSize from 1 to 30
  --indexerSubscription         Enable Indexer subscription
  --indexerUnsafe               Enable indexer unsafe
  --indexerVersion=<value>      Enter indexer-version
  --indexerWorkers=<value>      Enter worker threads from 1 to 30
  --ipfsCID=<value>             Enter IPFS CID
  --org=<value>                 Enter organization name
  --projectName=<value>         Enter project name
  --queryAggregate              Enable Aggregate
  --queryMaxConnection=<value>  Enter MaxConnection from 1 to 10
  --querySubscription           Enable Query subscription
  --queryTimeout=<value>        Enter timeout from 1000ms to 60000ms
  --queryUnsafe                 Enable indexer unsafe
  --queryVersion=<value>        Enter query-version
  --type=<option>               [default: primary]
                                <options: stage|primary>

DESCRIPTION
  Deployment to hosted service

See code: lib/commands/deployment/deploy.js

subql deployment:promote

Promote Deployment

USAGE
  $ subql deployment:promote [--org <value>] [--project_name <value>] [--deploymentID <value>]

FLAGS
  --deploymentID=<value>  Enter deployment ID
  --org=<value>           Enter organization name
  --project_name=<value>  Enter project name

DESCRIPTION
  Promote Deployment

See code: lib/commands/deployment/promote.js

subql help [COMMAND]

display help for subql

USAGE
  $ subql help [COMMAND] [--all]

ARGUMENTS
  COMMAND  command to show help for

FLAGS
  --all  see all commands in CLI

DESCRIPTION
  display help for subql

See code: @oclif/plugin-help

subql init [PROJECTNAME]

Initialize a scaffold subquery project

USAGE
  $ subql init [PROJECTNAME] [-f] [-l <value>] [--install-dependencies] [--npm] [--abiPath <value>]

ARGUMENTS
  PROJECTNAME  Give the starter project name

FLAGS
  -f, --force
  -l, --location=<value>  local folder to create the project in
  --abiPath=<value>       path to abi file
  --install-dependencies  Install dependencies as well
  --npm                   Force using NPM instead of yarn, only works with `install-dependencies` flag

DESCRIPTION
  Initialize a scaffold subquery project

See code: lib/commands/init.js

subql multi-chain:add

Add new chain manifest to multi-chain configuration

USAGE
  $ subql multi-chain:add [-f <value>] [-c <value>]

FLAGS
  -c, --chainManifestPath=<value>  path to the new chain manifest
  -f, --multichain=<value>         [default: /Users/jiatwork/ofn/subql/packages/cli] specify multichain manifest file
                                   path

DESCRIPTION
  Add new chain manifest to multi-chain configuration

See code: lib/commands/multi-chain/add.js

subql project

Create/Delete project

USAGE
  $ subql project [--options create|delete] [--org <value>] [--projectName <value>] [--gitRepo <value>]
    [--logoURL <value>] [--subtitle <value>] [--description <value>] [--apiVersion <value>] [--dedicatedDB <value>]

FLAGS
  --apiVersion=<value>   [default: 2] Enter api version
  --dedicatedDB=<value>  Enter dedicated DataBase
  --description=<value>  Enter description
  --gitRepo=<value>      Enter git repository
  --logoURL=<value>      Enter logo URL
  --options=<option>     <options: create|delete>
  --org=<value>          Enter organization name
  --projectName=<value>  Enter project name
  --subtitle=<value>     Enter subtitle

DESCRIPTION
  Create/Delete project

See code: lib/commands/project/index.js

subql project:create-project

Create Project on Hosted Service

USAGE
  $ subql project:create-project [--org <value>] [--projectName <value>] [--gitRepo <value>] [--logoURL <value>] [--subtitle
    <value>] [--description <value>] [--apiVersion <value>] [--dedicatedDB <value>]

FLAGS
  --apiVersion=<value>   [default: 2] Enter api version
  --dedicatedDB=<value>  Enter dedicated DataBase
  --description=<value>  Enter description
  --gitRepo=<value>      Enter git repository
  --logoURL=<value>      Enter logo URL
  --org=<value>          Enter organization name
  --projectName=<value>  Enter project name
  --subtitle=<value>     Enter subtitle

DESCRIPTION
  Create Project on Hosted Service

See code: lib/commands/project/create-project.js

subql project:delete-project

Delete Project on Hosted Service

USAGE
  $ subql project:delete-project [--org <value>] [--projectName <value>]

FLAGS
  --org=<value>          Enter organization name
  --projectName=<value>  Enter project name

DESCRIPTION
  Delete Project on Hosted Service

See code: lib/commands/project/delete-project.js

subql publish

Upload this SubQuery project to IPFS

USAGE
  $ subql publish [-f <value>] [--ipfs <value>] [-o]

FLAGS
  -f, --location=<value>  from project folder or specify manifest file
  -o, --output            Output IPFS CID
  --ipfs=<value>          IPFS gateway endpoint

DESCRIPTION
  Upload this SubQuery project to IPFS

See code: lib/commands/publish.js

subql validate

Check a folder or github repo is a validate subquery project

USAGE
  $ subql validate [-l <value>] [--ipfs <value>] [--silent] [--network-family
    Substrate|Cosmos|Algorand|Ethereum|Flare|Near|Stellar]

FLAGS
  -l, --location=<value>     local folder, github repo url or IPFS cid
  --ipfs=<value>             [default: https://unauthipfs.subquery.network/ipfs/api/v0] IPFS gateway endpoint, used for
                             validating projects on IPFS
  --network-family=<option>  <options: Substrate|Cosmos|Algorand|Ethereum|Flare|Near|Stellar>
  --silent

DESCRIPTION
  Check a folder or github repo is a validate subquery project

See code: lib/commands/validate.js

4.9.0

2 days ago

4.8.0

15 days ago

4.7.1-0

15 days ago

4.7.0

21 days ago

4.6.1-0

21 days ago

4.6.0

28 days ago

4.5.3-1

29 days ago

4.5.3-0

1 month ago

4.5.2-0

1 month ago

4.5.2

1 month ago

4.5.1

1 month ago

4.5.0

2 months ago

4.4.2-1

2 months ago

4.4.2-0

2 months ago

4.4.1

3 months ago

4.4.1-0

3 months ago

4.4.0

3 months ago

4.3.1-0

3 months ago

4.3.0

3 months ago

4.2.7

3 months ago

4.2.6

4 months ago

4.2.6-1

4 months ago

4.2.6-0

5 months ago

4.2.5

5 months ago

4.2.4-0

5 months ago

4.2.4

5 months ago

3.5.2-1

9 months ago

3.5.2-2

9 months ago

3.5.2-0

9 months ago

4.0.3-0

7 months ago

4.0.3-1

7 months ago

4.0.5

7 months ago

4.0.4

7 months ago

4.0.1

8 months ago

4.0.0

8 months ago

4.0.3

7 months ago

4.0.2

7 months ago

3.5.1-0

9 months ago

4.0.2-0

7 months ago

3.6.2-10

8 months ago

3.6.2-11

8 months ago

3.6.2-13

8 months ago

4.2.2-1

6 months ago

4.0.1-2

8 months ago

4.0.1-0

8 months ago

4.0.1-1

8 months ago

3.6.2-2

9 months ago

3.6.2-3

9 months ago

3.6.2-4

9 months ago

3.6.2-5

9 months ago

3.6.2-0

9 months ago

3.6.2-1

9 months ago

4.2.2-0

6 months ago

3.6.2-6

9 months ago

3.6.2-7

8 months ago

3.6.2-8

8 months ago

3.6.2-9

8 months ago

4.2.3-0

6 months ago

3.6.1-0

9 months ago

3.3.2-0

10 months ago

3.6.1

9 months ago

3.6.0

9 months ago

4.0.6-1

7 months ago

3.3.1-0

11 months ago

4.0.6-2

7 months ago

3.3.1-1

11 months ago

4.0.6-0

7 months ago

4.0.6-3

7 months ago

3.5.1

9 months ago

3.5.0

10 months ago

4.0.6-1-ts-build

7 months ago

3.3.4-1

10 months ago

3.3.4-2

10 months ago

3.3.4-0

10 months ago

3.4.0

10 months ago

4.0.5-0

7 months ago

4.2.3

6 months ago

4.2.2

6 months ago

4.2.1

6 months ago

4.2.0

7 months ago

3.3.3-2

10 months ago

4.0.4-0

7 months ago

3.3.3-0

10 months ago

3.3.3-1

10 months ago

3.3.1

11 months ago

4.0.4-1

7 months ago

3.3.3

10 months ago

3.3.2

10 months ago

4.1.1-0

7 months ago

4.1.1-1

7 months ago

3.4.1-0

10 months ago

4.1.0

7 months ago

3.2.1-3

11 months ago

3.3.0

11 months ago

3.1.1-1

12 months ago

3.1.1-0

12 months ago

3.2.0

11 months ago

3.1.2-0

11 months ago

3.1.1

12 months ago

3.2.1-0

11 months ago

3.2.1-2

11 months ago

3.2.1-1

11 months ago

2.1.1-0

1 year ago

2.1.1-1

1 year ago

3.1.0

12 months ago

3.0.0

1 year ago

2.1.0

1 year ago

3.0.1-0

12 months ago

2.0.1-0

1 year ago

1.12.3-0

1 year ago

1.12.2-0

1 year ago

1.12.3

1 year ago

1.12.2

1 year ago

1.12.1

1 year ago

1.12.0

1 year ago

1.13.1

1 year ago

2.0.0

1 year ago

1.13.2-1

1 year ago

1.13.2-0

1 year ago

1.13.2-2

1 year ago

1.12.4-0

1 year ago

1.12.4-1

1 year ago

1.11.1-0

1 year ago

1.11.0

1 year ago

1.10.2-1

1 year ago

1.9.2-0

1 year ago

1.9.1-0

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.1

1 year ago

1.10.2-0

1 year ago

1.10.1-0

1 year ago

1.6.4

2 years ago

1.6.3

2 years ago

1.7.1-3

2 years ago

1.7.1-2

2 years ago

1.7.1-1

2 years ago

1.7.1-0

2 years ago

1.6.4-0

2 years ago

1.9.0

1 year ago

1.6.5-0

2 years ago

1.6.5-2

2 years ago

1.6.5-1

2 years ago

1.8.0

2 years ago

1.8.1-0

2 years ago

1.7.0

2 years ago

1.6.3-0

2 years ago

1.6.3-2

2 years ago

1.6.3-1

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.1-1

2 years ago

1.6.1-0

2 years ago

1.6.2-0

2 years ago

1.2.0

2 years ago

1.2.2-1

2 years ago

1.2.2-0

2 years ago

1.2.2-2

2 years ago

1.6.0

2 years ago

1.2.1

2 years ago

1.0.2-3

2 years ago

1.0.2-2

2 years ago

1.0.2-5

2 years ago

1.0.2-4

2 years ago

1.0.2-1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.2.1-0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.2-0

2 years ago

1.4.0

2 years ago

1.3.2-2

2 years ago

1.3.2-1

2 years ago

1.3.2-0

2 years ago

1.4.1-0

2 years ago

1.4.1-1

2 years ago

1.1.2-3

2 years ago

1.1.2-2

2 years ago

1.1.2-1

2 years ago

1.1.2-0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.1-3

2 years ago

1.3.1-2

2 years ago

1.3.1-1

2 years ago

1.3.1-0

2 years ago

1.3.1-5

2 years ago

1.3.1-4

2 years ago

1.1.1-1

2 years ago

1.1.1-0

2 years ago

0.27.1-0

2 years ago

0.27.1-1

2 years ago

1.0.2-0

2 years ago

0.29.0

2 years ago

0.29.1-0

2 years ago

1.0.1-0

2 years ago

1.0.1

2 years ago

0.28.1-0

2 years ago

1.0.0

2 years ago

0.27.0

2 years ago

0.28.0

2 years ago

0.26.2-0

2 years ago

0.26.2-1

2 years ago

0.25.0

2 years ago

0.26.1-0

2 years ago

0.26.1-1

2 years ago

0.26.1-2

2 years ago

0.26.1-3

2 years ago

0.26.1

2 years ago

0.26.0

2 years ago

0.23.1-1

2 years ago

0.23.1-0

2 years ago

0.25.1-0

2 years ago

0.24.0

2 years ago

0.25.1-1

2 years ago

0.22.1-0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.1-0

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

0.17.0

2 years ago

0.21.0

2 years ago

0.18.0

2 years ago

0.18.1-0

2 years ago

0.18.1-1

2 years ago

0.20.2-1

2 years ago

0.20.2-0

2 years ago

0.19.0

2 years ago

0.19.1-6

2 years ago

0.19.1-7

2 years ago

0.19.1-4

2 years ago

0.19.1-5

2 years ago

0.19.1-8

2 years ago

0.19.1-9

2 years ago

0.19.1-2

2 years ago

0.19.1-3

2 years ago

0.19.1-0

2 years ago

0.19.1-1

2 years ago

0.17.1-0

2 years ago

0.16.3-1

2 years ago

0.16.3-2

2 years ago

0.16.3-0

2 years ago

0.15.1-2

3 years ago

0.15.1-3

3 years ago

0.15.1-6

3 years ago

0.15.1-7

3 years ago

0.15.1-4

3 years ago

0.15.1-5

3 years ago

0.15.1-8

2 years ago

0.16.2-0

2 years ago

0.16.2-1

2 years ago

0.16.0

2 years ago

0.16.1

2 years ago

0.16.2

2 years ago

0.15.1-0

3 years ago

0.15.1-1

3 years ago

0.14.1-2

3 years ago

0.14.1-1

3 years ago

0.14.1-4

3 years ago

0.14.1-3

3 years ago

0.14.1-5

3 years ago

0.15.0

3 years ago

0.14.1-0

3 years ago

0.13.1-3

3 years ago

0.14.0

3 years ago

0.13.0

3 years ago

0.13.1-1

3 years ago

0.13.1-0

3 years ago

0.13.1-2

3 years ago

0.12.1-2

3 years ago

0.12.1-3

3 years ago

0.12.1-1

3 years ago

0.12.1-0

3 years ago

0.11.3-0

3 years ago

0.12.0

3 years ago

0.11.2-0

3 years ago

0.11.2

3 years ago

0.11.1

3 years ago

0.10.1-0

3 years ago

0.11.0

3 years ago

0.10.0

3 years ago

0.9.4-0

3 years ago

0.9.3

3 years ago

0.9.3-1

3 years ago

0.9.3-0

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.1-0

3 years ago

0.8.1-1

3 years ago

0.8.1-0

3 years ago

0.7.4-3

3 years ago

0.8.0

3 years ago

0.7.4-1

3 years ago

0.7.4-2

3 years ago

0.7.4-0

3 years ago

0.7.3

3 years ago

0.7.3-0

3 years ago

0.7.2

3 years ago

0.7.2-0

3 years ago

0.7.1

3 years ago

0.7.1-0

3 years ago

0.7.0

3 years ago

0.6.2-0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1-0

3 years ago

0.5.0

3 years ago

0.4.1-2

3 years ago

0.4.1-1

3 years ago

0.4.1-0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.5-0

3 years ago

0.2.4

3 years ago

0.1.2-2

3 years ago

0.2.1-0

3 years ago

0.1.2-1

3 years ago

0.1.2-0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago