Skip to content

Command line reference ​

This page lists each binary that a user runs and each of its options. Options can change between versions: read Upgrading. The build puts all binaries in build/<profile>/bin, for example build/release/bin. A PGO or LTO build adds a suffix to the directory name, for example build/release-pgo-lto/bin. For advice on which values to use, see Configuration.

The usage block at the start of each section comes from the binary itself. The exception is poc-exec, which has no usage text. The build of the site takes it from cli.generated.md, which make docs-cli writes from the usage text of each binary. make check-docs fails if that file and the binaries do not agree. The usage text shows the options but not their defaults or meanings. The tables on this page give them.

All binaries read their options from the command line only. An unknown option makes the binary print its usage line and stop with exit status 2. There are two exceptions. poc-exec reads each unknown argument as a fixture path. bench-gas stops with exit status 2 only for an unknown mode.

BinaryPurpose
cinderThe node: engine mode, serve mode or shadow mode. Also writes the log filter rows of an older database.
cinder-importBuild a Cinder database from a reth database.
cinder-replaySend Engine API calls built from the beacon blocks of a consensus client.
cinder-mirrorCopy the Engine API traffic of a consensus client to Cinder and compare the statuses.
cinder-rpc-diffAsk two JSON-RPC nodes the same requests and compare the answers.
cinder-bench-nodeExecute recent blocks again from a live database and report the time of each phase.
cinder-p2p-probeCheck P2P connectivity to mainnet peers.
bench-gasMeasure the gas throughput of one core on mainnet blocks, ERC-20 transfers and synthetic loops. For contributors.
poc-execExecute mainnet blocks from witness fixtures and compare each result with reth.

cinder ​

text
cinder --engine --db DIR --jwt FILE [--authrpc-addr A] [--authrpc-port P] [--authrpc-max-connections N] [--threads N]
         [--persist-depth K] [--backfill-rpc URL] [--p2p] [--p2p-peers N] [--p2p-inbound N] [--p2p-port P] [--peer ENODE]... [--no-warm] [--no-exec-iso]
         [--http] [--http-addr A] [--http-port P] [--rpc-gascap G] [--rpc-txfeecap ETH] [--builder-gaslimit G] [--builder-extradata S] [--cache-mb N]
         [--rpc-max-tracing-requests N] [--rpc-max-witness-requests N] [--rpc-js-memory-mb M] [--rpc-max-connections N] [--amsterdam-time T]
         [--http-api L] [--ws-api L] [--rpc-timeout D] [--http-disable-compression] [--rpc-filters-per-client N]
         [--rpc-max-log-subscriptions N]
cinder --serve --db DIR [--http-addr A] [--http-port P] [--rpc-gascap G] [--rpc-max-tracing-requests N] [--rpc-max-witness-requests N] [--rpc-js-memory-mb M]
         [--rpc-max-connections N] [--http-api L] [--ws-api L] [--rpc-timeout D] [--http-disable-compression]
         [--rpc-filters-per-client N] [--rpc-max-log-subscriptions N]
cinder --shadow --db DIR [--rpc URL] [--threads N] [--confirm K] [--blocks N] [--receipts] [--amsterdam-time T]
cinder --build-log-filters --db DIR   (the log filter rows of an older database; a running
         node's writer waits while each batch of 1 000 rows commits)

Give exactly one of --engine, --serve, --shadow and --build-log-filters. All modes require --db. Each mode accepts the options of the other modes and ignores them. The exception is --amsterdam-time: with --serve or --build-log-filters, the node prints a message and stops with exit status 2. Ctrl-C or SIGTERM stops the node.

Engine mode ​

Engine mode serves the Engine API to a consensus client. The node keeps recent blocks in memory and writes canonical blocks to the database with a writer thread. At stop, it writes the canonical blocks that are still in memory.

OptionDefaultMeaning
--engineSelect engine mode.
--db DIRrequiredThe Cinder database directory.
--jwt FILErequiredThe JWT secret file, in hex.
--authrpc-addr A127.0.0.1The address of the Engine API.
--authrpc-port P8552The port of the Engine API.
--authrpc-max-connections N64The open Engine API connections at a time. A consensus client uses one or two.
--threads Nmin(8, CPUs - 2), at least 1The size of the worker pool and of the prewarm pool. With 1, no pool and no block prewarm.
--cache-mb N1024The cross-block cache of accounts, slots and trie nodes, in MB. 0 disables it.
--persist-depth K0Canonical blocks kept in memory below the head.
--backfill-rpc URLnoneGet missing blocks from the JSON-RPC API of a reth node. The node ignores this option with --p2p. Read Answers from other nodes.
--p2poffJoin the Ethereum network: get missing blocks, serve peers, receive transactions.
--p2p-port P30303The P2P listening port, TCP and UDP.
--p2p-peers N100The maximum number of outbound peers (as reth). The node has at most 160 peers in total, inbound and outbound.
--p2p-inbound N30The maximum number of inbound peers (as reth).
--peer ENODEnoneA fixed peer, up to 16 (with more, the node prints the usage and stops). Turns on --p2p. With this option, the node dials only the fixed peers and does not crawl. Inbound peers continue.
--no-warmoffDo not prewarm the state of gossiped transactions between blocks. The prewarm runs only with --p2p.
--no-exec-isooffDo not keep a core for the executing thread. By default, with 4 or more usable CPUs, the node executes blocks on the first CPU of the process. The SMT siblings of that CPU stay free, and all other threads run on the remaining CPUs. See Configuration.
--httpoffServe the JSON-RPC API, HTTP and WebSocket on one port. No authentication.
--http-addr A127.0.0.1The JSON-RPC address. Turns on --http.
--http-port P8547The JSON-RPC port. Turns on --http.
--rpc-gascap G50000000The gas cap for calls. 0 keeps the default.
--rpc-txfeecap ETH1.0The maximum fee in ether of a transaction sent over JSON-RPC. 0 means no cap.
--rpc-max-tracing-requests Nthe usable CPUs less 2, at least 2The tracing requests (debug_trace*, trace_*) that run at the same time, as reth's --rpc.max-tracing-requests. The others wait, in order. --rpc.max-tracing-requests also works.
--rpc-max-witness-requests N1The debug_executionWitness requests that run at the same time. One witness can take GBs of memory and 8 threads. The others wait for a turn, at most 120 s, and get their turns in the order they came.
--rpc-js-memory-mb M1024The memory of all JavaScript tracers together, in MiB, at least 16. Each request with a JavaScript tracer reserves 256 MiB for its whole run. The others wait, within their timeout. The copies that the helper functions of a tracer make (toHex, slice, the db functions and others) count toward this memory.
--rpc-max-connections N500The open JSON-RPC connections at a time, HTTP and WebSocket together, as reth's --rpc.max-connections. At the limit, a new connection closes the connection that was idle for the longest time. If none is idle, it closes the connection whose request headers are not complete for the longest time. If there is no such connection, it gets HTTP status 429. --rpc.max-connections also works. The Engine API port has its own limit, --authrpc-max-connections. Each request also takes a reader permit of the database. See Configuration.
--http-api LISTeth,net,web3The namespaces that HTTP serves, as reth's --http.api (that spelling also works). A comma list of admin, debug, eth, net, trace, txpool, web3, rpc, reth, ots, flashbots, miner, mev, testing, or all, or none. A method of another namespace gets -32601 Method not found. See Configuration.
--ws-api LISTeth,net,web3The namespaces that WebSocket serves, as reth's --ws.api (that spelling also works). The same names as --http-api.
--rpc-timeout DnoneThe time limit of each JSON-RPC request (an HTTP body or a WebSocket message). D is seconds, or a duration such as 500ms or 2m. A request that runs longer gets -32603 request timed out. 0 means no limit. See Configuration.
--http-disable-compressionoffDo not compress HTTP answers. By default, an answer of 32 bytes or more gets gzip or deflate when the request asks for it, as in reth. WebSocket messages and the Engine API port are never compressed. --http.disable-compression also works. See Compressed answers.
--rpc-filters-per-client N256The filters of one client at most, of the 1 024 that the node keeps. 0 means no limit for one client. A client on the same host (127.0.0.0/8, ::1) has no limit. Behind a proxy on another host, set 0. reth has no filter limits. See Filters.
--rpc-max-log-subscriptions N4096The WebSocket logs subscriptions of all connections together at most. 0 means no limit. reth has no such limit.
--builder-gaslimit G60000000The gas limit that built blocks move toward.
--builder-extradata Scinder/v<version>/linuxThe extra data of built blocks.
--amsterdam-time Tnone (guard off)The Unix time in seconds of the first Amsterdam block. The node refuses blocks from this time on. Without it, the node has no Amsterdam guard. See Configuration.

With --p2p, the node keeps its P2P key in DIR/nodekey and its known nodes in DIR/p2p-nodes.

Serve mode ​

Serve mode answers the JSON-RPC API from a database that a different cinder process writes. It only reads the database. You can run more than one serve process on one database.

OptionDefaultMeaning
--serveSelect serve mode.
--db DIRrequiredThe Cinder database directory.
--http-addr A127.0.0.1The JSON-RPC address.
--http-port P8547The JSON-RPC port.
--rpc-gascap G50000000The gas cap for calls. 0 keeps the default.
--rpc-max-tracing-requests Nthe usable CPUs less 2, at least 2The tracing requests that run at the same time, as in engine mode.
--rpc-max-witness-requests N1The debug_executionWitness requests that run at the same time, as in engine mode.
--rpc-js-memory-mb M1024The memory of all JavaScript tracers together, in MiB, as in engine mode.
--rpc-max-connections N500The open connections at a time, as in engine mode.
--http-api LISTeth,net,web3The namespaces that HTTP serves, as in engine mode.
--ws-api LISTeth,net,web3The namespaces that WebSocket serves, as in engine mode.
--rpc-timeout DnoneThe time limit of each JSON-RPC request, as in engine mode.
--http-disable-compressionoffDo not compress HTTP answers, as in engine mode.
--rpc-filters-per-client N256The filters of one client at most, as in engine mode.
--rpc-max-log-subscriptions N4096The logs subscriptions of all connections at most, as in engine mode.

Shadow mode ​

Shadow mode follows a reth node over JSON-RPC. For each new block, it gets the raw block with debug_getRawBlock and executes it against the Cinder database. It checks the state root, receipts root, bloom, gas and requests hash against the header and writes the block. It stops on the first difference.

OptionDefaultMeaning
--shadowSelect shadow mode.
--db DIRrequiredThe Cinder database directory.
--rpc URLhttp://127.0.0.1:8545The JSON-RPC URL of the reth node, with the eth and debug namespaces.
--threads Nmin(8, CPUs - 2), at least 1Worker threads.
--confirm K2Blocks to stay behind the head of the reth node. A reorg deeper than K stops shadow mode.
--blocks N0Stop after N blocks. 0 means no limit.
--receiptsoffAlso compare each receipt byte for byte with debug_getRawReceipts.
--amsterdam-time Tnone (guard off)The Unix time in seconds of the first Amsterdam block. Shadow mode stops at the first block from this time on.

Each block gives one line with the execution, root and commit times. At the end, shadow mode prints the mean times per block.

Log filter rows ​

cinder --build-log-filters --db DIR writes the log filter rows of the stored blocks that have none. A log filter row holds the fingerprints of the addresses and topics of the logs of one block. eth_getLogs, eth_getFilterLogs and eth_getFilterChanges read the receipts only of the blocks whose row can match the filter. From 0.9.5 on, the node writes the row of each new block with its receipts. A database of an older version has no rows for its older blocks. The node reads such blocks as before, but a filter with few matches is slower on them.

OptionDefaultMeaning
--build-log-filtersSelect this mode.
--db DIRrequiredThe Cinder database directory.

The command goes from the first block with history to the database head and writes 1 000 rows in each write transaction. It prints the range at start and a progress line each 50 000 blocks. A node can run on the database at the same time: its writer waits while each write transaction commits. Ctrl-C stops the command after the current transaction. Run the command again to continue: it skips the blocks that have a row. The rows add about 4.9 KB per block on disk.

cinder-import ​

text
cinder-import --reth-db DIR --db OUT [--rpc URL] [--check-only] [--force] [--page-size BYTES]

cinder-import builds a Cinder database from the database of a synced reth 2.x node with the "storage v2" layout. It opens the reth database read-only. Reth can continue to run. The import writes the database head only if the state root that it computes is equal to the root in the block header.

OptionDefaultMeaning
--reth-db DIRrequiredThe db directory of the reth data directory.
--db OUTrequiredThe new Cinder database directory. It must be empty. Not required with --check-only.
--rpc URLhttp://127.0.0.1:8545The JSON-RPC URL of the same reth node. The import reads the last 256 headers and the sample accounts from it.
--check-onlyoffCompare sample accounts with the reth RPC, then stop.
--forceoffImport also if the sample check fails or the free disk space is less than the estimate.
--page-size BYTESthe OS pageThe page size of the new database.

While the import runs, it keeps a read snapshot of the reth database open. The reth database file grows during this time. The import stops if less than 64 GB of disk space stays free. --force does not change this limit.

cinder-replay ​

text
cinder-replay --engine URL --jwt FILE [--beacon URL] [--from-slot S | --back N] [--follow] [--keep-going]

cinder-replay reads beacon blocks from the REST API of a consensus client. It sends only GET requests to the consensus client. For each beacon block, it sends engine_newPayloadV4 and then engine_forkchoiceUpdatedV3 to the Engine API. The head is that block. The safe and finalized blocks are the finalized block of the beacon node. Until the replay gets to the slot of that finalized block, the tool sends zero hashes for the safe and finalized blocks. The tool skips missed slots.

OptionDefaultMeaning
--engine URLrequiredThe Engine API URL of Cinder.
--jwt FILErequiredThe JWT secret file of that Engine API.
--beacon URLhttp://127.0.0.1:5052The REST API URL of the consensus client.
--from-slot SnoneStart at slot S.
--back N8Start N slots below the beacon head. The tool uses this value if you do not give --from-slot.
--followoffAfter the last slot, wait for new beacon blocks and send them too.
--keep-goingoffContinue after an INVALID status.

The tool prints one line for each block with the newPayload status and its time, and the forkchoice status and its time. If newPayload or a beacon request fails, the tool waits and tries again. If newPayload gets the error -38005 (Unsupported fork, for example an Amsterdam block), a new try cannot pass. The tool then writes the upgrade message and stops with exit status 3. If forkchoiceUpdated fails, the tool prints error as the forkchoice status and continues. At the end, it prints the number of VALID, SYNCING and INVALID answers. The exit status is 1 if an answer was INVALID.

cinder-mirror ​

text
cinder-mirror --listen ADDR:PORT --jwt FILE --primary URL [--primary-jwt FILE] --secondary URL [--secondary-jwt FILE] [--name NAME] [--secondary ...]... [--log FILE]

cinder-mirror goes between a consensus client and its execution client (the primary). It sends each request to the primary and gives the answer of the primary to the consensus client without changes. A worker thread sends a copy of each engine_newPayload* and engine_forkchoiceUpdated* call to the secondary (Cinder). It compares the statuses and writes a DIFF line for each difference. A slow or failing secondary does not delay the consensus client.

OptionDefaultMeaning
--listen ADDR:PORT127.0.0.1:8551The address where the consensus client connects.
--jwt FILErequiredThe JWT secret that the consensus client uses.
--primary URLrequiredThe Engine API URL of the primary execution client, for example reth.
--primary-jwt FILEthe --jwt fileThe JWT secret of the primary.
--secondary URLrequiredThe Engine API URL of Cinder.
--secondary-jwt FILEthe --jwt fileThe JWT secret of Cinder.
--name NAMECinder, or Cinder1 to Cinder4The name of the secondary in the log.
--log FILEstandard outputAppend the log to this file.

You can give up to 4 --secondary options. --secondary-jwt and --name apply to the --secondary before them. Each secondary gets its own copy of the calls. A SYNCING or ACCEPTED status from the secondary does not count as a difference. The queue for the secondary holds up to 256 MB. If the queue is full, the tool drops calls and counts them. At stop, it prints the number of statuses that agreed, that differed and that failed.

cinder-rpc-diff ​

text
cinder-rpc-diff --a URL --b URL [--blocks N] [--txs-per-block K] [--calls K] [--verbose] [--dump FILE] [--sendraw] [--proofs N] [--filters N] [--traces N] [--witnesses N [--follow]] [--timeout S]

cinder-rpc-diff sends the same JSON-RPC requests to two nodes and compares the answers field by field. Usually node A is Cinder and node B is reth. The exit status is 1 if an answer is different.

Without a special mode, node A sets the range: its newest N blocks. For each block, the tool compares the block, its receipts and some transactions. It also compares logs and fee history over the range. At the head, it compares balances, nonces, code, storage, eth_call and eth_estimateGas.

OptionDefaultMeaning
--a URLrequiredThe JSON-RPC URL of node A.
--b URLrequiredThe JSON-RPC URL of node B.
--blocks N100The number of newest blocks of node A to compare.
--txs-per-block K3Transactions per block to look up by hash.
--calls K20Transactions of the head block to run with eth_call and eth_estimateGas.
--verboseoffPrint every difference. Without it, the tool prints the first 40.
--dump FILEnoneAppend each request with a difference, in full, to this file.
--sendrawoffMode: send transactions that no node can accept with eth_sendRawTransaction and compare the rejections. The tool stops if node B accepts one.
--proofs NoffMode: compare eth_getProof for N senders and recipients of a block that is the head of both nodes.
--filters NoffMode: install the same filters on both nodes and compare each poll over N blocks.
--traces NoffMode: compare debug_traceBlockByNumber of the N blocks below both heads, with every tracer of Cinder. Also compare trace_block, trace_replayBlockTransactions and trace_replayTransaction of these blocks.
--witnesses NoffMode: compare debug_executionWitness of the N blocks below both heads. The tool compares each list as a set.
--followoffWith --witnesses: each witness is of the newest block below both heads. The tool waits for the next block between two witnesses. A witness of an older block can take minutes on reth.
--timeout S60 (600 with --witnesses)The time in seconds that a node has for one answer. A request that times out is not sent again.

Give at most one mode option. If you give more than one, the tool uses the first in this order: --sendraw, --proofs, --filters, --traces, --witnesses.

A transport error names the node that it comes from (A or B).

cinder-bench-node ​

text
cinder-bench-node --db DIR [--blocks N] [--threads T] [--repeat R] [--skip K | --first NUM] [--cache-mb N] [--ab]

cinder-bench-node executes recent blocks again from a live Cinder database. It only reads the database. It gets the state before each block from the undo records. Each run must give the state root of the block. The tool reports the time of each phase. The first run of each block is the cold run.

OptionDefaultMeaning
--db DIRrequiredThe Cinder database directory.
--blocks N10The number of blocks.
--threads T8Worker threads.
--repeat R2Runs of each block.
--skip K0End K blocks below the database head.
--first NUMnoneStart at block NUM, in place of --skip.
--cache-mb N1024The cross-block cache, in MB.
--aboffCompare the streaming state root with the old path. The runs after the first one change between the two, and the order changes from block to block. The tool compares the two arms block by block and prints the parts of the root.

The blocks must be in the undo window: the last 128 blocks of the database. If the node that writes the database commits a block during a run, that run fails with the retry error -10. The tool then skips the other runs of that block and continues with the next block. The exit status is 1 if a run fails or gives a different state root.

cinder-p2p-probe ​

text
cinder-p2p-probe (--enode ENODE | --discover SECONDS) [--count N] [--idle SECONDS]

cinder-p2p-probe connects to one Ethereum node over RLPx and exchanges Hello and Status messages. It then downloads the latest headers and bodies. It checks the hash chain of the headers and the transactions and withdrawals roots of the bodies.

OptionDefaultMeaning
--enode ENODEnoneProbe this node.
--discover SECONDSnoneCrawl discv4 from the mainnet bootnodes for this time, then read the mainnet DNS node list with the same time limit. Nodes of our fork (from their ENR) come first. Then probe the found nodes one by one until one passes.
--count N32The number of headers and bodies to download, from 1 to 1024.
--idle S0After Status, listen for S seconds and print each message. The probe then does not download headers or bodies.

Give --enode or --discover. The exit status is 0 if a probe passes. The usage text of the tool does not show --idle, but the tool accepts it.

bench-gas ​

text
bench-gas mainnet [--runs N] [--cold] [--profile FILE] [--senders-known] DIR_OR_FILE...
bench-gas erc20 [--runs N] [--transfers N]
bench-gas synth [--runs N] [--iters N] [--only NAME] [--hex]

bench-gas measures the gas throughput of the execution code on one core. It has no database: the state is in memory. Each number is the minimum over the runs of the CPU time of the thread. The tool is for contributors who compare two builds. The method is in docs/results/2026-10-gas-bench.md of the client repository. make bench-gas PROFILE=release runs the synthetic loops and the ERC-20 transfers at nice 19 on one core. With MAINNET_DIR=DIR, it also runs the mainnet blocks. BENCH_RUNS sets the number of runs and BENCH_CPU the core.

Mode or optionDefaultMeaning
mainnet DIR_OR_FILE...Execute mainnet blocks from .ecfx fixtures. The state comes from the execution witness of each block.
erc20ERC-20 transfers, each in a transaction of its own.
synthSynthetic loops for each opcode class.
--runs N3Timed runs after one warm-up run.
--coldoffmainnet: run each block one time, in order, in a new process. The caches that live across blocks start empty. The tool gives CPU time and wall time.
--senders-knownoffmainnet: recover the senders before the timer starts. The recovery time is on a line of its own.
--profile FILEnonemainnet: write samples of the instruction address to FILE, for tools/bench/profile.py.
--transfers N100000erc20: the number of transfers.
--iters N300000synth: the iterations of each loop.
--only NAMEallsynth: run only the loops whose name contains NAME, or the loops of the class NAME.
--hexoffsynth: print the code of each loop in hex, as input for another EVM. The tool then does not time the loops.

make test runs short runs of synth and erc20 as a check. bench-gas is in the releases from 0.9.7.

poc-exec ​

text
poc-exec [--threads N] [--bench N] [--wall] [--quiet] [--rewitness [--canonical]] FILE_OR_DIR...

poc-exec executes mainnet blocks from .ecfx fixtures without a database. Each fixture holds a block and its execution witness from reth. The tool compares each result with reth. The exit status is 1 if a block is different or fails. The PGO build trains its profile with this tool.

OptionDefaultMeaning
FILE_OR_DIROne or more fixture files or directories of fixtures.
--threads N1Worker threads.
--bench N0Time each block: one warm-up run, then the median of N timed runs (at most 64).
--walloffMeasure wall-clock time. The default is the CPU time of the process.
--quietoffDo not print the OK line of each block. The tool still prints the lines of blocks that are different or fail.
--rewitnessoffAlso make Cinder's own witness of each block (as debug_executionWitness), with the witness of reth as the state of the parent. The tool compares the two witnesses by content and runs the block on Cinder's witness alone.
--canonicaloffWith --rewitness: make the witness in canonical mode. The fixtures hold the legacy witness of reth, so the tool checks only the run on Cinder's witness.

Give the options before the files: the tool reads its arguments in order.

To make fixtures, use the fetcher in the source tree with a reth node that serves the debug namespace:

bash
python3 tools/fetch/fetch.py --rpc http://127.0.0.1:8545 --follow 100 --out $DATA/mainnet

Answers from other nodes ​

cinder --backfill-rpc, cinder-import --rpc, cinder-mirror, cinder-replay and cinder-rpc-diff accept an HTTP answer body of at most 256 MiB from another node. The limit applies to chunked and to Content-Length bodies. A larger answer fails with the error response too large. The JSON-RPC servers of Cinder and reth send at most 160 MiB by default. 0.9.6 and earlier had a limit of 1 GiB for Content-Length bodies only (#316).

Environment variables ​

VariableUsed byMeaning
CINDER_KZG_SETUPthe binaries that execute blocksThe path of a KZG trusted setup file to use. If it is not set, the binaries use the setup in the binary.
CINDER_WITNESS_DEBUGpoc-execIf set, report which witness lookup failed.
CINDER_SROOT, CINDER_SROOT_CHECK, CINDER_SROOT_IO, CINDER_SROOT_TIMEOUT_MScinder --engine, cinder-bench-node, the EEST runnersThe switches of the streaming state root. See Configuration.
CINDER_READ_AHEADcinder --engine, cinder-bench-node, the EEST runners0 turns off the read-ahead of slot runs during block execution. See Configuration.
CINDER_JS_WORKER_STDERRcinder (JSON-RPC)1: the JavaScript tracers' workers write to the node's standard error (debugging). See Configuration.