etcdctl命令詳解

[root@localhost92 ~]$etcdctl --help
NAME:
   etcdctl - A simple command line client for etcd. #一個簡單的etcd命令行客戶端

USAGE:
   etcdctl [global options/全局選項] command [command options/命令選項] [arguments/參數...]

VERSION:
   3.0.17

COMMANDS:
     backup          backup an etcd directory #備份etcd目錄
     cluster-health  check the health of the etcd cluster #檢查etcd羣集的運行狀況
     mk              make a new key with a given value #用給定值生成新密鑰
     mkdir           make a new directory #創建一個新目錄
     rm              remove a key or a directory  #刪除密鑰或目錄
     rmdir           removes the key if it is an empty directory or a key-value pair #如果密鑰是空目錄或鍵值對,則將其刪除
     get             retrieve the value of a key #檢索密鑰的值
     ls              retrieve a directory #檢索目錄
     set             set the value of a key #設置鍵的值
     setdir          create a new directory or update an existing directory TTL #創建新目錄或更新現有目錄TTL
     update          update an existing key with a given value #用給定值更新現有密鑰
     updatedir       update an existing directory #更新現有目錄
     watch           watch a key for changes #監控祕鑰變化
     exec-watch      watch a key for changes and exec an executable #監視密鑰的更改並執行可執行文件
     member          member add, remove and list subcommands #成員添加、刪除和列出子命令
     import          import a snapshot to a cluster #將快照導入羣集
     user            user add, grant and revoke subcommands #用戶添加、授予和撤消子命令
     role            role add, grant and revoke subcommands #角色添加、授予和撤消子命令
     auth            overall auth controls #總體驗證控件

GLOBAL OPTIONS:
   --debug                          output cURL commands which can be used to reproduce the request #輸出cURL命令,用於重新生成請求
   --no-sync                        don't synchronize cluster information before sending request #發送請求前不同步羣集信息
   --output simple, -o simple       output response in the given format (simple, `extended` or `json`) (default: "simple") #以給定格式輸出響應(simple,`extended`或`json`)(默認值:“simple”)
   --discovery-srv value, -D value  domain name to query for SRV records describing cluster endpoints #要查詢描述羣集終結點的SRV記錄的域名
   --insecure-discovery             accept insecure SRV records describing cluster endpoints #接受描述羣集終結點的不安全SRV記錄
   --peers value, -C value          DEPRECATED - "--endpoints" should be used instead #已棄用
   --endpoint value                 DEPRECATED - "--endpoints" should be used instead #已棄用
   --endpoints value                a comma-delimited list of machine addresses in the cluster (default: "http://127.0.0.1:2379,http://127.0.0.1:4001") #羣集中以逗號分隔的計算機地址列表
   --cert-file value                identify HTTPS client using this SSL certificate file #使用此SSL證書文件標識HTTPS客戶端
   --key-file value                 identify HTTPS client using this SSL key file #使用此SSL密鑰文件標識HTTPS客戶端
   --ca-file value                  verify certificates of HTTPS-enabled servers using this CA bundle #使用此CA包驗證啓用HTTPS的服務器的證書
   --username value, -u value       provide username[:password] and prompt if password is not supplied. #提供用戶名[:password]並在未提供密碼時提示。
   --timeout value                  connection timeout per request (default: 1s) #每個請求的連接超時(默認值:1s)
   --total-timeout value            timeout for the command execution (except watch) (default: 5s) 命令執行超時(監視除外)(默認值:5s)
   --help, -h                       show help
   --version, -v                    print the version

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章