[root@localhost ~]$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
etcdctl命令详解
最新推荐文章于 2024-04-02 23:51:58 发布