Docs
Search⌘ K
  • Home
  • About The Graph
  • Supported Networks
  • Protocol Contracts
  • AI Tooling
  • Subgraphs
    • Substreams
      • Indexer Software
        • Gateway Software
          • Data Services
            • Resources
              Subgraphs > Developing > Deploying/Publishing

              2 minutes

              Publishing a Subgraph to the Decentralized Network

              Once you have deployed your Subgraph to Subgraph Studio and it’s ready to go into production, you can publish it to the decentralized network.

              When you publish a Subgraph to the decentralized network, you make it available for:

              • Curators to begin attracting Indexers to sync and serve queries.
              • Indexers to begin indexing it.

              Check out the list of supported networks.

              Publishing from Subgraph Studio

              1. Go to the Subgraph Studio dashboard
              2. Click on the Publish button
              3. Your Subgraph will now be visible in Graph Explorer.

              All published versions of an existing Subgraph can:

              • Be published to Arbitrum One. Learn more about The Graph Network on Arbitrum.

              • Index data on any of the supported networks, regardless of the network on which the Subgraph was published.

              Updating metadata for a published Subgraph

              • After publishing your Subgraph to the decentralized network, you can update the metadata anytime in Subgraph Studio.
              • Once you’ve saved your changes and published the updates, they will appear in Graph Explorer.
              • It’s important to note that this process will not create a new version since your deployment has not changed.

              Publishing from the CLI

              As of version 0.73.0, you can also publish your Subgraph with the graph-cli⁠.

              1. Open the graph-cli.
              2. Use the following commands: graph codegen && graph build then graph publish.
              3. A window will open, allowing you to connect your wallet, add metadata, and deploy your finalized Subgraph to a network of your choice.
              cli-ui

              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.

              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.

              Curation Pool

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

              ⁠Edit on GitHub⁠

              Deploy to Multiple NetworksCurating
              On this page
              • Publishing from Subgraph Studio
              • Updating metadata for a published Subgraph
              • Publishing from the CLI
              • Customizing your deployment
              • Adding signal to your Subgraph
              The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service