From a7568d63a753f06c01c867d832b7b9c5f5a06c14 Mon Sep 17 00:00:00 2001 From: Jingyi Hu Date: Wed, 29 May 2019 14:44:52 -0700 Subject: [PATCH] doc: clarify etcdctl default API version --- etcdctl/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etcdctl/README.md b/etcdctl/README.md index f4d1f08f0..1557be54c 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -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: