I want to save result of list command into file. How can I do it from cassandra-cli?
Right click on the output and select "Copy All as CSV" to paste the output in CSV.
cqlsh is a command-line interface for interacting with Cassandra using CQL (the Cassandra Query Language). It is shipped with every Cassandra package, and can be found in the bin/ directory alongside the cassandra executable.
Save the commands you'd type into a file to be used as a script, then invoke cli:
cassandra-cli <commands.txt >listing.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With