Quick start guide for deploying a Subgraph using the Command Line Interface (CLI).
Install CLI Package
subgraph.yaml
manifest file serves as the root configuration, containing smart contract references, entity mappings, handler functions, and deployment parameters like startBlock
and description
.schema.graphql
file defines all the entities and their relationships for
your Subgraph’s GraphQL API, determining what blockchain data will be indexed
and made queryable.Generate Types and Mappings
Codegen Options
graph codegen --help
:Build Your Subgraph
Build Options
graph build --help
:Deploy your Subgraph