You use cqlsh for querying the Cassandra database from the command line. All of the commands included in CQL are available on the cqlsh command line. Several cqlsh commands, however, are not included in CQL. The command table of contents lists these commands by type.You can run cqlsh-only commands from only the command line.
This document describes CQL 3.0.0, cqlsh, and the Command Line Interface (CLI) for querying Cassandra.