Squid CLI cheatsheet
Thesqd CLI tool has built-in aliasing that picks up the commands defined in commands.json in the project root. In all squid templates this file is pre-populated with some handy scripts briefly described below.
One can always inspect the available commands defined in commands.json with
commands.json will appear in the SQUID COMMANDS help sections.
Before using the sqd CLI tool, make sure all the project dependencies are installed:
Building the squid
Running the squid
Both
sqd up and sqd down assume that the docker compose command is supported and the docker deamon is running. Modify the definitions in commands.json accordingly if docker-compose should be used instead.DB migrations
Read TypeORM Migration generation for details.Code generation
Consult TypeORM Model generation for TypeORM model generation details, and Type-safe decoding for type generation.Depending on the template,
sqd typegen is aliased to a different typegen tool specific to the chain type and thus has different usage. Consult sqd typegen --help for details.