|
|
před 10 roky | |
|---|---|---|
| .. | ||
| command | před 10 roky | |
| README.md | před 10 roky | |
| help.go | před 10 roky | |
| main.go | před 10 roky | |
PUT assigns the specified value with the specified key. If key already holds a value, it is overwritten.
Simple reply
OK if PUT executed correctly. Exit code is zero.
Error string if PUT failed. Exit code is non-zero.
TODO: probably json and binary encoded proto
./etcdctl PUT foo bar --lease=0x1234abcd
OK
./etcdctl range foo
bar
If <value> isn't given as command line argument, this command tries to read the value from standard input.
When <value> begins with '-', <value> is interpreted as a flag. Insert '--' for workaround:
./etcdctl put <key> -- <value>
./etcdctl put -- <key> <value>