@@ -48,9 +48,11 @@ If used with no definition or flag values provided a free tier cluster with sens
48
48
```
49
49
👤 Charlie 🏠 remote in ☁️ default._default._default
50
50
> clusters create
51
- [INFO] 2025-07-04 11:35:41.392 provider not specified, defaulting to aws
52
- [INFO] 2025-07-04 11:35:41.392 cluster name not specified, a randomly generated name will be used
53
- [INFO] 2025-07-04 11:35:41.392 region not specified, defaulting to us-east-2
51
+ [INFO] 2025-07-07 09:11:21.628 provider not specified, defaulting to aws
52
+ [INFO] 2025-07-07 09:11:21.628 cluster name not specified, a randomly generated name will be used
53
+ [INFO] 2025-07-07 09:11:21.628 region not specified, defaulting to us-east-2
54
+ [WARN] 2025-07-07 09:11:21.628 this configuration will create a FREE cluster, is this okay? (y/n)
55
+ y
54
56
👤 Charlie 🏠 remote in ☁️ default._default._default
55
57
> clusters
56
58
╭───┬────────────────────────┬──────────────────────────────────────┬───────────┬───────────────────────────╮
@@ -64,16 +66,26 @@ If used with no definition or flag values provided a free tier cluster with sens
64
66
╰───┴────────────────────────┴──────────────────────────────────────┴───────────┴───────────────────────────╯
65
67
```
66
68
67
- Free clusters clusters are limited in how they can be customised, and only the name, description, cloud provider, region and cidr can be configured.
69
+ Before your cluster is created cbshell will tell you if the configuration will result in a free-tier or paid cluster, and as for confirmation:
70
+
71
+ ```
72
+ [WARN] 2025-07-07 09:11:21.628 this configuration will create a FREE cluster, is this okay? (y/n)
73
+ y
74
+ ```
75
+
76
+ Free clusters are limited in how they can be customised, and only the name, description, cloud provider, region and cidr can be configured.
68
77
Check the https://docs.couchbase.com/cloud/management-api-reference/index.html#tag/Free-Tier[Capella API docs] for more information.
69
78
You can configure all of these fields with the relevant flags:
70
79
71
80
```
72
81
👤 Charlie 🏠 remote in ☁️ default._default._default
73
82
> clusters create --name free-gcp --description "My first couchbase cluster" --cidr 10.0.0.0/24 --provider gcp --region us-central1
83
+ [WARN] 2025-07-07 09:13:32.545 this configuration will create a FREE cluster, is this okay? (y/n)
84
+ y
74
85
```
75
86
76
- Getting the cluster details shows that this has still deployed a free tier cluster:
87
+ We can see from the warning that we will still deploy a free tier cluster.
88
+ This can be double checked by getting the full details of the cluster being deployed:
77
89
78
90
```
79
91
> clusters get free-gcp
@@ -121,6 +133,7 @@ For example the following will create a paid cluster because the number of nodes
121
133
122
134
```
123
135
> clusters create --name paid-azure --description "My first couchbase cluster" --cidr 10.0.2.0/24 --provider azure --region eastus --nodes 3
136
+ [WARN] 2025-07-07 09:15:36.022 this configuration will create a PAID cluster, is this okay? (y/n)
124
137
👤 Charlie 🏠 remote in ☁️ default._default._default
125
138
> clusters get paid-azure
126
139
╭────────────────────┬───────────────────────────────────────────────────────────────────────────────╮
@@ -164,8 +177,17 @@ For example the following will create a paid cluster because the number of nodes
164
177
╰────────────────────┴───────────────────────────────────────────────────────────────────────────────╯
165
178
```
166
179
167
- The created cluster can be configured using flags:
180
+ If you need to skip this confirmation step then the `--confirm` or `-c` flag for short can be used:
181
+
182
+ ```
183
+ 👤 Charlie 🏠 remote in ☁️ default._default._default
184
+ > clusters create --name paid-azure --description "My first couchbase cluster" --cidr 10.0.2.0/24 --provider azure --region eastus --nodes 3 -c
185
+ 👤 Charlie 🏠 remote in ☁️ default._default._default
186
+ ```
187
+
188
+ The full set of flags for `clusters create` is:
168
189
```
190
+ -h, --help: Display the help message for this command
169
191
--name <string>: the name of the cluster
170
192
--provider <string>: the cloud provider
171
193
--version <string>: the couchbase server version
@@ -175,6 +197,7 @@ The created cluster can be configured using flags:
175
197
--description <string>: description for the cluster
176
198
--region <string>: cloud provider region for the cluster
177
199
--cidr <string>: cider block for the cluster
200
+ -c, --confirm: skip confirmation of the cluster creation
178
201
```
179
202
180
203
If you want complete control over the structure of the cluster then you can pipe a JSON cluster definition into the command:
0 commit comments