Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename couchbase to couchbase-cli

Change-Id: I13c73df24e0a764d0e0b5b757be2d8c898b127e6
Reviewed-on: http://review.couchbase.org/11485
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
  • Loading branch information...
commit 90c69b69b60b3326feca1e5f6d4d4a43168a2dbb 1 parent 27fb6fa
Bin Cui bcui6611 authored
Showing with 23 additions and 23 deletions.
  1. +1 −1  .gitignore
  2. +3 −3 Makefile.am
  3. +2 −2 couchbase-cli
  4. +17 −17 usage.py
2  .gitignore
View
@@ -15,5 +15,5 @@ tmp
/membase
/python_wrapper
/wrapper/wrapper
-/wrapper/couchbase
+/wrapper/couchbase-cli
/wrapper/membase
6 Makefile.am
View
@@ -19,9 +19,9 @@ nobase_pythonlib_DATA= \
usage.py \
util_cli.py
-pythonlib_SCRIPTS= couchbase
+pythonlib_SCRIPTS= couchbase-cli
-PYTHON_TOOLS= wrapper/couchbase
+PYTHON_TOOLS= wrapper/couchbase-cli
${PYTHON_TOOLS}: wrapper/wrapper
cp $< $@
@@ -41,7 +41,7 @@ bdist:
rm -f ./membase-cli_*.tar.gz
rm -rf $(TMP_DIR)/membase-cli
mkdir -p $(TMP_DIR)/membase-cli/simplejson
- cp couchbase *.py COPYING $(TMP_DIR)/membase-cli
+ cp couchbase-cli *.py COPYING $(TMP_DIR)/membase-cli
cp simplejson/*.py $(TMP_DIR)/membase-cli/simplejson
cp simplejson/LICENSE.txt $(TMP_DIR)/membase-cli/simplejson
(cd $(TMP_DIR); tar cf - membase-cli) | gzip -9 > membase-cli_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
4 couchbase-cli
View
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
-couchbase - command-line cluster administration tool
+couchbase-cli - command-line cluster administration tool
"""
import getopt
@@ -88,7 +88,7 @@ def main():
cmd = sys.argv[1]
if cmd not in commands:
- err_message = ("'%s' is not a couchbase command;" +
+ err_message = ("'%s' is not a couchbase-cli command;" +
" please see -h for more help.") % cmd
usage(err_message)
34 usage.py
View
@@ -24,7 +24,7 @@ def commands_usage():
"""
def short_usage():
- print "usage: couchbase COMMAND CLUSTER [OPTIONS]"
+ print "usage: couchbase-cli COMMAND CLUSTER [OPTIONS]"
print ""
print "CLUSTER is --cluster=HOST[:PORT] or -c HOST[:PORT]"
print ""
@@ -37,9 +37,9 @@ def usage(error_msg=''):
print "ERROR: %s" % error_msg
sys.exit(2)
- print """couchbase - command-line cluster administration tool
+ print """couchbase-cli - command-line cluster administration tool
-usage: couchbase COMMAND CLUSTER [OPTIONS]
+usage: couchbase-cli COMMAND CLUSTER [OPTIONS]
COMMAND:""" + commands_usage() + """
CLUSTER:
@@ -93,47 +93,47 @@ def usage(error_msg=''):
EXAMPLES:
List servers in a cluster:
- couchbase server-list -c 192.168.0.1:8091
+ couchbase-cli server-list -c 192.168.0.1:8091
Server information:
- couchbase server-info -c 192.168.0.1:8091
+ couchbase-cli server-info -c 192.168.0.1:8091
Add a node to a cluster, but do not rebalance:
- couchbase server-add -c 192.168.0.1:8091 \\
+ couchbase-cli server-add -c 192.168.0.1:8091 \\
--server-add=192.168.0.2:8091
Add a node to a cluster and rebalance:
- couchbase rebalance -c 192.168.0.1:8091 \\
+ couchbase-cli rebalance -c 192.168.0.1:8091 \\
--server-add=192.168.0.2:8091
Remove a node from a cluster and rebalance:
- couchbase rebalance -c 192.168.0.1:8091 \\
+ couchbase-cli rebalance -c 192.168.0.1:8091 \\
--server-remove=192.168.0.2:8091
Remove and add nodes from/to a cluster and rebalance:
- couchbase rebalance -c 192.168.0.1:8091 \\
+ couchbase-cli rebalance -c 192.168.0.1:8091 \\
--server-remove=192.168.0.2 \\
--server-add=192.168.0.4
Stop the current rebalancing:
- couchbase rebalance-stop -c 192.168.0.1:8091
+ couchbase-cli rebalance-stop -c 192.168.0.1:8091
Change the username, password, port and ram quota:
- couchbase cluster-init -c 192.168.0.1:8091 \\
+ couchbase-cli cluster-init -c 192.168.0.1:8091 \\
--cluster-init-username=Administrator \\
--cluster-init-password=password \\
--cluster-init-port=8080 \\
--cluster-init-ramsize=300
Change the data path:
- couchbase node-init -c 192.168.0.1:8091 \\
+ couchbase-cli node-init -c 192.168.0.1:8091 \\
--node-init-data-path=/tmp
List buckets in a cluster:
- couchbase bucket-list -c 192.168.0.1:8091
+ couchbase-cli bucket-list -c 192.168.0.1:8091
Create a new dedicated port membase bucket:
- couchbase bucket-create -c 192.168.0.1:8091 \\
+ couchbase-cli bucket-create -c 192.168.0.1:8091 \\
--bucket=test_bucket \\
--bucket-type=membase \\
--bucket-port=11222 \\
@@ -141,20 +141,20 @@ def usage(error_msg=''):
--bucket-replica=1
Create a new sasl memcached bucket:
- couchbase bucket-create -c 192.168.0.1:8091 \\
+ couchbase-cli bucket-create -c 192.168.0.1:8091 \\
--bucket=test_bucket \\
--bucket-type=memcached \\
--bucket-password=password \\
--bucket-ramsize=200
Modify a dedicated port bucket:
- couchbase bucket-edit -c 192.168.0.1:8091 \\
+ couchbase-cli bucket-edit -c 192.168.0.1:8091 \\
--bucket=test_bucket \\
--bucket-port=11222 \\
--bucket-ramsize=400
Delete a bucket:
- couchbase bucket-delete -c 192.168.0.1:8091 \\
+ couchbase-cli bucket-delete -c 192.168.0.1:8091 \\
--bucket=test_bucket
"""
Please sign in to comment.
Something went wrong with that request. Please try again.