# agent adl list

List Agentforce Data Libraries in an org.

## Description for agent adl list

Returns all data libraries in the target org, including their source type, status, and library ID.

## Flags

| Flag Name (Long) | Flag Name (Short) | Description                                                                                                                                         |
| ---------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--api-version`  | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                          |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--source-type`  | N/A               | **Type:** Value<br>**Valid Values:** `sfdrive`, `knowledge`, `retriever`<br><br>Filter by source type: sfdrive, knowledge, or retriever.            |
| `--target-org`   | `-o`              | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for agent adl list

List all data libraries in the default target org:

```shell
sf agent adl list --target-org myOrg
```

List data libraries and output as JSON:

```shell
sf agent adl list --target-org myOrg --json
```
