ccloud CLI or the web console.
Install ccloud CLI
Theccloud CLI allows you to create, manage, and connect to CockroachDB Cloud clusters from the command line.
Download and install ccloud
Download the appropriate version for your operating system and add it to your PATH.
Quick start with ccloud quickstart
The fastest way to get started is using the interactive quickstart command:- Logging in to CockroachDB Cloud
- Creating a new serverless cluster
- Connecting to your cluster
The quickstart command creates a CockroachDB Serverless cluster in the default cloud provider (GCP) and the closest region.
Create a serverless cluster
- Default configuration
- Custom configuration
Create a serverless cluster with default settings:This creates a cluster with:
- Cloud provider: GCP
- Region: Closest to your location
- Auto-generated cluster name
- Spend limit: $0 (free tier)
Create an advanced cluster
For production workloads, create a CockroachDB Advanced cluster:For optimal performance, configure the same number of nodes in each region.
Configure IP allowlist
For Advanced clusters, you must configure an IP allowlist to allow network connections:Create an allowlist entry
Allow connections from a specific IP address:This allows:
--sql- CockroachDB SQL shell connections--ui- DB Console access
Connect to your cluster
Using the SQL client
Connect directly using theccloud cluster sql command:
Using SSO authentication
Connect using single sign-on:Get connection information
Retrieve the connection URL:Manage SQL users
Create a new SQL user with admin privileges:Manage clusters
List clusters
View cluster info
Delete cluster
Disable telemetry
Next steps
- Learn about connection pooling for optimal performance
- Set up monitoring and alerting for your cluster
- Configure backup and restore strategies
- Explore security best practices