Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Add the ability to run polkadot using a config file #3659

@s3krit

Description

@s3krit

The polkadot binary currently supports 84 unique command-line flags for controlling its operation (some mutually exclusive, some not). For users with larger lists of flags to invoke the binary with, this could be better served by allowing them to run using a config-file. We could ship the binary with a default config file which could fairly verbosely explain (via comments) the impact and intent, and examples of these options, without needing a 381-line output of polkadot --help.

Questions:

  • Should CLI flags be moved to a config file format, or simply copied and flags take precedence over config file directives
  • What format should we use for the configuration file? (iirc we use clap for the flags, so maybe that already supports some method of transposing these to a config file format)
  • If we move certain directions to being controlled by a config file rather than CLI flags, this would constitute a breaking change for a lot of node operators, so how should we handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.U3-nice_to_haveIssue is worth doing eventually.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions