-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for config file #7234
Comments
We already support this via eg. network: mainnet
rest: true
rest.address: 0.0.0.0
rest.port: 9596
# ... We don't support nesting as we just handle it with the same parser we use for CLI args, although this could probably be supported somehow to achieve a format like in your example (with nested objects). |
Fantastic! I don't need nesting, that was just an example. Can you please update the documentation? I always check there and existing GitHub issues before opening an issue. |
Yeah, it's a bit tricky with that one because it works differently than other CLI flags, and the documentation for those is generated from the code. I can look into how we can display that on the docs page. |
Thank you! I would appreciate it. I think there are a couple of more of those that are not in the docs (devnet config values). I'm working on node setup, would be good if those are documented as well, so the users know what they stand for. |
There are a lot of flags which are intentionally hidden, mostly because we might change their behavior in the future or they are too technical, can be easily misconfigured or just not meant to be used by normal users (ie. just used for testing by us). If you have some specific flags in mind we cna unhide them on a case by case basis. |
I have opened a PR for this #7271, feel free to chime in if there are additional flags that might be useful to display |
Problem description
Lodestar lacks support for a dedicated config file, unlike other Ethereum clients. Currently, configurations must be passed through command line flags or wrapper scripts.
Currently, users need to specify multiple CLI arguments when running Lodestar, which can become unwieldy and difficult to maintain. Configuration files would:
Solution description
Allow users to specify a config file path using the
--config-file
flag:The config files would support all existing CLI options in their YAML/TOML representation. Example:
Technical Details
YAML/TOML are preferred due to their human-readable format and widespread use in configuration management.
Additional context
I maintain eth-nodes (https://github.com/eth-pkg/eth-nodes), a project that enables native installation of Ethereum clients (execution, consensus, and validator) via Debian packages, eliminating the need for Docker containers. While the project currently generates configuration files for Lodestar options through wrapper scripts, I'm seeking to implement native configuration file support.
The text was updated successfully, but these errors were encountered: