The init command creates project-local scaffolding for Erst debugging workflows.
Usage
Description
This command generates:
erst.toml configuration file
.gitignore entries for local artifacts
- Directory structure for traces, snapshots, overrides, and WASM files
When run in an interactive terminal, it launches a setup wizard to configure the preferred RPC URL and network passphrase.
Examples
Flags
Overwrite existing configuration files
Network to configure: public, testnet, futurenet, or standalone
Custom network passphrase
Run interactive setup wizard (auto-detects terminal)Alias: -i
Interactive wizard
When run in an interactive terminal, erst init launches a setup wizard that guides you through:
Select network
Choose from public, testnet, futurenet, or standalone
Configure RPC URL
Enter custom RPC endpoint or use network defaults
Set network passphrase
Optionally specify custom network passphrase
Confirm settings
Review and confirm configuration before creating files
Generated structure
After running erst init, your project will contain:
.
├── erst.toml # Main configuration file
├── .gitignore # Updated with erst artifacts
└── .erst/
├── traces/ # Saved execution traces
├── snapshots/ # Ledger state snapshots
├── overrides/ # Custom state overrides
└── wasm/ # Local contract WASM files
Configuration file
The generated erst.toml includes:
# Network configuration
network = "testnet"
rpc_url = "https://soroban-testnet.stellar.org"
# Simulator settings
[simulator]
max_cpu_insns = 100000000
max_memory_bytes = 41943040
# Cache settings
[cache]
enabled = true
max_size_mb = 500
- doctor - Verify Erst environment setup
- upgrade - Simulate contract upgrades