graph-cli package contains commands that help you create, develop, and publish your subgraph.
# NPM npm install -g @graphprotocol/graph-cli # Yarn yarn global add @graphprotocol/graph-cli
|Creates a new subgraph project|
|Generates AssemblyScript types for smart contract ABIs and the subgraph schema|
|Deploys a subgraph (See Deploying a Subgraph)|
|Adds a new datasource to the yaml file and updates schema.graphql, abis, and mappings|
|Runs unit tests with Matchstick|
See full specification for additional commands and details.