mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Create CLI documentation with a Rust script (instead of Python) + style improvement (#10680)
This commit is contained in:
2
book/cli/reth/db/checksum.md
vendored
2
book/cli/reth/db/checksum.md
vendored
@ -4,6 +4,8 @@ Calculates the content checksum of a table
|
||||
|
||||
```bash
|
||||
$ reth db checksum --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db checksum [OPTIONS] <TABLE>
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/clear.md
vendored
2
book/cli/reth/db/clear.md
vendored
@ -4,6 +4,8 @@ Deletes all table entries
|
||||
|
||||
```bash
|
||||
$ reth db clear --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db clear [OPTIONS] <COMMAND>
|
||||
|
||||
Commands:
|
||||
|
||||
2
book/cli/reth/db/clear/mdbx.md
vendored
2
book/cli/reth/db/clear/mdbx.md
vendored
@ -4,6 +4,8 @@ Deletes all database table entries
|
||||
|
||||
```bash
|
||||
$ reth db clear mdbx --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db clear mdbx [OPTIONS] <TABLE>
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/clear/static-file.md
vendored
2
book/cli/reth/db/clear/static-file.md
vendored
@ -4,6 +4,8 @@ Deletes all static file segment entries
|
||||
|
||||
```bash
|
||||
$ reth db clear static-file --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db clear static-file [OPTIONS] <SEGMENT>
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/diff.md
vendored
2
book/cli/reth/db/diff.md
vendored
@ -4,6 +4,8 @@ Create a diff between two database tables or two entire databases
|
||||
|
||||
```bash
|
||||
$ reth db diff --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db diff [OPTIONS] --secondary-datadir <SECONDARY_DATADIR> --output <OUTPUT>
|
||||
|
||||
Options:
|
||||
|
||||
2
book/cli/reth/db/drop.md
vendored
2
book/cli/reth/db/drop.md
vendored
@ -4,6 +4,8 @@ Deletes all database entries
|
||||
|
||||
```bash
|
||||
$ reth db drop --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db drop [OPTIONS]
|
||||
|
||||
Options:
|
||||
|
||||
2
book/cli/reth/db/get.md
vendored
2
book/cli/reth/db/get.md
vendored
@ -4,6 +4,8 @@ Gets the content of a table for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db get [OPTIONS] <COMMAND>
|
||||
|
||||
Commands:
|
||||
|
||||
2
book/cli/reth/db/get/mdbx.md
vendored
2
book/cli/reth/db/get/mdbx.md
vendored
@ -4,6 +4,8 @@ Gets the content of a database table for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get mdbx --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY]
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/get/static-file.md
vendored
2
book/cli/reth/db/get/static-file.md
vendored
@ -4,6 +4,8 @@ Gets the content of a static file segment for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get static-file --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db get static-file [OPTIONS] <SEGMENT> <KEY>
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/list.md
vendored
2
book/cli/reth/db/list.md
vendored
@ -4,6 +4,8 @@ Lists the contents of a table
|
||||
|
||||
```bash
|
||||
$ reth db list --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db list [OPTIONS] <TABLE>
|
||||
|
||||
Arguments:
|
||||
|
||||
2
book/cli/reth/db/path.md
vendored
2
book/cli/reth/db/path.md
vendored
@ -4,6 +4,8 @@ Returns the full database path
|
||||
|
||||
```bash
|
||||
$ reth db path --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db path [OPTIONS]
|
||||
|
||||
Options:
|
||||
|
||||
2
book/cli/reth/db/stats.md
vendored
2
book/cli/reth/db/stats.md
vendored
@ -4,6 +4,8 @@ Lists all the tables, their entry count and their size
|
||||
|
||||
```bash
|
||||
$ reth db stats --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db stats [OPTIONS]
|
||||
|
||||
Options:
|
||||
|
||||
2
book/cli/reth/db/version.md
vendored
2
book/cli/reth/db/version.md
vendored
@ -4,6 +4,8 @@ Lists current and local database versions
|
||||
|
||||
```bash
|
||||
$ reth db version --help
|
||||
```
|
||||
```txt
|
||||
Usage: reth db version [OPTIONS]
|
||||
|
||||
Options:
|
||||
|
||||
Reference in New Issue
Block a user