# etcdctl --help
NAME:
etcdctl - A simple command line client for etcd3.
USAGE:
etcdctl [flags]
VERSION:
3.4.0
API VERSION:
3.4
COMMANDS:
get Gets the key or a range of keys
獲取鍵或鍵範圍
put Puts the given key into the store
將給定的密鑰放入商店
del Removes the specified key or range of keys [key, range_end)
刪除指定的鍵或鍵範圍[key,range_end)
txn Txn processes all the requests in one transaction
Txn處理一個事務中的所有請求
compaction Compacts the event history in etcd
壓縮etcd中的事件歷史記錄
alarm disarm Disarms all alarms
解除所有警報
alarm list Lists all alarms
列出所有警報
defrag Defragments the storage of the etcd members with given endpoints
使用給定端點對etcd成員的存儲進行碎片整理
endpoint health Checks the healthiness of endpoints specified in `--endpoints` flag
檢查`--endpoints`標誌中指定的端點的健康狀況
endpoint status Prints out the status of endpoints specified in `--endpoints` flag
打印出`--endpoints`標誌中指定的端點的狀態
endpoint hashkv Prints the KV history hash for each endpoint in --endpoints
在--endpoints中爲每個端點打印KV歷史記錄哈希
move-leader Transfers leadership to another etcd cluster member.
將領導轉移到另一個etcd集羣成員。
watch Watches events stream on keys or prefixes
在鍵或前綴上觀察事件流
version Prints the version of etcdctl
輸出版本號
lease grant Creates leases
創造租約
lease revoke Revokes leases
撤銷租約
lease timetolive Get lease information
獲取租賃信息
lease list List all active leases
列出所有有效租約
lease keep-alive Keeps leases alive (renew)
讓租約保持活力(續訂)
member add Adds a member into the cluster
添加一個成員到集羣
member remove Removes a member from the cluster
刪除一個成員從集羣
member update Updates a member in the cluster
更新一個成員在集羣
member list Lists all members in the cluster
顯示集羣內所有成員
snapshot save Stores an etcd node backend snapshot to a given file
將etcd節點後端快照存儲到給定文件
snapshot restore Restores an etcd member snapshot to an etcd directory
將etcd成員快照還原到etcd目錄
snapshot status Gets backend snapshot status of a given file
獲取給定文件的後端快照狀態
make-mirror Makes a mirror at the destination etcd cluster
在目標etcd集羣中創建鏡像
migrate Migrates keys in a v2 store to a mvcc store
將v2存儲中的密鑰遷移到mvcc存儲
lock Acquires a named lock
獲取命名鎖
elect Observes and participates in leader election
觀察並參與領導人選舉
auth enable Enables authentication
啓用身份認證
auth disable Disables authentication
禁用身份認證
user add Adds a new user
添加一個新用戶
user delete Deletes a user
刪除一個用戶
user get Gets detailed information of a user
獲取用戶的詳細信息
user list Lists all users
顯示所有用戶
user passwd Changes password of user
更改用戶密碼
user grant-role Grants a role to a user
授予用戶角色
user revoke-role Revokes a role from a user
撤消用戶的角色
role add Adds a new role
添加新角色
role delete Deletes a role
刪除一個角色
role get Gets detailed information of a role
獲取角色的詳細信息
role list Lists all roles
顯示所有角色
role grant-permission Grants a key to a role
授予角色關鍵
role revoke-permission Revokes a key from a role
從角色撤消密鑰
check perf Check the performance of the etcd cluster
檢查etcd集羣的性能
help Help about any command
幫助信息
OPTIONS:
--cacert="" verify certificates of TLS-enabled secure servers using this CA bundle
使用此CA捆綁包驗證啓用TLS的安全服務器的證書
--cert="" identify secure client using this TLS certificate file
使用此TLS證書文件識別安全客戶端
--command-timeout=5s timeout for short running command (excluding dial timeout)
短暫運行命令超時(不包括撥號超時)
--debug[=false] enable client-side debug logging
啓用客戶端調試日誌記錄
--dial-timeout=2s dial timeout for client connections
撥打客戶端連接超時
-d, --discovery-srv="" domain name to query for SRV records describing cluster endpoints
用於查詢描述集羣端點的SRV記錄的域名
--endpoints=[127.0.0.1:2379] gRPC endpoints
gRPC端點
--hex[=false] print byte strings as hex encoded strings
將字節串打印爲十六進制編碼字符串
--insecure-discovery[=true] accept insecure SRV records describing cluster endpoints
接受描述集羣端點的不安全SRV記錄
--insecure-skip-tls-verify[=false] skip server certificate verification
跳過服務器證書驗證
--insecure-transport[=true] disable transport security for client connections
禁用客戶端連接的傳輸安全性
--keepalive-time=2s keepalive time for client connections
保持客戶端連接的時間
--keepalive-timeout=6s keepalive timeout for client connections
客戶端連接的keepalive超時
--key="" identify secure client using this TLS key file
使用此TLS密鑰文件識別安全客戶端
--user="" username[:password] for authentication (prompt if password is not supplied)
戶名[:密碼]進行身份驗證(如果未提供密碼則提示)
-w, --write-out="simple" set the output format (fields, json, protobuf, simple, table)
設置輸出格式(字段,json,protobuf,簡單,表)