ScyllaDB University LIVE, FREE Virtual Training Event | March 21
Register for Free
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs ScyllaDB Documentation Get Started with ScyllaDB Query Data CQL

CQL¶

CQL, or Cassandra Query Language, is a query language for interacting with ScyllaDB, which is similar in syntax and usage to SQL for relational databases. It allows you to define, query, and modify data. CQL is designed to be simple and intuitive, making it easier for those familiar with SQL to transition to working with ScyllaDB.

Learning and mastering CQL is crucial for designing queries. See the ScyllaDB documentation for CQL reference and CQL-related topics.

Using cqlsh¶

cqlsh is a command-line shell for interacting with ScyllaDB through CQL. It provides an interface to run CQL commands and scripts. cqlsh connects to a ScyllaDB node and allows you to execute CQL commands directly. This tool is essential for database management tasks and querying data.

You can connect to the node you started earlier in this guide, with cqlsh using the following command:

docker exec -it scylla cqlsh

The output of this command will look something like this:

Connected to  at 172.17.0.2:9042.
[cqlsh 5.0.1 | Cassandra 3.0.8 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cqlsh>

See CQLSh: the CQL shell for details.

Was this page helpful?

PREVIOUS
Query Data
NEXT
Schema
  • Create an issue
  • Edit this page

On this page

  • CQL
    • Using cqlsh
ScyllaDB Documentation
  • Get Started with ScyllaDB
    • Why ScyllaDB?
    • Develop with ScyllaDB
      • Run ScyllaDB
      • Install a Driver
      • Connect an Application
      • Tutorials and Example Projects
    • Query Data
      • CQL
      • Schema
      • Inserting Data
      • Reading Data
      • Updating Data
      • Deleting Data
    • Data Modeling
      • Query Design
      • Schema Design
      • Data Modeling Best Practices
    • Learn to Use ScyllaDB
  • Versioning and Support Policy
    • ScyllaDB Version Support
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 07 May 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6
OSZAR »