Etcd batch can import a json/yaml/toml/envfile to etcd or dump etcd to a json/yaml/toml/envfile
Support file format JSON, YAML, TOML, envfile
import a json file
etcd_batch /prefix < foo.json
dump a json file
etcd_batch /prefix > bar.json
This tool is created due to this issue: etcd-io/etcd#8205
Similiar tools: etcdtool but not support for etcd v3.
TODO
kubectl style command line
etcd_batch apply/delete -n [namespace] -f foo.json
etcd_batch get -n [namespace] > bar.json