#subgraph #cli #tool #command-line-tool #cli-applications #rust

app subgraph-status

A Rust CLI tool to check subgraph status

9 releases

new 0.1.8 Mar 3, 2025
0.1.7 Mar 3, 2025
0.1.1 Feb 27, 2025

#519 in Command line utilities

Download history

383 downloads per month

MIT license

22KB
519 lines

📊 Subgraph Status

🖥️  CLI Application to Check Your Subgraph's Status

Crates.io Crates.io License Contributors

Prequsites 🛠️

Installation 💻

cargo install subgraph-status

Usage

subgraph-status <DEPLOYMENT_ID>

Example

subgraph-status QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe

To fetch status from local graph-node

subgraph-status <DEPLOYMENT_ID> --local

How to fetch details from a specific indexer ❓

  1. Visit the Graph Network Arbitrum Subgraph.

  2. Execute the following query with the desired indexer address:

    {
      indexer(id: "INDEXER_ADDRESS") {
        url
      }
    }
    
  3. Set the resulting URL as an environment variable:

    export SUBGRAPH_STATUS_URL="resulting_url"
    
  4. You're all set! The package will now fetch the status from the specified indexer.

How to run locally ❓

  1. Clone repository & change directory
git clone https://github.com/Shiyasmohd/subgraph-status.git
cd subgraph-status
  1. Copy Deployment ID of the Subgraph (Starts with Qm..)

  2. Run Program

cargo run <DEPLOYMENT_ID>

Example Command

cargo run QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe

Dependencies

~12–26MB
~363K SLoC