etcdctl --help

本文介绍etcdctl命令行客户端的使用方法,包括备份etcd目录、检查集群健康状态、创建和删除键值对等操作。还提供了版本、认证控制及成员管理等功能的介绍。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

NAME:
   etcdctl - A simple command line client for etcd.

USAGE:
   etcdctl [global options] command [command options] [arguments...]

VERSION:
   2.1.2

COMMANDS:
   backup        backup an etcd directory
   cluster-health    check the health of the etcd cluster
   mk            make a new key with a given value
   mkdir        make a new directory
   rm            remove a key
   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 or existing directory
   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
   help, h        Shows a list of commands or help for one command
   
GLOBAL OPTIONS:
   --debug            output cURL commands which can be used to reproduce the request
   --no-sync            don't synchronize cluster information before sending request
   --output, -o 'simple'    output response in the given format (`simple`, `extended` or `json`)
   --peers, -C             a comma-delimited list of machine addresses in the cluster (default: "127.0.0.1:4001,127.0.0.1:2379")
   --cert-file             identify HTTPS client using this SSL certificate file
   --key-file             identify HTTPS client using this SSL key file
   --ca-file             verify certificates of HTTPS-enabled servers using this CA bundle
   --username, -u         provide username[:password] and prompt if password is not supplied.
   --help, -h            show help
   --version, -v        print the version

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值