Confix is a configuration management tool that allows you to manage your configuration via CLI.
It is based on the CometBFT RFC 019.
Installation
Add Config Command
To add the confix tool, it’s required to add theConfigCommand to your application’s root command file (e.g. <appd>/cmd/root.go).
Import the confixCmd package:
ConfixCommand function builds the config root command and is defined in the confixCmd package (cosmossdk.io/tools/confix/cmd).
An implementation example can be found in simapp.
The command will be available as simd config.
Using Confix Standalone
To use Confix standalone, without having to add it in your application, install it with the following command:make confix. The binary will be located in tools/confix.
Usage
Use standalone:Get
Get a configuration value, e.g.:Set
Set a configuration value, e.g.:Migrate
Migrate a configuration file to a new version, e.g.:Diff
Get the diff between a given configuration file and the default configuration file, e.g.:View
View a configuration file, e.g:Maintainer
At each SDK modification of the default configuration, add the default SDK config underdata/v0.XX-app.toml.
This allows users to use the tool standalone.