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

SSV Validator client. Maintained by Sigma Prime.

Usage: anchor [OPTIONS] <COMMAND>

Commands:
    node      Start Anchor node
    keysplit  SSV Keysplitting Tool
    keygen    RSA key generation tool. Outputs key to data directory.
    help      Print this message or the help of the given subcommand(s)

Options:
    -d, --data-dir <DIR>
               Used to specify a custom root data directory for the Anchor key
               and database. Defaults to $HOME/.anchor/{network} where network
               is the value of the `network` flag Note: Users should specify
               separate custom datadirs for different networks.

         --network <NETWORK>
               Name of the chain Anchor will validate.
               
               [default: mainnet]
               [possible values: mainnet, holesky, hoodi]

    -t, --testnet-dir <DIR>
               Path to directory containing eth2_testnet specs.

         --debug-level <DEBUG_LEVEL>
               Specifies the verbosity level used when emitting logs to the
               terminal
               
               [default: INFO]

    -h, --help
               Print help

    -V, --version
               Print version