drivers command group lets you search and download drivers, list installed drivers, activate licenses, and inspect connection properties.
Driver library directory
Thedrivers commands read and write drivers in the driver library directory. By default, this is %APPDATA%\CData\lib\ on Windows and ~/.config/CData/lib/ on macOS and Linux. To use a different directory, set the CDATACLI_HOME environment variable to a valid directory path, or pass -l, --lib <directory> to a command. The -l option takes precedence over CDATACLI_HOME. See Driver library directory for details.
drivers search
Searches the CData driver catalog and returns a list of available drivers. Use this command to find the artifact ID needed to download a driver.
Examples
Search for all available drivers:
drivers download
Downloads a CData JDBC driver JAR from the driver catalog or a direct URL. The JAR is saved to the driver library directory by default, which is the location the CLI reads drivers from.
Examples
Download a driver by artifact ID:
drivers list
Lists all CData JDBC drivers in the driver library directory.
Examples
List the drivers in the driver library directory:
drivers activate
Activates a CData JDBC driver using a license key or trial. This command is non-interactive and suitable for scripting.
Examples
Activate with a license key:
drivers connectionprops
Shows connection properties for a driver, including type, description, default values, allowed values, and per-auth-scheme property hierarchies. By default, returns basic properties. Use--full to return advanced properties instead.
Examples
Show basic connection properties:
jdbcJson.basic (or jdbcJson.advanced with --full). Basic properties that vary by auth scheme include a hierarchyRules object keyed by scheme name. Output is trimmed for clarity.