-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
need/community-inputNeeds input from the wider communityNeeds input from the wider community
Description
When the default config is updated (e.g. protocols or bootstrap peers are added), users need to update their ~/.ipfs/config
manually.
Many programs solve the issue by only writing settings that were actually modified into the file, falling back to built-in defaults for settings that are not present when reading.
To see the full config, users are able to run ipfs config show
.
Some additonal options for storing a default config for the user to read, each one having some advantages and disadvantages:
- Write the current defaults into the file with keys like
Swarm_default
,Bootstrap_default
and ignore them when reading. - Use a file format that allows comments and write defaults as comments. (Retaining any comments added by a user while writing new defaults would involve a lot of complexity.)
- Write an additional
config.defaults
file dumping all the default settings.- We could just have an
ipfs config show --defaults
instead.
- We could just have an
Finally, it would be nice to have an ipfs config
subcommand that resets a setting to the default value, removing it from the config file.
Metadata
Metadata
Assignees
Labels
need/community-inputNeeds input from the wider communityNeeds input from the wider community