This guide covers the Hydra-related commands exposed by adaup.
The cardano hydra command group helps you bootstrap local Hydra node credentials, generate runnable node scripts, launch nodes, inspect them with hydra-tui, and reset or prune local cluster data.
The current default Hydra version in adaup is 2.2.0.
adaup resolves Hydra binaries in this order:
ADAUP_HYDRA_NODE_PATHandADAUP_HYDRA_TUI_PATH- Existing
hydra-nodeandhydra-tuiinPATH ADAUP_HYDRA_DOWNLOAD_URL- GitHub Actions artifacts from
ADAUP_HYDRA_ACTIONS_RUN_URL
For the bundled 2.2.0 default, adaup uses the successful release run 27418396480 when it needs a GitHub Actions artifact source.
When adaup uses a GitHub Actions artifact source, it resolves the artifact from the public run metadata and downloads it through a public nightly.link URL.
Generate the folders and credentials for a Hydra cluster:
cardano hydra bootstrap preview 2This creates hydra-{n} directories under $HOME/.cardano/<network>/.
You can also request a specific Hydra release:
cardano hydra bootstrap preview 2 --version 2.2.0Start the first node:
cardano hydra node preview 0Start the second node in another terminal:
cardano hydra node preview 1Each node gets a generated run script at:
~/.cardano/<network>/hydra-<index>/run.sh
You can also override the Hydra version when starting a node:
cardano hydra node preview 0 --version 2.2.0To interact with a running node through the terminal UI:
cardano hydra tui 0Stop the nodes, then reset their local data and refresh protocol parameters:
cardano hydra reset previewTo remove all local Hydra directories for a network:
cardano hydra prune previewAfter pruning, run bootstrap again before starting nodes.
- For official Hydra-supported networks such as
mainnet,preprod, andpreview,adaupnow generates node commands using Hydra's--networkflag. - If an older generated
run.shis detected,adaupregenerates it so it matches the current Hydra invocation format.