Skip to main content
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

boolean
default:"false"
Overwrite existing configuration files
string
default:"public"
Network to configure: public, testnet, futurenet, or standalone
string
Custom RPC URL to use
string
Custom network passphrase
boolean
default:"true"
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:
1

Select network

Choose from public, testnet, futurenet, or standalone
2

Configure RPC URL

Enter custom RPC endpoint or use network defaults
3

Set network passphrase

Optionally specify custom network passphrase
4

Confirm settings

Review and confirm configuration before creating files

Generated structure

After running erst init, your project will contain:

Configuration file

The generated erst.toml includes:
  • doctor - Verify Erst environment setup
  • upgrade - Simulate contract upgrades