mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: update README on environment variables
This commit is contained in:
parent
8081254498
commit
66f9e81c9a
@ -4,6 +4,17 @@ etcdctl
|
|||||||
`etcdctl` is a command line client for [etcd][etcd].
|
`etcdctl` is a command line client for [etcd][etcd].
|
||||||
Make sure to set environment variable `ETCDCTL_API=3`. For etcdctl v2, please check [READMEv2][READMEv2].
|
Make sure to set environment variable `ETCDCTL_API=3`. For etcdctl v2, please check [READMEv2][READMEv2].
|
||||||
|
|
||||||
|
Global flags (e.g., `dial-timeout`, `--cacert`, `--cert`, `--key`) can be set with environment variables:
|
||||||
|
|
||||||
|
```
|
||||||
|
ETCDCTL_DIAL_TIMEOUT=3s
|
||||||
|
ETCDCTL_CACERT=/tmp/ca.pem
|
||||||
|
ETCDCTL_CERT=/tmp/cert.pem
|
||||||
|
ETCDCTL_KEY=/tmp/key.pem
|
||||||
|
```
|
||||||
|
|
||||||
|
Prefix flag strings with `ETCDCTL_`, convert all letters to upper-case, and replace dash(`-`) with underscore(`_`).
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
### VERSION
|
### VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user