15 of 19Image
The almighty bin folder
Open up a File Explorer window and head over to the bin folder. The default location for this folder on a 64-bit Windows machine is C:\Program Files (x86)\DataStax Community\apache-cassandra\bin. A bunch of important files are here, including the cassandra-cli.bat file, which runs the CLI client, and the cqlsh Python script, which runs the Cassandra Query Language (CQL) Shell.
Double-click the cassandra-cli.bat file to load the CLI client now.
The CLI client
The CLI client lets you run such commands as USE (to address a specific keyspace) and CREATE COLUMN FAMILY (which is self-explanatory), both of which are shown here. Make sure to end all commands with a semi-colon. When you're done, type "exit;" at the prompt (without the quotes) and tap the Enter key.
CQL, here we come
CQL, the Cassandra Query Language, looks very much like SQL. Run the CQL shell by running the "cqlsh" python script back in the bin folder (double click the "cqlsh" file, then specify the application to run it with as the full path to python.exe on your machine).
Once you're in the CQL shell, you can use the USE command as you did in the CLI client. Then, SQL-like sytax becomes the norm. Use the CREATE TABLE command to create a column family, and use INSERT and SELECT to create data and query it, respectively. The commands shown here create a column family called "emp", insert a row of data into it and read the data back.