---
title: "Get-CatDataSourceList"
description: "Get-CatDataSourceList — the lists the open project loads data sources from."
url: "https://docs.justcat.it/reference/powershell-module/get-catdatasourcelist/"
---
# Get-CatDataSourceList

## Synopsis

```powershell
Get-CatDataSourceList
```

## Parameters

None (common parameters only).

## What it does

Intended to write the project's **data-source lists** — the places the project loads data-source definitions from (the project file itself, a YAML file, a database table, …). **In the current version the cmdlet returns the project's test lists**, the same objects as [`Get-CatTestList`](https://docs.justcat.it/reference/powershell-module/get-cattestlist/ "Get-CatTestList") — a defect in the module, not in your project. Until it is fixed, read the data-source lists from the project object: `(Get-CatProject).DataSourceLists`.

## Output

One list object. Today: the test lists (see [`Get-CatTestList`](https://docs.justcat.it/reference/powershell-module/get-cattestlist/ "Get-CatTestList")). Intended: `List<DataSourceList>` with `Name`, `ProviderNameAndVersion`, `ConnectionString`, `Query`, `Order`, `IsImplicit` (the project file's own list), `Settings`.

## Errors

`There is no CAT project open. Use Open-CatProject to open it.` when nothing is open.

## Examples

```powershell
Open-CatProject
# the data-source lists, reliably:
(Get-CatProject).DataSourceLists | Select-Object Name, ProviderNameAndVersion
```

## Related

- [Introduction](https://docs.justcat.it/reference/powershell-module/introduction/ "Introduction") — session model, logging, errors, sign-in.
- [`Get-CatProject`](https://docs.justcat.it/reference/powershell-module/get-catproject/ "Get-CatProject") — `DataSourceLists` on the project object.
- [Lists](https://docs.justcat.it/reference/project-file/lists/ "Lists") — what a data-source list is.

