Command line interface

The DataCap CLI provides a terminal-based, interactive shell for running queries. The CLI is a self-executing JAR file, which means it acts like a normal UNIX executable.
Requirements

The CLI requires a Java virtual machine available on the path. It can be used with Java version 8 and higher.
The CLI uses the DataCap client REST API over HTTP/HTTPS to communicate with the system.
The CLI version should be identical to the version of system, or newer.
Installation

Download datacap-client-cli-1.6.0.jar , rename it to datacap, make it executable with chmod +x .
Running the CLI

bash
./datacap

connect -h 127.0.0.1 -p 9096 -u username -P password
If successful, you will get a prompt to execute commands. Use the help command to see a list of supported commands.
Command Description
source info Get data source details
source list Get a list of remote server data sources
source use Set the data source flag for subsequent operations on the data source
source execute "" Execute remote SQL
提交于 2025年2月19日 13:48
修改于 2025年2月19日 13:48