diff --git a/book/cli/db.md b/book/cli/db.md index 1a87ad8bc..370fbdb0a 100644 --- a/book/cli/db.md +++ b/book/cli/db.md @@ -129,6 +129,42 @@ Options: Print help (see a summary with '-h') ``` +## `reth db version` + +```bash +$ reth db version --help +Lists current and local database versions + +Usage: reth db version [OPTIONS] + +Options: + --datadir + The path to the data dir for all reth files and subdirectories. + + Defaults to the OS-specific data directory: + + - Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/` + - Windows: `{FOLDERID_RoamingAppData}/reth/` + - macOS: `$HOME/Library/Application Support/reth/` + + [default: default] + + --chain + The chain this node is running. + + Possible values are either a built-in chain or the path to a chain specification file. + + Built-in chains: + - mainnet + - goerli + - sepolia + + [default: mainnet] + + -h, --help + Print help (see a summary with '-h') +``` + ## `reth db drop` ```bash