npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sotatek-tanhoang/cli

v0.22.5

Published

cli for subquery. Support Solana

Downloads

6

Readme

@subql/cli

cli for polkagraph

oclif Version Downloads/week License

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

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

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