Skip to main content
Deploy new or update an existing squid deployment in the Cloud. Squid name and also optionally slot and/or tag are taken from the provided deployment manifest.

Deploy to the playground

The playground uses shared infrastructure. A manifest generated by the EVM template defaults to dedicated infrastructure, so opt in to the playground before deploying.
1

Authenticate the CLI

Create a deployment key in SQD Cloud and authenticate:
2

Initialize and build a squid

Create a project from the EVM template, install its dependencies, and run the template’s build command:
3

Enable playground infrastructure

Add this top-level setting to squid.yaml:
Without this setting, a playground deployment fails because the generated manifest requests infrastructure available only to professional organizations.
4

Deploy the local project

Copy the playground organization code from SQD Cloud, then deploy the current directory. Pass --org explicitly when your account belongs to more than one organization.
With @subsquid/[email protected], URL sources listed by sqd deploy --help, including .tar.gz archives and GitHub repositories, return Not implemented yet. Deploy a local directory.
5

Verify the deployment

Use the name from squid.yaml and the slot printed by sqd deploy:
A successful response reports the deployment status and includes links.cloudUrl. Open that URL to view the same deployment in SQD Cloud.
6

Remove a test deployment

When the playground test is no longer needed, remove its slot:

sqd deploy SOURCE

Deploy new or update an existing squid in the Cloud
--hard-reset drops and recreates all resources for the selected deployment, including its database.
See code: src/commands/deploy.ts