Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit 685dcb7

Browse files
author
Bloxster
committed
updated with more info
1 parent 80e0360 commit 685dcb7

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

src/basic/yaml.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# YAML/TOML Config
1+
# Using TOML or YAML Config Files
2+
3+
You can configure Erigon using a YAML or TOML configuration file by specifying its path with the `--config` flag.
4+
5+
> Note: flags specified in the configuration file can be overridden by directly setting them in the Erigon command line.
6+
7+
Both in YAML and TOML files boolean operators (`false`, `true`) and strings without spaces can be specified without quotes, while strings with spaces must be included in `""` or `''` quotes.
8+
9+
## YAML
10+
11+
Use the `--config` flag to point at the YAML configuration file.
12+
13+
```bash
14+
./build/bin/erigon --config ./config.yaml --chain=holesky
15+
```
16+
17+
Example of setting up a YAML config file:
18+
19+
```yaml
20+
datadir : 'your datadir'
21+
chain : "mainnet"
22+
http : true
23+
http.api : ["eth","debug","net"]
24+
```
25+
26+
In this case the `--chain` flag in the command line will override the value in the YAML file and Erigon will run on the Holesky testnet.
27+
28+
## TOML
29+
30+
```bash
31+
./build/bin/erigon --config ./config.toml
32+
```
33+
34+
Example of setting up TOML config file:
35+
36+
```toml
37+
datadir = 'your datadir'
38+
chain = "mainnet"
39+
http = true
40+
"http.api" = ["eth","debug","net"]
41+
```
42+

0 commit comments

Comments
 (0)