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: