You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/06/06 00:13:17 UTC
[GitHub] [zookeeper] lvfangmin commented on a change in pull request #833:
ZOOKEEPER-3288:add a new doc:ZookeeperCLI.md
lvfangmin commented on a change in pull request #833: ZOOKEEPER-3288:add a new doc:ZookeeperCLI.md
URL: https://github.com/apache/zookeeper/pull/833#discussion_r290981558
##########
File path: zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md
##########
@@ -0,0 +1,551 @@
+<!--
+Copyright 2002-2019 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+//-->
+
+# ZooKeeper-cli: the ZooKeeper command line interface
+
+## Pre-requisites
+Enter into the ZooKeeper-cli
+
+```bash
+# connect to the localhost with the default port:2181
+bin/zkCli.sh
+# connect to the remote host with timeout:3s
+bin/zkCli.sh -timeout 3000 -server remoteIP:2181
+```
+## help
+Showing helps about ZooKeeper commands
+
+```bash
+[zkshell: 1] help
+# a sample one
+[zkshell: 2] h
+ZooKeeper -server host:port cmd args
+ addauth scheme auth
+ close
+ config [-c] [-w] [-s]
+ connect host:port
+ create [-s] [-e] [-c] [-t ttl] path [data] [acl]
+ delete [-v version] path
+ deleteall path
+ delquota [-n|-b] path
+ get [-s] [-w] path
+ getAcl [-s] path
+ getAllChildrenNumber path
+ getEphemerals path
+ history
+ listquota path
+ ls [-s] [-w] [-R] path
+ ls2 path [watch]
+ printwatches on|off
+ quit
+ reconfig [-s] [-v version] [[-file path] | [-members serverID=host:port1:port2;port3[,...]*]] | [-add serverId=host:port1:port2;port3[,...]]* [-remove serverId[,...]*]
+ redo cmdno
+ removewatches path [-c|-d|-a] [-l]
+ rmr path
+ set [-s] [-v version] path data
+ setAcl [-s] [-v version] [-R] path acl
+ setquota -n|-b val path
Review comment:
Should we also add [] around -n|-b to make it consistent?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services