Files
reth/book/cli/drop-stage.md
Georgios Konstantopoulos 10d0305b5e docs: add cli reference (#2589)
2023-05-05 18:46:39 -07:00

1.8 KiB

reth drop-stage

$ reth drop-stage --help
Drops a stage's tables from the database

Usage: reth drop-stage [OPTIONS] <STAGE>

Arguments:
  <STAGE>
          [possible values: headers, bodies, senders, execution, hashing, merkle, tx-lookup, history]

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]

      --db <PATH>
          The path to the database folder. If not specified, it will be set in the data dir for the
          chain being used.

      --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')

Logging:
      --log.persistent
          The flag to enable persistent logs

      --log.directory <PATH>
          The path to put log files in
          
          [default: /Users/georgios/Library/Caches/reth/logs]

      --log.journald
          Log events to journald

      --log.filter <FILTER>
          The filter to use for logs written to the log file
          
          [default: debug]

Display:
  -v, --verbosity...
          Set the minimum log level.
          
          -v      Errors
          -vv     Warnings
          -vvv    Info
          -vvvv   Debug
          -vvvvv  Traces (warning: very verbose!)

  -q, --quiet
          Silence all log output