Getting Started
Getting Started
💡Make sure you have access to your organization account via the Dashboard. During our closed beta, you’ll need to contact us at [email protected] to create an account.
Creating a new subgraph
Install the
graph-cli
:npm install -g @graphprotocol/graph-cli
Create a new subgraph:
graph init --product hosted-service
Make modifications as necessary to the manifest, schema, and handlers. See Subgraph Creation for more details.
Deploying a subgraph
Get your deploy key from the Dashboard.
Run the following:
cd <SUBGRAPH_DIRECTORY> graph deploy <SUBGRAPH_NAME> \ --version-label <VERSION_NAME> \ --node http://subgraphs.alchemy.com/api/subgraphs/deploy \ --deploy-key <DEPLOY_KEY>
See Subgraph Deploys for more details.
If the deploy command succeeds, you’ll receive a link to the dashboard to view your newly deployed subgraph.
🎉 Congrats on deploying your new subgraph!
Last updated