LogoLogo
Package RegistryThe Graph
  • Introduction
  • Getting Started
  • Tutorials
    • Develop Your First Substreams
      • on EVM
      • on Solana
        • Transactions & Instructions
        • Account Changes
      • on Cosmos
        • Injective
        • MANTRA
      • on Starknet
      • on Stellar
    • Publishing a Substreams Package
  • How-To Guides
    • Developing Substreams
      • on EVM
        • Exploring Ethereum
          • Mapping Blocks
          • Filter Transactions
          • Retrieve Events of a Smart Contract
      • on Solana
        • Explore Solana
          • Filter Instructions
          • Filter Transactions
        • SPL Token Tracker
        • NFT Trades
        • DEX Trades
      • on Cosmos
        • Injective
          • Simple Substreams Example
          • Foundational Modules
          • Dojo DEX USDT Volume Subgraph Example
    • Using a Substreams Sink
      • Substreams:SQL
      • Substreams:Subgraph
        • Triggers
        • Graph Out
      • Substreams:Stream
        • JavaScript
        • Go
      • Substreams:PubSub
      • Community Sinks
        • MongoDB
        • Files
        • Key-Value Store
        • Prometheus
    • EVM Extensions
      • Making eth_calls
    • Getting Started Using Rust and Protobuf
      • Rust
        • Option struct
        • Result struct
      • Protobuf Schemas
    • From Yellowstone to Substreams
  • Reference Material
    • Chains and endpoints
      • Ethereum Data Model
    • Never Miss Data
    • Development Container Reference
    • Substreams CLI
      • Install the CLI
      • Authentication
      • Substreams CLI reference
    • Substreams Components
      • Packages
      • Modules
        • Module types
        • Inputs
        • Output
        • Module handlers
        • Module handler creation
        • Indexes
        • Keys in stores
        • Dynamic data sources
        • Aggregation Windows
        • Parameterized Modules
      • Manifests Reference
    • Substreams Architecture
    • Graph-Node
      • Local Development
      • Publish to The Graph Network
    • Indexer Reference
      • Test Substreams Locally
    • Logging, Debugging & Testing
    • Change log
    • FAQ
  • Decentralized Indexing
    • What is The Graph?
Powered by GitBook
On this page
  • Prerequisites
  • Step 1: Run the substreams publish Command
  • Step 2: Get a Token in the Substreams Registry
  • Step 3: Authenticate in the Substreams CLI

Was this helpful?

Edit on GitHub
  1. Tutorials

Publishing a Substreams Package

Previouson StellarNextDeveloping Substreams

Last updated 4 months ago

Was this helpful?

In this guide, you'll learn how to publish a Substreams package to the .

Prerequisites

  • You must have the Substreams CLI installed.

  • You must have a Substreams package (.spkg) that you want to publish.

Step 1: Run the substreams publish Command

  1. In a command-line terminal, run substreams publish <YOUR-PACKAGE>.spkg.

  2. If you do not have a token set in your computer, navigate to https://substreams.dev/me.

Step 2: Get a Token in the Substreams Registry

  1. In the Substreams Registry, log in with your GitHub account.

  2. Create a new token and copy it in a safe location.

Step 3: Authenticate in the Substreams CLI

  1. Back in the Substreams CLI, paste the previously generated token.

  1. Lastly, confirm that you want to publish the package.

That's it! You have succesfully published a package in the Substreams registry.

Substreams Registry