Command Reference
Shell commands available in the cqlsh-rs interactive prompt. These are distinct from CQL statements — they control the shell itself.
Quick reference
| Command | Description |
|---|---|
| CAPTURE | Capture output to a file |
| CLEAR | Clear the terminal screen |
| CONSISTENCY | Get/set consistency level |
| COPY TO | Export table data to CSV |
| COPY FROM | Import CSV data into a table |
| DEBUG | Toggle debug mode |
| DESCRIBE | Schema introspection |
| EXIT / QUIT | Exit the shell |
| EXPAND | Toggle expanded (vertical) output |
| HELP | Show help |
| LOGIN | Re-authenticate with new credentials |
| PAGING | Configure automatic paging |
| SERIAL CONSISTENCY | Get/set serial consistency level |
| SHOW | Show version, host, or session trace info |
| SOURCE | Execute CQL from a file |
| TRACING | Toggle request tracing |
| UNICODE | Show Unicode/encoding info |
| USE | Switch keyspace |
CQL statements
All standard CQL statements (SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, etc.) are sent directly to the database for execution. Terminate statements with a semicolon (;).