etcd 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