ax datasets commands let you create, retrieve, and manage datasets on the Arize platform. Supported file formats: CSV, JSON, JSON Lines, Parquet.
ax datasets list
List all datasets in a space.
| Option | Description |
|---|---|
--space | Filter by space name or ID |
--limit | Maximum number of results to return (default: 15) |
--cursor | Pagination cursor for the next page |
ax datasets get
Retrieve a dataset by name or ID.
| Option | Description |
|---|---|
--space | Space name or ID (required when using a dataset name instead of ID) |
ax datasets create
Create a new dataset from a local file.
| Option | Description |
|---|---|
--name | Name for the new dataset |
--space | Space name or ID to create the dataset in |
--file | Path to the data file (CSV, JSON, JSONL, or Parquet), or - for stdin |
--json | Inline JSON array of examples, e.g. '[{"question": "...", "answer": "..."}]' |
ax datasets export
Export examples from a dataset to a JSON file.
| Option | Description |
|---|---|
--space | Space name or ID (required when using a dataset name instead of ID) |
--version-id | Export examples from a specific dataset version (default: latest) |
--output-dir | Directory to write the output file (default: current directory) |
--stdout | Print JSON to stdout instead of saving to a file |
--all | Use Arrow Flight for bulk export — streams all examples |
ax datasets append
Append examples to an existing dataset. Provide examples via --json (inline) or --file. Exactly one input source is required.
| Option | Description |
|---|---|
--json | Inline JSON array of examples, e.g. '[{"question": "...", "answer": "..."}]' |
--file | Path to the data file (CSV, JSON, JSONL, or Parquet), or - for stdin |
--space | Space name or ID (required when using a dataset name instead of ID) |
--version-id | Dataset version to append to (default: latest version) |
ax datasets delete
Delete a dataset.
| Option | Description |
|---|---|
--space | Space name or ID (required when using a dataset name instead of ID) |
--force | Skip the confirmation prompt |