docs: describe reth db version in book (#3296)

This commit is contained in:
Léo Vincent
2023-06-21 11:33:52 +02:00
committed by GitHub
parent b578718eb8
commit 6c17193146

View File

@ -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 <DATA_DIR>
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 <CHAIN_OR_PATH>
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