Skip to content

Instantly share code, notes, and snippets.

Created Aug 12, 2017
What would you like to do?
LFS258 Notes


List all keys

ETCDCTL_API=3 etcdctl get / --prefix --keys-only

What used to be directories in etcd v2

ETCDCTL_API=3 etcdctl get / --prefix --keys-only | awk -F/ '{ printf("%s/%s\n", $2, $3); }'| sort | uniq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment