Astra DB simplifies cloud-native Cassandra application development. Each DataStax Astra DB database includes an embedded CQL shell instance. In the Astra DB 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 DB database without navigating outside of your browser.
As convenient as it is to be able to access the CQL Console in the browser, a developer may want additional flexibility of connecting to Astra via a CQL Console in a desktop application. As a developer, I often like to have prefer to have multiple terminal open. For example, I might work in two keyspaces simultaneously and want a CQL session for each keyspace. I often like keeping a CQL Console to view or manage DDL while using a separate CQL Console for DML.
As a developer, I’d like to be to manage multiple CQL Consoles that connect to my Astra database.
I’m primarily a Microsoft Stack developer and I’d like the solution to be able work within my Windows environment. This article is for you if you develop in the Windows environment. There are many terminal applications to choose from; however, this article will use a simple and free terminal application named Windows Terminal.
By the end of this article, you should be able to use a desktop terminal application to connect to your Astra database.
Start Windows Terminal. PowerShell should be the default Window
Create a new Terminal entry (if necessary)
wsl.exe -l --all
{
"guid": "{6f9994f0-4403-5e85-9cce-98e5da3839bb}",
"hidden": false,
"name": "Ubuntu-16.04",
"source": "Windows.Terminal.Wsl"
}
export PATH=$PATH:~/cqlsh-astra/bin
$ source .bashrc
$ cqlsh
cqlsh> desc keyspaces;
The reader should now have a stand-alone console that can be used to connect to and manage Astra DB.