Before you begin
The CData CLI requires Java 17 or later. On Windows, the installer can automatically install Adoptium JRE 17 viawinget if no compatible JRE is detected.
Windows
Run the following command in PowerShell:- Checks for a compatible JRE. If none is found, installs Adoptium JRE 17 using
winget. - Installs the CData CLI to
%APPDATA%\Programs\CData\CData CLI tool\. - Adds the install directory to your
PATH.
macOS
Run the following command in your terminal:Linux
Run the following command in your terminal:Adding drivers
Download a driver
The easiest way to add a driver is to download it with the CLI. First, search CData’s published driver catalog to find a driver’s artifact ID:./lib by default — the same location the CLI auto-discovers:
--output <dir> to save the jar to a different directory, or --url <jar-url> to download from a direct URL instead.
Add a driver manually
You can also place driver JAR files yourself. The CData CLI discovers JDBC drivers from the following locations relative to the CLI executable:./— the current directory./lib/— alibsubdirectory
Third-party dependencies
Some CData drivers require third-party libraries that CData cannot bundle because of licensing restrictions. These dependencies may include a JAR file and, in some cases, a native library for your platform. Place these files in the./lib/ directory alongside the driver. The CData CLI automatically adds any non-CData JAR in ./lib/ to the driver’s classpath and adds the directory to the Java native library path, so the driver can load both the JAR and its native library at runtime.