Hydra CLI

A cli tool for running a Hydra query node

Install

Using npx:

$ alias hydra-cli='npx @dzlzv/hydra-cli'

or install via npm:

npm install -g @dzlzv/hydra-cli

and then

$ hydra-cli [COMMAND]

Quickstart

Run

$ hydra-cli scaffold

and answer the prompts. This will generate a sample project and README with setup instructions.

Commands

hydra-cli codegen

Code generator

hydra-cli help [COMMAND]

display help for hydra-cli

See code: @oclif/plugin-help

hydra-cli plugins

list installed plugins

See code: @oclif/plugin-plugins

hydra-cli plugins:inspect PLUGIN...

displays installation properties of a plugin

See code: @oclif/plugin-plugins

hydra-cli plugins:install PLUGIN...

installs a plugin into the CLI

See code: @oclif/plugin-plugins

links a plugin into the CLI for development

See code: @oclif/plugin-plugins

hydra-cli plugins:uninstall PLUGIN...

removes a plugin from the CLI

See code: @oclif/plugin-plugins

hydra-cli plugins:update

update installed plugins

See code: @oclif/plugin-plugins

hydra-cli preview

Preview GraphQL API schema

hydra-cli scaffold

Starter kit: generates a directory layout and a sample schema file

Last updated

Was this helpful?