basectl
basectl configures and inspects Base nodes across mainnet, Sepolia, devnet, and custom config targets. It ships with the workspace and runs via cargo or the just basectl recipe.
# Build and run with a configuration targetcargo run -p basectl --release -- -c <config>Supported configurations:
| Config | Network |
|---|---|
mainnet | Base Mainnet |
sepolia | Base Sepolia Testnet |
devnet | Local Development Network |
<path> | Custom configuration file |
Examples
Section titled “Examples”# Mainnet configurationjust basectl mainnet
# Sepolia testnetjust basectl sepolia
# Local devnetjust basectl devnetArchitecture
Section titled “Architecture”basectl is split into two crates:
basectl-cli(crates/infra/basectl) — The library with configuration logicbasectl(bin/basectl) — The binary entry point
The binary depends on basectl-cli, clap for argument parsing, anyhow for error handling, and tokio for async runtime.