Squid CLI (sqd)

June 16, 2026 ยท View on GitHub

npm version

@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.

Installation

Install the CLI globally with npm:

npm i -g @subsquid/cli

This adds the sqd command to your PATH. Check the version with:

sqd --version

Usage

Run 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 .

Commands

The CLI is built with oclif. The commands below come from the source in src/commands.

CommandDescription
sqd initSet up a new squid project from a template or GitHub repo
sqd runRun a squid project locally
sqd authLog in to the Cloud
sqd whoamiShow the user details for the current Cloud account
sqd deployDeploy a new or update an existing squid in the Cloud
sqd listList squids deployed to the Cloud
sqd viewView information about a squid
sqd logsFetch logs from a squid deployed to the Cloud
sqd restartRestart a squid deployed to the Cloud
sqd remove (rm)Remove a squid deployed to the Cloud
sqd prodAssign the canonical production API alias for a squid in the Cloud
sqd explorerOpen a visual explorer for Cloud deployments
sqd docsOpen the docs in a browser
sqd tags add / tags removeAdd or remove a tag on a squid
sqd secrets set / secrets list / secrets removeManage organization secrets in the Cloud
sqd gateways listList available gateways (data sources for a squid)
sqd profiles use / profiles list / profiles removeManage saved CLI profiles

Documentation

License

GPL-3.0-or-later. See package.json for details.