The CREATE KEYSPACE
statement looks similar in CLI and CQL. The statement you used is valid CQL (see the CQL documentation on CREATE KEYSPACE):
CREATE KEYSPACE hr WITH replication={'class':'SimpleStrategy', 'replication_factor':1};
The equivalent statement in CLI would be:
CREATE KEYSPACE hr WITH placement_strategy = 'SimpleStrategy' AND strategy_options = {replication_factor:1};
There is no CREATE_KEYSPACE
in either CLI or CQL. That's just the way the help documentation works (spaces are replaced with underscores). See also, for example the SELECT_EXPR
entry in the help documentation.