This feature is in and subject to change. To share feedback and/or issues, contact Support.
Before you begin
This tutorial assumes that you have access to a Cockroach Continuum organization with a running host cluster. You should have:- A Cockroach Continuum organization. Refer to Create a Continuum Organization to create a new organization if needed, or confirm if your existing CockroachDB deployment is running Continuum.
- A deployed host cluster in the organization. Refer to Create a Cluster if you are creating a host cluster yourself.
- Permission to create clusters in the organization.
Steps
In these instructions, you’ll use theccloud CLI tool to connect to your organization, create a virtual cluster, and access a SQL shell:
-
Install the ccloud CLI. To install using Homebrew, run the following command:
-
Log in to your Cockroach Continuum organization by running the following command:
Press Enter to open a browser window and complete login. To log in on a headless machine, use the
--no-redirectflag. If you are a member of more than one Cockroach organization, use the--orgflag to specify the organization label: -
Virtual clusters are created inside of a workspace, which sets default configurations for other virtual clusters on that host. Run the following command to list workspaces in the organization:
-
Select a workspace to create your virtual cluster in, then run the following command to create the cluster with a name you specify:
-
By default, CockroachDB clusters are locked down to disallow all remote network access. Create an IP allowlist that will allow incoming SQL connections from an IP address or subnet. Run the following command to create an initial entry that allows SQL access for your specific IP address:
Read the Connect to a Cluster documentation for more information on secure network connectivity options to your virtual cluster.
-
Now, you can connect to your virtual cluster with a SQL shell using the following command:
This will prompt you to create the first SQL user for your cluster. Specify a username and password to create the user, then access the SQL shell:

