Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
replace 'etcdctl ls' by 'etcdctl get' in README
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Sep 18, 2018
1 parent bfe2ec6 commit 715cd13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ Make sure you have at least 1 etcd server running:
sudo dnf install etcd
sudo systemctl start etcd
systemctl status etcd
etcdctl ls
ETCDCTL_API=3 etcdctl get --from-key ''

or even just start it directly, without systemd, in the foreground in another terminal tab:

cd /tmp
etcd

tree /tmp/default.etcd/
etcdctl ls
ETCDCTL_API=3 etcdctl get --from-key ''

_TODO Document how to best easily start test cluster of 3 etcd servers locally..._

If you used etcd before you may want to completely wipe it:

ETCDCTL_API=3 etcdctl del "" --from-key=true

Beware that `etcdctl ls -r` [does not seem to show unprintable keys](https://github.com/etcd-io/etcd/issues/10102), so better use our own:
Beware that `ETCDCTL_API=3 etcdctl get --from-key ''` [outputs binary](https://github.com/etcd-io/etcd/issues/10102), so better use our own:

java -jar demo/target/*.jar read http://localhost:2379

Expand Down

0 comments on commit 715cd13

Please sign in to comment.