CLI tool to interact with the Celestia DHT and monitor the PRs for archival
and full
nodes.
There are two options to build or install the cnames tool:
- Simple way of installing it:
make install
cnames lookup
- Simple way of building it:
make build
./build/cnames lookup
Root options:
NAME:
cnames - A Celestia's DHT namespace scrapper
USAGE:
cnames [global options] [command [command options]]
COMMANDS:
lookup TODO
crawl estimates the uplink BW from the active list of nodes in the network
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
Logging Configuration:
--log.format value Sets the format to output the log statements in: text, json (default: "text") [$CNAMES_LOG_FORMAT]
--log.level value Sets an explicity logging level: debug, info, warn, error. Takes precedence over the verbose flag. (default: "info") [$CNAMES_LOG_LEVEL]
Subcommands:
lookup
: makes a DHT lookup for the given namespacecrawl
: asks each node in the network for the PRs they have asociated with the namespace
NAME:
cnames lookup/crawl - makes a DHT lookup for the given namespace
USAGE:
cnames lookup/crawl [command [command options]]
OPTIONS:
--network value celestia network where the cname will run (default: "celestia") [$CNAMES_NETWORK]
--is-custom is the namespace custom? (default: false) [$CNAMES_IS_CUSTOM]
--namespace value DHT key or namespace the will be searched (default: "/full/v0.1.0") [$CNAMES_NAMESPACE]
--help, -h show help
GLOBAL OPTIONS:
--log.level value Sets an explicity logging level: debug, info, warn, error. Takes precedence over the verbose flag. (default: "info") [$CNAMES_LOG_LEVEL]
--log.format value Sets the format to output the log statements in: text, json (default: "text") [$CNAMES_LOG_FORMAT]