agent adl file list

List files in an Agentforce Data Library.

Description for agent adl file list 

Returns the list of files in an SFDRIVE library including file name, size, and creation date.

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑library‑id‑iType: Value
Required

Agentforce Data Library ID (18-char Salesforce ID with prefix 1JD).
‑‑offsetN/AType: Value

Number of files to skip before returning results (for pagination).
‑‑page‑sizeN/AType: Value
Default value: 50

Number of files to return per page (1-200, default 50).
‑‑statusN/AType: Value
Valid Values: uploaded, indexing, indexed, index_failed, deleting, delete_failed

Filter files by indexing status.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Examples for agent adl file list 

List files in a data library:

1sf agent adl file list --library-id 1JDSG000007IbWX4A0 --target-org myOrg

List files and output as JSON:

1sf agent adl file list --library-id 1JDSG000007IbWX4A0 --target-org myOrg --json