etcdctl

CLI interface for interacting with `etcd`, a highly-available key-value pair store.

TLDR

Display the value associated with a specified key

$ etcdctl get [my/key]
copy

Store a key-value pair

$ etcdctl put [my/key] [my_value]
copy

Delete a key-value pair

$ etcdctl del [my/key]
copy

Store a key-value pair, reading the value from a file

$ etcdctl put [my/file] < [path/to/file.txt]
copy

Save a snapshot of the etcd keystore

$ etcdctl snapshot save [path/to/snapshot.db]
copy

Restore a snapshot of an etcd keystore (restart the etcd server afterwards)

$ etcdctl snapshot restore [path/to/snapshot.db]
copy

Add a user

$ etcdctl user add [my_user]
copy

Watch a key for changes

$ etcdctl watch [my/key]
copy

Copied to clipboard
sandbox