Overview
This quick start guide outlines streamlined instructions for deploying Subgraphs using the Command Line Interface (CLI). Developers looking to swiftly incorporate Subgraph capabilities into their projects will find straightforward guidance and pro tips for getting set up fast.This cheat sheet condenses essential commands, tips, and best practices into
an indispensable reference for anyone deploying a Subgraph. Developers will
find this streamlined guide invaluable for swiftly progressing through the
deployment workflow and resolving frequent pain points. With key information
consolidated in one place, engineers can deploy Subgraphs more efficiently and
focus their efforts on building applications powered by real-time,
customizable blockchain data indexes.
1. Get started by installing The Graph CLI
Download The Graph CLI via npmNPM CLI Package
Install The Graph npm package
2. Generate API key
Create an API key: Visit 0xGraph Dashboard to generate your API keyYou need to specify the 0xGraph deployment endpoint. Your API key should only
be used for the 0xGraph deployment endpoint.
3. Generate types and mappings for your Subgraph
Go to your Subgraph root directory wheresubgraph.yaml
file is located
4. Compile your Subgraph
Run the following command to compile your Subgraph into WASM (WebAssembly)5. Deploy your Subgraph to 0xGraph
Paste the API key generated in step 2 and run the following command to deploy your Subgraph to 0xGraphIf prompted to enter the version, use the version of The Graph CLI that you
downloaded.

Quick Start in the App
The 0xGraph Web App also offers a concise guide to assist users in deploying their Subgraphs effectively