etcdctl
CLI interface for interacting with etcd, a highly-available key-value pair store.
- Display the value associated with a specified key:
etcdctl get {my/key}
etcdctl put {my/key} {my_value}
etcdctl del {my/key}
- Store a key-value pair, reading the value from a file:
etcdctl put {my/file} < {path/to/file.txt}
- Save a snapshot of the etcd keystore:
etcdctl snapshot save {path/to/snapshot.db}
- Restore a snapshot of an etcd keystore (restart the etcd server afterwards):
etcdctl snapshot restore {path/to/snapshot.db}
etcdctl user add {my_user}
etcdctl watch {my/key}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).