etcdctl Command Examples

Interact with etcd, a highly-available key-value pair store. More information: https://etcd.io/docs/latest/dev-guide/interacting_v3/.

etcdctl get {{my/key}}

etcdctl put {{my/key}} {{my_value}}

etcdctl del {{my/key}}

etcdctl put {{my/file}} < {{path/to/file.txt}}

etcdctl snapshot save {{path/to/snapshot.db}}

etcdctl snapshot restore {{path/to/snapshot.db}}

etcdctl user add {{my_user}}

etcdctl watch {{my/key}}