Connecting to Astra databases using CQLSH

Use CQLSH to interact with your database through CQL commands.

The Cassandra Query Language SHell (CQLSH) is a command line shell for interacting with your database through Cassandra Query Language (CQL). This tool provides a useful interface for accessing the database and issuing CQL commands.

Embedded connection

Each DataStax Astra database includes an embedded CQLSH instance. In the DataStax Cloud console, navigate to your database and click the CQL Console tab to open a CQLSH instance that is connected to your database. Issue CQL commands directly to your Astra database without navigating outside of your browser.

Peripheral connection

Alternatively, you can connect to your Astra database using the standalone version of CQLSH or the native CQLSH included in DataStax Enterprise (DSE) or DataStax Distribution of Apache Cassandra (DDAC).