CLI Reference¶
erpc.py includes the erpc-py command-line tool for managing eRPC instances.
Installation¶
The CLI is installed automatically with the package:
Commands¶
erpc-py version¶
Show erpc.py and eRPC binary versions:
erpc-py install¶
Install the eRPC binary from GitHub releases:
Options:
| Flag | Description | Default |
|---|---|---|
--version |
eRPC version to install | Latest |
--path |
Installation directory | /usr/local/bin |
--checksum |
SHA256 checksum for verification | None |
erpc-py config generate¶
Generate an erpc.yaml configuration file:
erpc-py config generate \
--chains 1,137 \
--upstreams https://eth.llamarpc.com,https://polygon-rpc.com \
--output erpc.yaml
Options:
| Flag | Description | Default |
|---|---|---|
--chains |
Comma-separated chain IDs | Required |
--upstreams |
Comma-separated RPC URLs | Required |
--output |
Output file path | erpc.yaml |
--project-id |
Project identifier | py-erpc |
--port |
Server port | 4000 |
--metrics-port |
Metrics port | 4001 |
--log-level |
Log level | warn |
erpc-py start¶
Start an eRPC instance:
Options:
| Flag | Description | Default |
|---|---|---|
--config |
Path to erpc.yaml |
erpc.yaml |
--binary |
Path to eRPC binary | Auto-detect |
erpc-py stop¶
Stop a running eRPC instance:
erpc-py health¶
Check eRPC health status:
Options:
| Flag | Description | Default |
|---|---|---|
--url |
Health endpoint URL | http://127.0.0.1:4000/ |
erpc-py metrics¶
Display Prometheus metrics:
Options:
| Flag | Description | Default |
|---|---|---|
--url |
Metrics endpoint URL | http://127.0.0.1:4001/metrics |