Command reference
deployments brain-source
Brain knowledge sources
| Command | Summary |
|---|---|
deployments brain-source list | List Brain sources |
deployments brain-source create | Create a Brain source |
deployments brain-source list
List Brain sources.
deployments brain-source list <brain>- Calls
GET /v1/brains/{brainId}/sources(SDKlistBrainSources). - Needs an organization:
--orgor the saved context. - Paginated.
--page-sizesets the page size; pass the returned cursor as--cursorfor the next page.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--cursor | string (cursor) | Pagination cursor | ||
--page-size | string (number) | Page size | ||
<brain> | positional | yes | Brain ID |
Also accepts the global flags.
deployments brain-source create
Create a Brain source.
deployments brain-source create <brain> --kind <kind> --name <name>- Calls
POST /v1/brains/{brainId}/sources(SDKcreateBrainSource). - Needs an organization:
--orgor the saved context. - Sends an idempotency key. The CLI generates one per run; pass
--idempotency-keyto retry safely.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
<brain> | positional | yes | Brain ID | |
--connection-id | string | Provider connection ID | ||
--kind | string | yes | Source kind | |
--name | string | yes | Source name |
Also accepts the global flags.