You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/capella.adoc
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,12 @@
2
2
3
3
https://cloud.couchbase.com/sign-up?ref=cbsh-web-capella[Couchbase Capella] is a Database as a Service offering from Couchbase which you can interact with from Couchbase Shell.
4
4
5
-
=== `use` and the Environment
5
+
[#_cb_env_and_the_environment]
6
+
=== `cb-env` and the Environment
6
7
7
-
For general usage of the `use` command see <<_use_and_the_environment>>.
8
-
When using <<_management_commands>> with Couchbase Capella and Couchbase Shell we need to be able to manage more active resources than the base `use` command gives us.
9
-
You can use the `use --capella` command to see which cloud resources are current active:
8
+
For general usage of the `cb-env` command see <<cbenv.adoc#_cb_env_and_the_environment>>.
9
+
When using <<_management_commands>> with Couchbase Capella and Couchbase Shell we need to be able to manage more active resources than the base `cb-env` command gives us.
10
+
You can use the `cb-env --capella` command to see which cloud resources are current active:
10
11
11
12
```
12
13
> cb-env--capella
@@ -17,7 +18,7 @@ You can use the `use --capella` command to see which cloud resources are current
17
18
──────────────────────┴──────────────────
18
19
```
19
20
20
-
The active resource can be changed with the `use` command:
21
+
The active resource can be changed with the `cb-env` command:
21
22
22
23
```
23
24
> cb-env -h
@@ -42,11 +43,12 @@ Document level commands like those under `doc`, `analytics`, `query`, and `searc
42
43
43
44
You need to:
44
45
45
-
- https://docs.couchbase.com/cloud/clusters/create-cluster.html[create a cluster] in your Couchbase Capella account
46
-
- ensure that your https://docs.couchbase.com/cloud/security/allow-ip-address.html[IP address is whitelisted]
47
-
- ensure that you have a https://docs.couchbase.com/cloud/security/manage-database-users.html[database user]
48
-
- Populate the relevant cluster section in the `config` file with the public address and database user credentials.
46
+
- https://docs.couchbase.com/cloud/clusters/create-cluster.html[create a cluster] in your Couchbase Capella account
47
+
- ensure that your https://docs.couchbase.com/cloud/security/allow-ip-address.html[IP address is whitelisted]
48
+
- ensure that you have a https://docs.couchbase.com/cloud/security/manage-database-users.html[database user]
49
+
- Populate the relevant cluster section in the `config` file with the public address and database user credentials.
49
50
51
+
[#_management_commands]
50
52
=== Management Commands
51
53
52
54
Management commands (such as `cluster` and `bucket` management) require a specific section to be added to the `config` file as well as an extra entry in the relevant cluster section.
Once you've downloaded the `zip` file, extract it and switch into the just created directory. The following example shows it for mac, but it works very similar if you are on linux (just align the commands with the file you just downloaded):
14
14
15
15
```
16
-
$ unzip cbsh-1.0.0-beta.3-mac.zip
16
+
$ unzip cbsh-1.0.0-beta.4-mac.zip
17
17
$ ls
18
18
cbsh examples LICENSE README.md
19
19
```
@@ -22,7 +22,7 @@ You can now run the `cbsh` binary:
22
22
23
23
```
24
24
❯ ./cbsh --version
25
-
The Couchbase Shell 1.0.0-beta.3
25
+
The Couchbase Shell 1.0.0-beta.4
26
26
```
27
27
28
28
TIP: If you are running a recent macOS release (i.e. 10.15.x), you'll likely see an error similar to *"cbsh" was blocked from use because it is not from an identified developer*. This is because our binaries are not yet signed. To run it nonetheless you need to navigate to `System Preferences -> Security & Privacy` and click `Allow Anyway`. Next time you run the binary you'll get another prompt but then it should run fine.
@@ -91,6 +91,6 @@ password = "password"
91
91
# password = "pass"
92
92
```
93
93
94
-
This will connect to two clusters, one called `local` and one called `remote` (commented out). The file format is `toml` in case you wonder. Now when you start the shell, it will connect to `local` automatically and you are all set.
94
+
This will register two clusters, one called `local` and one called `remote` (commented out). The file format is `toml` in case you wonder. Now when you start the shell, it will connect to `local` automatically and you are all set.
95
95
96
96
Please check out the reference section on additional parameters you can set as well as how to move the credentials to a separate `credentials` file in case you want to share your config with other people and they do not use the same credentials.
0 commit comments