https://github.com/reugn/aerospike-cli
A command line utility to query the Aerospike database using SQL
https://github.com/reugn/aerospike-cli
aerospike cli cli-app jdbc sql terminal
Last synced: about 2 months ago
JSON representation
A command line utility to query the Aerospike database using SQL
- Host: GitHub
- URL: https://github.com/reugn/aerospike-cli
- Owner: reugn
- License: apache-2.0
- Created: 2023-01-27T09:49:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T09:37:25.000Z (over 1 year ago)
- Last Synced: 2025-03-12T02:51:19.670Z (3 months ago)
- Topics: aerospike, cli, cli-app, jdbc, sql, terminal
- Language: Kotlin
- Homepage:
- Size: 129 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aerospike-cli
[](https://github.com/reugn/aerospike-cli/actions/workflows/build.yml)A command line utility to query the Aerospike database using SQL.
This tool wraps the [Aerospike JDBC driver](https://github.com/aerospike/aerospike-jdbc) and is written in Kotlin.## Prerequisites
* Java 8## Installation
* Build from source
```
./gradlew clean build
```
* Download an executable jar from the [releases](https://github.com/reugn/aerospike-cli/releases)## Usage
```
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--standalone.jar
```
Run specifying the namespace
```
java -jar build/libs/aerospike-cli--standalone.jar -ns test
```
Read more about optional [configuration parameters](https://github.com/aerospike/aerospike-jdbc/blob/main/docs/params.md).### Create UNIX executable
Read how to create a [UNIX executable from an executable jar](https://skife.org/java/unix/2011/06/20/really_executable_jars.html) file.## Supported SQL Statements
See the [Aerospike JDBC Supported Statements](https://github.com/aerospike/aerospike-jdbc/blob/main/docs/examples.md)
page for query examples.### Additional commands
* SHOW SCHEMAS
* SHOW TABLES
* DESCRIBE *table_name*## License
Licensed under the [Apache 2.0 License](./LICENSE).