cosmos-sdk/tools/confix
Julien Robert 538f7ce723
ci: make sonarcloud more quiet (#14585)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-12 10:24:56 +00:00
..
cmd feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
data feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
testdata feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
.gitignore feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
.goreleaser.yml feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
CHANGELOG.md feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
diff.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
doc.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
go.mod build(deps): Bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#14580) 2023-01-11 20:52:34 +01:00
go.sum build(deps): Bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#14580) 2023-01-11 20:52:34 +01:00
log.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
Makefile feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
migrations.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
README.md feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
sonar-project.properties ci: make sonarcloud more quiet (#14585) 2023-01-12 10:24:56 +00:00
upgrade_test.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00
upgrade.go feat: create config fix tool (#14342) 2023-01-10 10:28:41 +00:00

sidebar_position
1

Confix

Confix is a configuration management tool that allows you to manage your configuration via CLI.

It is based on the Tendermint RFC 019.

Installation

Usage

Use standalone:

confix --help

Use in simd:

simd config fix --help

Get

Get a configuration value, e.g.:

simd config get app pruning # gets the value pruning from app.toml
simd config get client chain-id # gets the value chain-id from client.toml
confix get ~/.simapp/config/app.toml pruning # gets the value pruning from app.toml
confix get ~/.simapp/config/client.toml chain-id # gets the value chain-id from client.toml

Set

Set a configuration value, e.g.:

simd config set app pruning "enabled" # sets the value pruning from app.toml
simd config set client chain-id "foo-1" # sets the value chain-id from client.toml
confix set ~/.simapp/config/app.toml pruning "enabled" # sets the value pruning from app.toml
confix set ~/.simapp/config/client.toml chain-id "foo-1" # sets the value chain-id from client.toml

Migrate

Migrate a configuration file to a new version, e.g.:

simd config migrate v0.47 # migrates defaultHome/config/app.toml to the latest v0.47 config
confix migrate v0.47 ~/.simapp/config/app.toml # migrate ~/.simapp/config/app.toml to the latest v0.47 config

Maintainer

At each SDK modification of the default configuration, add the default SDK config under data/v0.XX-app.toml. This allows users to use the tool standalone.

Credits

This project is based on the Tendermint RFC 019 and their own implementation of confix.