CQL – Cassandra Query Language is the language to communicate with Cassandra Database.
CQLSH – This is the Command Line Utility used to execute the commands to communicate with Cassandra database.

To start the utility we need to give the command cqlsh either in linux terminal or windows command prompt. The default listen port for cqlsh is 9042.

Syntax:

Example:

Note: Before starting the utility, you need to check if the Cassandra Path to bin directory is configured or not.

Below is an example to start cqlsh with authentication

To terminate the command we need to use the semicolon where as a new line will not terminate the command rather it is used to spread the program or commands across multiple lines for more clarity and indentation.