Documentation Index
Fetch the complete documentation index at: https://braintrust.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
bt datasets manages remote Braintrust datasets directly from the CLI.
Subcommands
| Subcommand | Description |
|---|---|
bt datasets list | List all datasets in the current project |
bt datasets create <name> | Create a dataset, optionally seeding it with records |
bt datasets update <name> | Upsert records into a dataset (aliases: add, refresh) |
bt datasets view <name> | Display dataset metadata and preview records |
bt datasets delete <name> | Delete a dataset and all its records |
bt datasets list
bt datasets create
Create a dataset, optionally seeding it with records from a file, stdin, or inline JSON.Flags
| Flag | Description |
|---|---|
--description <TEXT> | Dataset description |
--file <PATH> | Seed from a JSONL file |
--rows <JSON> | Seed with an inline JSON array of rows |
When rows omit an
id field, bt datasets auto-generates stable record IDs.bt datasets update
Upsert records into an existing dataset. Also available asbt datasets add and bt datasets refresh.
Flags
| Flag | Description |
|---|---|
--file <PATH> | Input JSONL file |
--rows <JSON> | Inline JSON array of rows |
--id-field <PATH> | Dot-separated path to use as the record ID instead of the id field |
Each row must have a stable ID via the
id field or --id-field. Rows without IDs are rejected.update, add, and refresh upsert rows directly — rows not in the input are not deleted. refresh fails if the dataset does not exist.--id-field uses dot-separated paths (e.g., metadata.case_id). Escape literal dots as \. and literal backslashes as \\.Input may also be a JSON object with a top-level rows array (matching bt datasets view --json output). Each row in rows is validated against the accepted fields: id, input, expected, metadata, tags, and origin.bt datasets view
Display dataset metadata and preview records in the terminal.Flags
| Flag | Description |
|---|---|
--limit <N> | Maximum rows to show (default: 200) |
--all-rows | Show all rows regardless of dataset size |
--full | Show exact values without truncation |
--json | Output as JSON (compatible as input to bt datasets update) |