Skip to main content
In this tutorial, you will create your first cluster in a Cockroach Continuum organization, connect to it, and run your first SQL queries.

Before you begin

You need a Cockroach Continuum organization and a running cluster. If you do not have them yet, complete the following steps:
  1. . New CockroachDB Cloud organizations use Continuum by default and receive free trial credits.
  2. . The Standard edition is recommended for an evaluation cluster. To compare editions, refer to .
To connect and run queries, you also need one of the following clients:
  • 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.
  1. 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.
  2. 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:
  3. 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.
  4. 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.
  1. Create a table:
  2. Insert rows:
  3. Read the rows back:
  4. Remove the table, then exit the shell:
You now have a working cluster and a verified connection.

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 .