Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (49 sloc) 1.461 kb
89900ea @steveyen added README.md
steveyen authored
1 cbshell - interactive python shell for couchbase
2 ================================================
3
4 Prerequisites
5 -------------
6
7 * Python 2.6
93e42f3 @pavel-paulau add installation script
pavel-paulau authored
8 * pip
9
10 Installation
11 ------------
12
13 pip install cbshell
89900ea @steveyen added README.md
steveyen authored
14
15 Running
16 -------
17
18 $ ./cbshell -h
19 Usage: cbshell [options] couchbase-address
20
21 Interactive python shell for Couchbase.
22
23 A couchbase-address is a couchbase cluster REST address:
24 HOST[:PORT][/BUCKET]
25
26 Examples:
27 cbshell localhost
28 cbshell 10.3.121.192
29 cbshell 10.3.121.192:8091
30 cbshell 10.3.121.192:8091/default
31 cbshell 10.3.121.192/default
32 cbshell localhost/default
33 cbshell localhost/my-bucket -u Administrator -p password
34
35 Options:
36 -h, --help show this help message and exit
37 -u USERNAME, --username=USERNAME
38 REST username for cluster or server node
39 -p PASSWORD, --password=PASSWORD
40 REST password for cluster or server node
41
42 Using
43 -----
44
45 $ ./cbshell 10.3.121.192 -u Administrator -p couchbaseR0ck$
46 connecting to couchbase: 10.3.121.192:8091
47 connected.
48 cb = couchbase '10.3.121.192:8091'
49 bucket = cb['default']
50 b = cb['default']
51
52 type "help()" for help
53 >>>
54 >>> b['user-001'] = 'steve'
55 >>> user = b['user-001']
56 >>> print user
57
58 Getting more help examples
59 --------------------------
60
61 >>> help()
62
63 License
64 -------
65
66 Apache 2.0 License
67
Something went wrong with that request. Please try again.