Skip to content

Anchor CLI Reference

This document provides a comprehensive reference for Anchor's command-line interface, including all available commands, subcommands, and options.

Overview

The Anchor CLI has the following structure

anchor [OPTIONS] <COMMAND>

Where <COMMAND> is one of:

  • node - Run an Anchor SSV Node
  • keysplit - Split validator keys into shares
  • keygen - Generate RSA keys for operator identification

Global Options

OptionDescriptionDefault
-d, --data-dir <DIR>Data directory for node files~/.anchor/{network}
-t, --testnet-dir <DIR>Directory containing testnet specsNone
--network <NETWORK>Network to use (mainnet, holesky, hoodi)mainnet
--debug-level <DEBUG_LEVEL>Verbosity level for terminal logsINFO
-h, --helpDisplay help informationUnset
-V, --versionPrint version informationUnset