Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Tevm CLI

The Tevm CLI exposes rc.151 node actions, contract tools, state controls, and Solidity compilation as shell commands. Reach for it when a one-off command or script is more direct than creating a JavaScript client.

Install and create a local session

npm install --global @tevm/cli@1.0.0-rc.151
tevm --version
tevm session docs --local --json
1.0.0-rc.151
{
  "ok": true,
  "command": "session",
  "result": {
    "version": 1,
    "name": "docs"
  },
  "session": "docs"
}

A named session reloads and persists local state between commands. Use --run to skip the interactive editor and --json for the stable { ok, command, result, session } envelope.

Global options

FlagEnvironmentEffect
--json, --no-jsonTEVM_JSONSelect stable JSON or human output.
--session <name>TEVM_SESSIONLoad and persist a named local or forked state file.
--run, -rTEVM_RUNExecute directly instead of opening the parameter editor.
--rpc <url>TEVM_RPCFork or query the selected JSON-RPC endpoint.

Command reference

CommandPurpose
tevm callcall command
tevm compilecompile command
tevm contractcontract command
tevm action create-access-listcreateAccessList command
tevm create-block-filtercreateBlockFilter command
tevm create-contract-event-filtercreateContractEventFilter command
tevm create-event-filtercreateEventFilter command
tevm deploydeploy command
tevm dump-statedumpState command
tevm estimate-fees-per-gasestimateFeesPerGas command
tevm estimate-gasestimateGas command
tevm get-accountgetAccount command
tevm action get-balancegetBalance command
tevm get-blockgetBlock command
tevm get-block-numbergetBlockNumber command
tevm get-bytecodegetBytecode command
tevm get-chain-idgetChainId command
tevm get-ens-addressgetEnsAddress command
tevm get-ens-namegetEnsName command
tevm get-ens-textgetEnsText command
tevm get-gas-pricegetGasPrice command
tevm get-storage-atgetStorageAt command
tevm get-transactiongetTransaction command
tevm load-stateloadState command
tevm minemine command
tevm multicallmulticall command
tevm read-contractreadContract command
tevm action send-raw-transactionsendRawTransaction command
tevm serveserve command
tevm set-accountsetAccount command
tevm set-codesetCode command
tevm set-noncesetNonce command
tevm set-storage-atsetStorageAt command
tevm action simulate-callssimulateCalls command

The rc.151 create, generate, and tsc entry points are deliberately absent because their advertised non-interactive examples fail in this release. Their exact failures and disposition are recorded in the documentation ledger.

Neighbours

JSON-RPC · Actions · Contract tools · State management