ccloud tool is a command-line interface (CLI) tool that allows you to create, manage, and connect to CockroachDB Cloud clusters. If you are new to CockroachDB Cloud, install ccloud and use the ccloud quickstart command to interactively log in and create a new CockroachDB Serverless cluster.
Install ccloud
Choose your OS:
- Mac
- Linux
- Windows
You can install Use the ARM 64 binary if you have an M-series Mac:
ccloud using either Homebrew or by downloading the binary.Use Homebrew
- Install Homebrew.
-
Install using the
ccloudtap:
Download the binary
In a terminal, enter the following command to download and extract theccloud binary and add it to your PATH:Use ccloud quickstart
The easiest way of getting started with CockroachDB Cloud is to use ccloud quickstart. The ccloud quickstart command guides you through logging in to CockroachDB Cloud, creating a new CockroachDB Serverless cluster, and connecting to the new cluster. Run ccloud quickstart and follow the instructions:
ccloud quickstart command will open a browser window to log you in to CockroachDB Cloud. If you are new to CockroachDB Cloud, you can register using one of the single-sign-on options, or create a new account using an email address.
Log in to CockroachDB Cloud using ccloud auth
In order to use the ccloud commands to configure and manage your clusters, you first need to log in to CockroachDB Cloud. Use the ccloud auth login command to open a browser window to log in to CockroachDB Cloud.
-
Run the
ccloud auth logincommand and press Enter to open a browser window:This will take you to the CockroachDB Cloud login page. - Enter your username and password if you already have a CockroachDB Cloud account, then click Continue. If you do not have a CockroachDB Cloud account, click one of the single sign-on (SSO) options or Sign up to register.
- Close the browser window and return to your terminal.
--org flag to set the organization name when authenticating.
--vanity-name flag to log in:
/login/. Do not pass the full custom sign-in URL.
Log in to CockroachDB Cloud on a headless server
If you are usingccloud on a headless machine, use the --no-redirect flag to log in. This allows you to log in to CockroachDB Cloud on a different machine, retrieve an authorization code, and enter the code on the headless machine so ccloud can complete authentication.
Next steps
Refer to the to learn how to use theccloud CLI tool to create and manage CockroachDB Cloud clusters.
