A command line utility to query the Aerospike database using SQL.
This tool wraps the Aerospike JDBC driver and is written in Kotlin.
- Java 8
- Build from source
./gradlew clean build
- Download an executable jar from the releases
Usage: aerospike-cli options_list
Options:
--host, -host [localhost] -> Aerospike cluster hostname { String }
--port, -port [3000] -> Aerospike cluster port { Int }
--namespace, -ns [] -> Aerospike namespace { String }
--options, -opts [] -> JDBC driver configuration options as a URL query string { String }
--version, -v [false] -> Show application version and exit
--help, -h -> Usage info
To run the application with the default values
java -jar build/libs/aerospike-cli-<version>-standalone.jar
Run specifying the namespace
java -jar build/libs/aerospike-cli-<version>-standalone.jar -ns test
Read more about optional configuration parameters.
Read how to create a UNIX executable from an executable jar file.
See the Aerospike JDBC Supported Statements page for query examples.
- SHOW SCHEMAS
- SHOW TABLES
- DESCRIBE table_name
Licensed under the Apache 2.0 License.