1
2Newly added options for existed commands
3----------------------------------------
4
5 **- Cluster management support for index and n1ql**
6
7    couchbase-cli cluster-init
8
9OPTIONS:
10
11     --services=[data|index|n1ql]   services that run on servers
12
13Use cases:
14
15  Create a new cluster with default data service:
16
17    couchbase-cli cluster-init -c 192.168.0.1:8091 \\
18       --cluster-username=Administrator \\
19       --cluster-password=password \\
20       --cluster-port=8080 \\
21       --cluster-ramsize=300
22
23  Create a new cluster with both data and index service:
24
25    couchbase-cli cluster-init -c 192.168.0.1:8091 \\
26       --cluster-username=Administrator \\
27       --cluster-password=password \\
28       --cluster-port=8080 \\
29       --cluster-ramsize=300 \\
30       --services=data;index
31
32  Create a new cluster with both data,index and n1ql service:
33
34    couchbase-cli cluster-init -c 192.168.0.1:8091 \\
35       --cluster-username=Administrator \\
36       --cluster-password=password \\
37       --cluster-port=8080 \\
38       --cluster-ramsize=300 \\
39       --services=data;index;n1ql
40
41Note: If --services option specified but without data option included,
42data service will always be included automatically.
43
44 **- Add servers with data, index and n1ql services**
45
46    couchbase-cli server-add
47
48OPTIONS:
49
50     --services=[data|index|n1ql]   services that run on the server
51
52Use cases:
53
54  Add a new server with service data and n1ql:
55
56    couchbase-cli server-add -c 192.168.0.1:8091 \\
57       --server-add=10.11.12.13:8091 \\
58       --server-add-username=Admin1 \\
59       --server-add-password=password \\
60       --services=data;n1ql
61
62  
63  Add a new server with service index:
64
65    couchbase-cli server-add -c 192.168.0.1:8091 \\
66       --server-add=10.11.12.13:8091 \\
67       --server-add-username=Admin1 \\
68       --server-add-password=password \\
69       --services=index
70
71 **- Add servers with data, index and n1ql services to a group**
72
73    couchbase-cli group-manage
74
75OPTIONS:
76
77     --services=[data|index|n1ql]   services that run on the server
78
79Use cases:
80
81  Add a new server with service data and n1ql to a group:
82
83    couchbase-cli group-manage -c 192.168.0.1:8091 \\
84       --group-name=group1 \\
85       --create \\
86       --add-servers=10.11.12.13:8091 \\
87       --services=data;n1ql
88
89  
90  Add a new server with index service:
91
92    couchbase-cli grlou -c 192.168.0.1:8091 \\
93       --group-name=group2 \\
94       --create \\
95       --add-servers=10.11.12.13:8091;10.11.12.14 \\
96       --services=index
97
98