Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 644 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 644 Bytes

MX is microservice gateway

install mx framework cli


Declare config

setup redis backend config

consul services register -name="mx.Config" -meta=service_type=config_provider -meta=targetURI=redis://127.0.0.1:6379/mx.config -address=127.0.0.1 -port=6379

used cli config set

set a config key value

mx config set -key=key=value

get a config key value

mx config get -key=key

cat all config

mx config cat

update all config

mx config update --data="{"a": "b"}"

update config from a json file

mx config update --data=@/path/to/file.json