# Subgraph Local Setup

{% hint style="warning" %}
**ALERT:** In most cases, you don't need to set up a local subgraph - everything is ready to use on Testnet! If you have advanced needs, we recommend contacting our team.&#x20;
{% endhint %}

## Requirements

[The Graph CLI](https://thegraph.com/en/). Installation instructions found [here](https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-studio/#installing-graph-cli).

[Docker](https://www.docker.com/). Installation instructions found [here](https://docs.docker.com/get-docker/).

## Instructions

### 1. Clone Repository from GitHub

```bash
git clone https://github.com/TalentLayer/talentlayer-id-subgraph
```

### 2. Navigate to Folder

```bash
cd talentlayer-id-subgraph
```

### 3. Start Subgraph Node

{% hint style="info" %}
Make sure Docker is running.
{% endhint %}

```bash
sh run-graph-node.sh
```

### 4. Deploy Subgraph To Node

```bash
make regenerate
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.talentlayer.org/open-source-contribution/subgraph-local-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
