CLI overview
This page describes @erc7730/cli@0.3.8. The SDK is versioned independently.
npm install -D @erc7730/clierc7730 --helpRequires Node 18+. npm also installs @erc7730/sdk and viem (the SDK runtime imports viem; the SDK lists that peer as optional, so the CLI depends on it directly).
CLI-only package
Section titled “CLI-only package”The published public surface is the erc7730 binary. The manifest does not set main, types, or exports. Do not import this package from application code.
Commands
Section titled “Commands”erc7730 generate --chain-id 1 --address 0x... --abi ./abi.json --owner "My Protocol"erc7730 lint ./calldata-Foo.jsonerc7730 lint --tests ./testsv2/erc7730 preview --data 0x... --to 0x... --chain-id 1 --pin <sha>erc7730 scaffold --chain-id 1 --address 0x... --abi ./abi.json --owner "My Protocol" --out ./drafterc7730 diff ./calldata-Foo.json --against official --pin <sha>erc7730 registry update --pin <sha>Generated drafts are never confidence: "high". The CLI does not open PRs against the official registry — copy a scaffold into a fork of ethereum/clear-signing-erc7730-registry.
- Command reference — generated from
help.ts - Walkthrough — generate → lint → preview → scaffold
- Protocol CI — ABI vs descriptor stale check