agent adl create (Developer Preview)
Create an Agentforce Data Library.
This command is available as a developer preview. The command isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don’t implement functionality developed with these commands or tools.
Creates a new data library in the target org. The –source-type flag determines the type of library: SFDRIVE (file upload), KNOWLEDGE (Salesforce Knowledge articles), or RETRIEVER (existing active Custom Retriever).
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑description | N/A | Type: Value Description of the data library (max 255 characters). |
‑‑developer‑name | N/A | Type: Value Required API name for the data library (max 80 characters, alphanumeric and underscores only, must start with a letter). |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑index‑mode | N/A | Type: Value Valid Values: basic, enhancedIndex mode for SFDRIVE libraries: basic or enhanced. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑name | ‑n | Type: Value Required Display name for the data library (max 80 characters). |
‑‑primary‑index‑field1 | N/A | Type: Value Primary index field 1 for KNOWLEDGE libraries (required, immutable after creation). |
‑‑primary‑index‑field2 | N/A | Type: Value Primary index field 2 for KNOWLEDGE libraries (required, immutable after creation). |
‑‑retriever‑id | N/A | Type: Value ID of an active Custom Retriever (required for RETRIEVER source type; retriever must be active). |
‑‑source‑type | N/A | Type: Value Required Valid Values: sfdrive, knowledge, retrieverType of grounding source: sfdrive (file upload), knowledge (Salesforce Knowledge articles), or retriever (existing active Custom Retriever). |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
Create an SFDRIVE library:
Create a KNOWLEDGE library with index fields:
Create a RETRIEVER library: