
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@subql/cli
Advanced tools
CLI for SubQuery
$ npm install -g @subql/cli
$ subql COMMAND
running command...
$ subql (--version)
@subql/cli/4.2.5 linux-x64 node-v18.19.0
$ subql --help [COMMAND]
USAGE
$ subql COMMAND
...
subql buildsubql codegensubql codegen:generatesubql deploymentsubql deployment:deletesubql deployment:deploysubql deployment:promotesubql init [PROJECTNAME]subql multi-chain:addsubql projectsubql project:create-projectsubql project:delete-projectsubql publishsubql buildBuild 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/index.js
subql codegenGenerate 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:generateGenerate 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 deploymentDeploy to hosted service
USAGE
$ subql deployment --endpoint <value> [--options deploy|promote|delete] [--org <value>] [--projectName
<value>] [--ipfsCID <value>] [--type stage|primary] [--indexerVersion <value>] [--queryVersion <value>] [--dict
<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> (required) 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:deleteDelete 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:deployDeployment to hosted service
USAGE
$ subql deployment:deploy --endpoint <value> [--org <value>] [--projectName <value>] [--ipfsCID <value>] [--type
stage|primary] [--indexerVersion <value>] [--queryVersion <value>] [--dict <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> (required) 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:promotePromote 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 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:addAdd 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: /home/runner/work/subql/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 projectCreate/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-projectCreate 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-projectDelete 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 publishUpload 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
FAQs
CLI for SubQuery
The npm package @subql/cli receives a total of 1,334 weekly downloads. As such, @subql/cli popularity was classified as popular.
We found that @subql/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain