- From source code
- Migrating from The Graph or any other subgraph host
- Via instant, no-code subgraphs
Install Goldsky's CLI and log in
Install Goldsky's CLI and log in
-
Install the Goldsky CLI:
For macOS/Linux:
For Windows:Windows users need to have Node.js and npm installed first. Download from nodejs.org if not already installed.
-
Log into your Project by running:
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.On a headless or remote machine (or in CI), create an API key on your Project Settings page and pass it directly with
goldsky login --token <API_KEY>. Usegoldsky login --no-browserto print the login URL instead of opening a browser. -
Now that you are logged in, run
goldskyto get started:
From source code
If you’ve developed your own subgraph, you can deploy it from the source. In our example we’ll work off of a clone of the POAP subgraph. First we need to clone the Git repo.README.md or look at the package.json for hints as to the correct build commands. Usually it’s a two step process, but since POAP is deployed on multiple chains, there’s one extra step at the start to generate the correct data from templates.
From The Graph or another host
For a detailed walkthrough, follow our dedicated
guide.
Via instant, low-code subgraphs
For a detailed walkthrough, follow our dedicated
guide.