Install Hydra
Prerequisites
Both Hydra-CLI and the generated project files have dependencies that require Node v10.16 or higher
npmand (optional, but recommended)npxHydra stores the substrate data in an external PostgresSQL 12 instance. The scaffolding tool provides a convenient shortcut for running the database instance from a Docker image. In this case the standard docker environment (
dockeranddocker-compose) should be available.(Optional) Docker engine. The scaffolding tool provides targets for building Docker images for external deployment.
Installation
The npm repository and thehydra-cliversion will likely change in the near future. In such a case simply replace @dzlzv/hydra-cliwith<npm_repo>/hydra-cli@<version> in the instructions below ``
Global installation:
npm install -g @dzlzv/hydra-cliThe path to hydra-cli binaries will be added to the system-wide $PATH.
Local installation:
npm install @dzlzv/hydra-cliThe binaries will be installed to the local .bin folder. You can execute hydra-cli commands by adding the.binfolder within your local node_modules to $PATH.
Isolated set-up:
Execute hydra-cli commands directly by typing
npx @dzlzv/hydra-cli <command>This provides an isolated way to execute hydra-cli commands.
Run hydra-cli --version to check your installation
Last updated
Was this helpful?