subsquid
Search…
Install Hydra

Prerequisites

    Unix-based operating system (Mac or Linux), you may experience issues on Windows.
    Node 14.x
    Hydra stores the substrate data in an external PostgresSQL 12 instance. The scaffolding tool provides a convenient setup for running the database instance from a Docker image. In this case the standard docker environment (docker and docker-compose) should be available.

Installation

The best way to start is to clone the template repo and proceed from there. Otherwise, the scaffold command is also available with installation steps outlined below.
Use @subsquid/[email protected] for the most recent development version
Global installation:
1
npm install -g @subsquid/hydra-cli
Copied!
The path to hydra-cli binaries will be added to the system-wide $PATH.
Isolated set-up:
Execute hydra-cli commands directly by typing
1
npx @subsquid/hydra-cli <command>
Copied!
This provides an isolated way to execute hydra-cli commands.
Run hydra-cli --version to check your installation
It may be convenient to create an alias for quick access to hydra-cli e.g.
1
alias hydra-cli='npx @subsquid/hydra-cli'
Copied!
Or on Windows you can use:
1
doskey hydra-cli=npx @subsquid/hydra-cli
Copied!
Last modified 7d ago
Copy link