---
title: create
description: |
  The `create` command defines a new key and assigns it a value derived from an
  expression. It is one of the most flexible commands in DataPrime, allowing you
  to **add new fields**, **populate missing data**, or **enrich existing
  structures** without overwriting parent keys.

  In practice, `create` acts like a safe write operation for structured data.

  !!! note
      Key creation is granular, meaning that parent keys in the path are not
      overwritten. This allows you to safely add fields within existing
      objects, even in nested log structures.
url: https://coralogix.com/docs/dataprime/language-reference/commands-reference/create/
product: dataengine
feature: DataPrime Language
feature_id: dataprime-language
feature_identifier: dataengine/dataprime-language
last_updated: '2026-10-21'
---

# `create`

## Description

The `create` command defines a new key and assigns it a value derived from an expression. It is one of the most flexible commands in DataPrime, allowing you to **add new fields**, **populate missing data**, or **enrich existing structures** without overwriting parent keys.

In practice, `create` acts like a safe write operation for structured data.

Note

Key creation is granular, meaning that parent keys in the path are not overwritten. This allows you to safely add fields within existing objects, even in nested log structures.

## Syntax

```
(a|add|c|create) <keypath> from <expression>
```
