DataGrip 2026.2 Help

CLI commands for data sources

DataGrip provides command-line interface (CLI) commands for managing data sources. Command-line launcher paths are as follows:

<installation_directory>\bin\datagrip.exe

/Applications/<DataGrip_version>.app/Contents/MacOS/datagrip

<installation_directory>/bin/datagrip

With these commands, you can list, create, modify, and delete data sources, as well as manage driver artifacts.

Syntax
  • From launcher directory

    .\datagrip.exe dataSources <command> [options] [arguments]
    ./datagrip dataSources <command> [options] [arguments]
    ./datagrip.sh dataSources <command> [options] [arguments]
  • From any other directory

    datagrip.exe dataSources <command> [options] [arguments]
    datagrip dataSources <command> [options] [arguments]
    datagrip.sh dataSources <command> [options] [arguments]

Data source commands include list and manage.

By default, commands read input from standard input (stdin) and write output to standard output (stdout). This allows you to integrate them into shell pipelines. For example:

<actions_prepare_script> | datagrip.exe dataSources manage -p <project_path> | <results_handling_script>
<actions_prepare_script> | datagrip dataSources manage -p <project_path> | <results_handling_script>
<actions_prepare_script> | datagrip.sh dataSources manage -p <project_path> | <results_handling_script>
29 May 2026