| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
@subsquid/cli is the command line tool for building and deploying Squid SDK blockchain indexers. It installs a single sqd binary that scaffolds a new squid project, runs it locally, and deploys and manages squids in SQD Cloud.
It is part of SQD, an open data platform for Web3. A squid is an indexer built with the Squid SDK that extracts onchain data into a queryable store.
Install the CLI globally with npm:
npm i -g @subsquid/cliThis adds the sqd command to your PATH. Check the version with:
sqd --versionRun sqd --help to list all commands, or sqd <command> --help for the flags and examples of a specific command.
A typical workflow:
# Scaffold a new squid project from a template or GitHub repo
sqd init my-squid
# Run a squid project locally
sqd run .
# Log in to SQD Cloud with an API key
sqd auth -k <your-api-key>
# Deploy a new squid or update an existing one in the Cloud
sqd deploy .The CLI is built with oclif. The commands below come from the source in src/commands.
| Command | Description |
|---|---|
| sqd init | Set up a new squid project from a template or GitHub repo |
| sqd run | Run a squid project locally |
| sqd auth | Log in to the Cloud |
| sqd whoami | Show the user details for the current Cloud account |
| sqd deploy | Deploy a new or update an existing squid in the Cloud |
| sqd list | List squids deployed to the Cloud |
| sqd view | View information about a squid |
| sqd logs | Fetch logs from a squid deployed to the Cloud |
| sqd restart | Restart a squid deployed to the Cloud |
| sqd remove (rm) | Remove a squid deployed to the Cloud |
| sqd prod | Assign the canonical production API alias for a squid in the Cloud |
| sqd explorer | Open a visual explorer for Cloud deployments |
| sqd docs | Open the docs in a browser |
| sqd tags add / tags remove | Add or remove a tag on a squid |
| sqd secrets set / secrets list / secrets remove | Manage organization secrets in the Cloud |
| sqd gateways list | List available gateways (data sources for a squid) |
| sqd profiles use / profiles list / profiles remove | Manage saved CLI profiles |
GPL-3.0-or-later. See package.json for details.
| Back | FazBrowse Home | New Git URL |