Connect To Your Cluster
- Capella Operational
- how-to
Use the Connect page to choose how you want to connect to your cluster.
This page covers connecting to your cluster from:
Prerequisites
The procedures on this page assume the following:
-
You have configured cluster access by creating a cluster access credential. You’ll need the username and password for the cluster credential to connect to the cluster.
-
You have added your IP address to the cluster’s list of allowed IPs.
-
You have downloaded the security certificate for your cluster.
-
You’re not connecting from an IPv6-only environment — you need to be able to use the IPv4 records published for Capella clusters.
You can do all of this from a single location using the Connect page in the Capella UI.
Connect from SDK, cbsh, CLI, or IDE
Follow these steps to connect from an SDK, Couchbase Shell, the command line tools, or an IDE plugin or extension:
-
SDK
-
cbsh
-
CLI Tools
-
IDE
The Connect page in the Capella UI provides the details to connect to your cluster with an application using an SDK.
From the Capella UI:
-
On the Operational Clusters page, click on the cluster that you want to connect to.
-
Go to
. -
Note the public connection string — you’ll need this to connect to the cluster.
-
If you have not already done so, follow the instructions on screen to enter an allowed IP address.
-
Choose an existing cluster user from the drop-down, or create a new cluster access user.
-
Select the preferred SDK language.
-
Now install the SDK for the language that you have chosen, following the instructions in the linked SDK docs.
-
To get started with your chosen SDK, choose a snippet or the full code sample.
-
Select Snippet to generate the connection code snippet for the chosen language, pre-populated with the connection string and user name. Replace
<<password>>
with the password you specified when you created the cluster access user. -
Select Full Code Sample to display a full code sample for your chosen language. You can customize the code sample by choosing the bucket, scope, and collection the cluster user has access to — although some fields will be pre-populated already, such as the connection string and username.
-
You can find documentation and troubleshooting reference materials within the
screen.The SDK Compatibility page lists the minimum supported SDK versions. Couchbase recommends using the latest version of your chosen SDK, as it contains bug fixes and feature enhancements.
The Connect page in the Capella UI provides the details to connect your cluster with cbsh — the Couchbase Shell.
From the Capella UI:
-
On the Operational Clusters page, click on the cluster that you want to connect to.
-
Go to
. -
Note the public connection string — you’ll need this to connect to the cluster.
-
If you have not already done so, follow the instructions on screen to enter an allowed IP address.
-
Choose an existing cluster user from the drop-down, or create a new cluster access user.
-
Download and unzip the latest version of Couchbase Shell for your operating system.
-
Create a hidden folder
.cbsh
in the folder where you unzipped the binaries. -
Copy the generated config file, including the generated connection string and username, into the hidden
.cbsh folder
, replacing<<password>>
with the password for the specified cluster user.
version = 1
[[cluster]]
identifier = "capella"
connstr = "<<connection string>>"
user-display-name = ""
username = "<<username>>"
password = "<<password>>" # Replace this with password from cluster access credentials
You can find examples, documentation, and reference materials within the
page.The Connect page in the Capella UI provides the details to connect to your cluster with the backup, import and export, and cbq tools.
From the Capella UI:
-
On the Operational Clusters page, click on the cluster that you want to connect to.
-
Go to
. -
Note the public connection string — you’ll need this to connect to the cluster.
-
If you have not already done so, follow the instructions on screen to enter an allowed IP address.
-
If you have not already done so, follow the instructions on screen to create a cluster access user.
-
Download the security certificate, following the instructions on screen.
-
Download and install the command line tools, following the instructions on the command line tools reference page.
Basic examples for the tools are given on the
page, along with links to their full reference pages.The Connect page in the Capella UI provides the details to connect to your cluster with an IDE plugin or extension.
From the Capella UI:
-
On the Operational Clusters page, click on the cluster that you want to connect to.
-
Go to
. -
Note the public connection string — you’ll need this to connect to the cluster.
-
If you have not already done so, follow the instructions on screen to enter an allowed IP address.
-
If you have not already done so, follow the instructions on screen to create a cluster access user.
-
Download the security certificate, following the instructions on screen.
-
Select an IDE plugin or extension:
-
Follow the specific installation instructions to get started and add a cluster connection.
Troubleshooting
Working across networks adds an extra layer of complexity. See the troubleshooting documentation if you have problems making a connection.
Next Steps
-
Set up a VPC peering connection to interact with Couchbase Capella over a private connection.
-
Work with your data using an SDK or the Couchbase Shell.
-
Import and export data using an SDK or a command line tool.
-
Backup and restore data using the Capella UI or a command line tool.
-
Query data using the cbq shell.