ethereum-optimism / ethereum-optimism/optimism

op-reth: Provide all command-line args as environment variables

Open
#21,719 0 comments 0 reactions 0 assignees Claimed by @einar-oplabs View on GitHub
M-needs-triage
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 15h
Merged PRs (30d)
145

Description

We should make sure that all command-line options can also be set using environment variables.

This improves dev-ops ergonomics and avoids the need for ad-hoc scripts to translate environment variables to command-line options.

Based on this comments https://github.com/ethereum-optimism/optimism/pull/21551#discussion_r3543956313 and previous discussions with @yashvardhan-kukreja and @geoknee.

Contributor guide

Open the contributing guide

Research direction

Start by locating op-reth's command-line parsing entry point and inventory every option. Then trace how configuration is loaded and determine the environment-variable naming convention. Done means all command-line options have equivalent environment-variable inputs, with coverage confirming both paths behave consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.