Skip to content

Commit

Permalink
doc: clarify etcdctl default API version
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed May 29, 2019
1 parent db5d120 commit a7568d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etcdctl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ etcdctl

`etcdctl` is a command line client for [etcd][etcd].

The v3 API is used by default. For the v2 API, make sure to set environment variable `ETCDCTL_API=2`. See also [READMEv2][READMEv2].
The v3 API is used by default on master branch. For the v2 API, make sure to set environment variable `ETCDCTL_API=2`. See also [READMEv2][READMEv2].

If using released versions earlier than v3.4, set `ETCDCTL_API=3` to use v3 API.

Global flags (e.g., `dial-timeout`, `--cacert`, `--cert`, `--key`) can be set with environment variables:

Expand Down

0 comments on commit a7568d6

Please sign in to comment.