Squid CLI Cheatsheet
Thesqd CLI tool has built-in aliasing that picks up custom commands defined in commands.json in the project root.
All squid templates include a pre-populated commands.json file with handy scripts for common development tasks.
Getting Help
View all available commands (including custom commands fromcommands.json):
Initial Setup
Before using thesqd CLI tool, install all project dependencies:
Building the Squid
Build your squid project:Running the Squid
The
sqd up and sqd down commands assume that the docker compose command
is supported and the Docker daemon is running. Modify the definitions in
commands.json if docker-compose should be used instead.squid.yaml locally:
Database Migrations
For detailed information, see TypeORM Migration generation. Apply pending migrations:schema.graphql:
db/migrations folder:
Code Generation
For more details, see TypeORM Model generation and Type-safe decoding. Generate TypeORM entities fromschema.graphql:
./abi folder:
Depending on the template,
sqd typegen is aliased to a different typegen
tool specific to the chain type. Run sqd typegen --help for details.
