Before you begin
You need a Cockroach Continuum organization and a running cluster. If you do not have them yet, complete the following steps:- . New CockroachDB Cloud organizations use Continuum by default and receive free trial credits.
- . The Standard edition is recommended for an evaluation cluster. To compare editions, refer to .
- The CockroachDB CLI (
cockroach). Continuum clusters run v26.3 or later. To install the CLI, select your operating system in the Download the latest CockroachDB Client section of the Cloud Console’s Connect dialog, then run the provided command on your command line. - Any PostgreSQL-compatible client, such as
psql.
Step 1. Connect to your cluster
Connect from your terminal with the CockroachDB CLI, or from your browser with the Cloud Console SQL Shell. The command line is the primary path; the SQL Shell is a browser alternative that needs no local client.- Command line
- Cloud Console
- In the Cloud Console, select your cluster, then select Connect and copy the general connection string. The connection string embeds credentials, so treat it as a secret and never commit it or paste it into examples.
-
In your terminal, store the connection string in an environment variable so it stays out of your shell history. Replace
<your-connection-string>in the following command with the value you copied in the previous step: -
Open the CockroachDB SQL shell:
The terminal displays the SQL shell welcome banner and a prompt that ends with the current database:The
Cluster ID, user, and host shown are specific to your cluster. -
Confirm the connection:
Step 2. Run your first queries
Create a small table, write to it, and read it back, using the SQL shell you opened in the previous step.- Command line
- Cloud Console
-
Create a table:
-
Insert rows:
-
Read the rows back:
-
Remove the table, then exit the shell:
What’s next
- Work through the tutorial to migrate an existing database with the .
- Build an application: refer to .
- See where to go at each stage of your Continuum work in .

