CLI commands: list
Lists all data sources configured in the specified project.
- Syntax
- datagrip.exe dataSources list -p <project_path>
- Example
- datagrip.exe dataSources list -p C:\my_projects\cli_for_data_sources\
- Syntax
- datagrip dataSources list -p <project_path>
- Example
- datagrip dataSources list -p ~/my_projects/cli_for_data_sources/
- Syntax
- datagrip.sh dataSources list -p <project_path>
- Example
- datagrip.sh dataSources list -p ~/my_projects/cli_for_data_sources/
Options
- -p, --project
Path to the project directory.
Required: Yes
- -o, --output
Output file path. If omitted, DataGrip writes to stdout.
Required: No
Output format
For the list command, the output format is JSON:
{
"dataSources": [
{
"id": "unique-datasource-id",
"name": "My PostgreSQL",
"url": "jdbc:postgresql://localhost:5432/mydb"
}
]
}
In this JSON output, the fields contain information about a data source:
- id
Unique identifier.
- name
Display name.
- url
JDBC URL.
12 May 2026