Data Tables
Data Tables: Read, add, update, delete, duplicate, and rename data table rows. Unreal Engine 5 command reference with parameters and examples.
Data Tables: Read, add, update, delete, duplicate, and rename data table rows. Unreal Engine 5 command reference with parameters and examples.
10 commands. Each shows its parameters and an example, and has a copyable deep link, so you (or an AI agent) can jump straight to one.
create_data_tableCreate a new Data Table with a chosen row struct
Creates a Data Table asset whose rows use the given row struct. The row struct must be a valid table row, a C++ struct deriving from FTableRowBase or a Blueprint (User Defined) struct, exactly what the editor's 'Pick Row Structure' dialog lists. Pass either a struct name (e.g. "ItemData") or a full path (e.g. "/Script/Jiggify.ItemData"). Use list_data_table_row_structs to discover valid structs. Auto-saves.
| Parameter | Type | Required | Description |
|---|---|---|---|
| asset_path | string | Yes | Content path to create at (e.g. /Game/Data/DT_Items) |
| row_struct | string | Yes | Row struct name or full path (must derive from FTableRowBase or be a User Defined Struct) |
cfa create_data_table --asset-path /Game/Data/DT_Items --row-struct "ItemData"list_data_table_row_structsSearch structs usable as Data Table row structures (ranked best-match first)
Enumerates structs that can back a Data Table, C++ structs deriving from FTableRowBase plus Blueprint (User Defined) structs, matching the editor's 'Pick Row Structure' dialog. Results are RANKED by relevance to filter (exact name > prefix > substring in name > match in path) and the BEST max_results are returned, so 'top 5 matching Item' returns the 5 closest matches, not an arbitrary 5. The response includes total_matches and truncated so you know if more exist. Omit filter to list all (use a larger max_results). Use the chosen name/path as create_data_table's row_struct.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filter | string | No | Case-insensitive term ranked against struct name/path (exact > prefix > substring) |
| include_user_defined | bool | No | Include Blueprint (User Defined) structs |
| max_results | int | No | Return the top N ranked matches (e.g. 5 for the 5 closest) |
cfa list_data_table_row_structs --filter "Item" --max-results 5get_data_table_rowsGet all rows from a Data Table
Returns every row in a Data Table with all field values. Use get_data_table_schema first to understand column types.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
cfa get_data_table_rows --data-table-path /Game/Data/DT_Itemsget_data_table_rowGet a single row by name
Returns one row from a Data Table by its row name. More efficient than get_data_table_rows when you only need one row.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| row_name | string | Yes | Row name to look up |
cfa get_data_table_row --data-table-path /Game/Data/DT_Items --row-name "IronOre"get_data_table_schemaGet column names and types from row struct
Returns the struct definition behind a Data Table: column names, types, and default values. Always call this before adding or updating rows to understand the expected field types.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
cfa get_data_table_schema --data-table-path /Game/Data/DT_Itemsadd_data_table_rowAdd a new row with optional initial data
Adds a new row to a Data Table. The data parameter is a JSON object of column name to value matching the table's schema (get_data_table_schema lists the columns; a Blueprint struct column also accepts its display name). An unknown column or a value that does not fit its column fails the call, lists the columns, and adds no row. Auto-saves the table.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| row_name | string | Yes | New row name (must be unique) |
| data | json | No | JSON object of field values (check schema first) |
cfa add_data_table_row --data-table-path /Game/Data/DT_Items --row-name "CopperOre" --data '{"DisplayName":"Copper Ore","StackSize":100,"ItemForm":"Solid"}'update_data_table_rowUpdate specific fields on an existing row
Updates one or more fields on an existing Data Table row. Only the fields specified in data are modified; other fields keep their current values. An unknown column or a bad value fails the whole update, lists the columns, and leaves the row untouched. Auto-saves.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| row_name | string | Yes | Row name to update |
| data | json | Yes | JSON object of field values to update |
cfa update_data_table_row --data-table-path /Game/Data/DT_Items --row-name "IronOre" --data '{"StackSize":200}'delete_data_table_rowDelete a row by name
Removes a row from a Data Table. Auto-saves. Cannot be undone.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| row_name | string | Yes | Row name to delete |
cfa delete_data_table_row --data-table-path /Game/Data/DT_Items --row-name "OldItem"rename_data_table_rowRename a row in-place
Changes the name of an existing Data Table row while preserving all its data and order. Auto-saves.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| old_row_name | string | Yes | Current row name |
| new_row_name | string | Yes | New row name |
cfa rename_data_table_row --data-table-path /Game/Data/DT_Items --old-row-name "Item1" --new-row-name "IronIngot"duplicate_data_table_rowCopy a row under a new name
Creates a copy of an existing row with a new name, keeping all field values identical. Useful for creating similar items with minor variations.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_table_path | string | Yes | Content path to the data table |
| source_row_name | string | Yes | Source row name to copy from |
| new_row_name | string | Yes | New row name for the copy |
cfa duplicate_data_table_row --data-table-path /Game/Data/DT_Items --source-row-name "IronOre" --new-row-name "CopperOre"