> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goldsky.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from TheGraph

> One-step migration of subgraphs from The Graph decentralized network to Goldsky as a drop-in replacement.

Goldsky provides a one-step migration for your subgraphs on TheGraph's decentralized network. This is a **drop-in replacement** with the following benefits:

* The same subgraph API that your apps already use, for a zero-downtime migration
* A load-balanced network of third-party and on-prem RPC nodes to improve performance and reliability
* Tagging and versioning to hotswap subgraph versions behind a stable endpoint, with no frontend changes
* Alerts and auto-recovery in case of subgraph data consistency issues due to corruption from re-orgs or other issues
* 24/7 monitoring of your subgraphs, with on-call engineering support to help troubleshoot any issues

## Migrate subgraphs to Goldsky

> [accordion] Install Goldsky's CLI and log in
>
> 1. Install the Goldsky CLI:
>
>    **For macOS/Linux:**
>
>    ```shell theme={"dark"}
>    curl https://goldsky.com | sh
>    ```
>
>    **For Windows:**
>
>    ```shell theme={"dark"}
>    npm install -g @goldskycom/cli
>    ```
>
>    > [!NOTE]
>    >
>    > Windows users need to have Node.js and npm installed first. Download from [nodejs.org](https://nodejs.org) if not already installed.
> 2. Log into your Project by running:
>    ```shell theme={"dark"}
>    goldsky login
>    ```
>    This opens your browser to sign in (Google, GitHub, SSO, or email). Once you authenticate, the CLI is logged in automatically — there's no API key to copy or paste.
>    \[!NOTE] On a headless or remote machine (or in CI), create an API key on your [Project Settings](https://app.goldsky.com/dashboard/settings) page and pass it directly with `goldsky login --token <API_KEY>`. Use `goldsky login --no-browser` to print the login URL instead of opening a browser.
> 3. Now that you are logged in, run `goldsky` to get started:
>    ```shell theme={"dark"}
>    goldsky
>    ```

Use the following command to migrate your subgraph to Goldsky via its IPFS hash (visible on The Graph's Explorer page for the specified subgraph):

```bash theme={"dark"}
goldsky subgraph deploy your-subgraph-name/your-version --from-ipfs-hash <your-subgraph-ipfs-hash>
```

You can also get this IPFS deployment hash by querying any subgraph GraphQL endpoint with the following query:

```GraphQL theme={"dark"}
query {
  _meta {
    deployment
  }
}
```

## Monitor indexing progress

Once you started the migration with the above command, you can monitor your subgraph's indexing status with:

```bash theme={"dark"}
goldsky subgraph list
```

Alternatively, navigate to [app.goldsky.com](https://app.goldsky.com) to see your subgraphs, their indexing progress, and more.


## Related topics

- [Pricing: plans, metering, and product costs](https://docs.goldsky.com/pricing/summary.md)
- [Index onchain data with Subgraphs](https://docs.goldsky.com/subgraphs/introduction.md)
- [Agent Skills](https://docs.goldsky.com/ai-skills.md)
- [Deploy a subgraph](https://docs.goldsky.com/subgraphs/deploying-subgraphs.md)
- [GraphQL Endpoints](https://docs.goldsky.com/subgraphs/graphql-endpoints.md)
