3 minutes
Publishing a Subgraph to the Decentralized Network
Publishing registers your Subgraph on The Graph Network. It is an onchain transaction on Arbitrum One, and it works the same way whichever gateway you or your users later query through.
What Publishing a Subgraph Does
When you publish a Subgraph, the transaction:
- On first publish, creates a Subgraph ID, which gives your Subgraph a stable identity across versions, and mints an NFT that represents ownership of it. See Subgraph ID vs Deployment ID.
- Points the Subgraph to a deployment, and to a new one each time you publish a new version: the build of your Subgraph, stored on IPFS and identified by its Deployment ID.
- Records the Subgraph’s metadata, such as its name, description, and image, which appears in Graph Explorer.
- Makes the Subgraph available for Curators to add signal, and for Indexers to index and serve it.
Once a Subgraph is published, every gateway on The Graph Network can serve it. You don’t need to publish separately for each Gateway Operator.
Published versions of a Subgraph are published to Arbitrum One, and can index data on any of the supported networks, whichever network the Subgraph was published on.
How to Publish
Before you publish, test your Subgraph first, so the version you publish indexes without errors. See Testing and Staging.
You can publish with the Graph CLI or in Subgraph Studio. Both send the same onchain transaction from your wallet.
Publish from the CLI
As of version 0.73.0, you can publish your Subgraph with the graph-cli.
- Build your Subgraph:
graph codegen && graph build. - Run
graph publish. - A browser window opens. Connect your wallet, add metadata, and publish your Subgraph to the network of your choice.

Customizing your deployment
You can upload your Subgraph build to a specific IPFS node and further customize your deployment with the following flags:
1USAGE2 $ graph publish [SUBGRAPH-MANIFEST] [-h] [--protocol-network arbitrum-one|arbitrum-sepolia --subgraph-id <value>] [-i <value>] [--ipfs-hash <value>] [--webapp-url3 <value>]45FLAGS6 -h, --help Show CLI help.7 -i, --ipfs=<value> [default: https://ipfs.thegraph.com/api/v0] Upload build results to an IPFS node.8 --ipfs-hash=<value> IPFS hash of the subgraph manifest to deploy.9 --protocol-network=<option> [default: arbitrum-one] The network to use for the subgraph deployment.10 <options: arbitrum-one|arbitrum-sepolia>11 --subgraph-id=<value> Subgraph ID to publish to.12 --webapp-url=<value> [default: https://cli.thegraph.com/publish] URL of the web UI you want to use to deploy.Publish from Subgraph Studio
If you deployed your Subgraph to Subgraph Studio, operated by The Graph Foundation, you can publish it from there:
- Go to the Subgraph Studio dashboard.
- Click the Publish button.
- Your Subgraph will now be visible in Graph Explorer.
Publishing in Studio does not tie your Subgraph to any gateway.
Updating Metadata for a Published Subgraph
You can update a published Subgraph’s metadata at any time. In Subgraph Studio, edit the details and save them. The update is an onchain transaction, and the changes appear in Graph Explorer.
Updating metadata doesn’t create a new version, because the deployment has not changed.
Adding signal to your Subgraph
Add GRT signal to your Subgraph to incentivize Indexers to index it. Before you add signal, see Curating for how much to add on your network, which networks signal works on, and what it costs.
Subgraph Studio enables you to add signal to your Subgraph by adding GRT to your Subgraph’s curation pool in the same transaction it is published.

You can also add signal to a published Subgraph later from Graph Explorer.