Skip to content

Commit

Permalink
ctl: Set ETCDCTL_API=v3 to get the v3 API (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored and kaaaaaaang committed Nov 23, 2022
1 parent 1cc8066 commit d46f28d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/ctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func binaryPath(home, cmd string) (string, error) {
}

func run(name string, args ...string) error {
os.Setenv("ETCDCTL_API", "3")
// Handle `cdc cli`
if strings.Contains(name, " ") {
xs := strings.Split(name, " ")
Expand Down

0 comments on commit d46f28d

Please sign in to comment.