Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[authentication]

Credentials for connecting to the cluster.

[authentication]
username = cassandra
password = cassandra
credentials = /path/to/credentials
keyspace = my_keyspace

Keys

KeyTypeDescription
usernamestringAuthentication username. Overridden by -u / --username.
passwordstringAuthentication password. Overridden by -p / --password.
credentialsstringPath to a credentials file (one username= and password= line each).
keyspacestringDefault keyspace to connect to. Overridden by -k / --keyspace.

Notes

  • CLI flags (-u, -p, -k) take precedence over cqlshrc values.
  • The credentials file is read if username/password are not set directly.