> For the complete documentation index, see [llms.txt](https://developers.make.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.make.com/make-cli/make-cli-reference/data-stores.md).

# Data stores

Use these commands to manage data stores, records, and structures with the Make CLI.

***

### Data stores

Manage your data stores.

***

#### `make-cli data-stores list`

List all data stores for a team.

**Options**

| Option      | Description                          | Required |
| ----------- | ------------------------------------ | -------- |
| `--team-id` | The team ID to filter data stores by | Yes      |

**Example**

```bash
make-cli data-stores list --team-id=5
```

***

#### `make-cli data-stores get`

Get data store details by ID.

**Arguments**

| Argument          | Description                                                                     | Required |
| ----------------- | ------------------------------------------------------------------------------- | -------- |
| `<data-store-id>` | The data store ID to retrieve. Can also be passed as `--data-store-id=<value>`. | Yes      |

**Example**

```bash
make-cli data-stores get 137
```

***

#### `make-cli data-stores create`

Create a new data store.

**Options**

| Option               | Description                                         | Required |
| -------------------- | --------------------------------------------------- | -------- |
| `--name`             | Name of the data store                              | Yes      |
| `--team-id`          | ID of the team to create the data store in          | Yes      |
| `--max-size-m-b`     | Maximum size in MB for the data store               | Yes      |
| `--datastructure-id` | ID of the data structure defining the record format | No       |

**Example**

```bash
make-cli data-stores create \
  --name=Customers \
  --team-id=5 \
  --max-size-m-b=1 \
  --datastructure-id=178
```

***

#### `make-cli data-stores update`

Update a data store.

**Arguments**

| Argument          | Description                                                                   | Required |
| ----------------- | ----------------------------------------------------------------------------- | -------- |
| `<data-store-id>` | The data store ID to update. Can also be passed as `--data-store-id=<value>`. | Yes      |

**Options**

| Option               | Description                               | Required |
| -------------------- | ----------------------------------------- | -------- |
| `--name`             | New name for the data store               | No       |
| `--max-size-m-b`     | New maximum size in MB for the data store | No       |
| `--datastructure-id` | New data structure ID                     | No       |

**Example**

```bash
make-cli data-stores update 137 --name='Updated Store' --max-size-m-b=2
```

***

#### `make-cli data-stores delete`

Delete a data store.

**Arguments**

| Argument          | Description                                                                   | Required |
| ----------------- | ----------------------------------------------------------------------------- | -------- |
| `<data-store-id>` | The data store ID to delete. Can also be passed as `--data-store-id=<value>`. | Yes      |

**Example**

```bash
make-cli data-stores delete 137
```

***

### Data store records

Manage your data store records.

***

#### `make-cli data-store-records list`

List all records in a data store.

**Options**

| Option            | Description                            | Required |
| ----------------- | -------------------------------------- | -------- |
| `--data-store-id` | The data store ID to list records from | Yes      |
| `--limit`         | Maximum number of records to return    | No       |

**Example**

```bash
make-cli data-store-records list --data-store-id=137
```

***

#### `make-cli data-store-records create`

Create a new record in a data store.

**Options**

| Option            | Description                               | Required |
| ----------------- | ----------------------------------------- | -------- |
| `--data-store-id` | The data store ID to create the record in | Yes      |
| `--key`           | Unique key for the record (optional)      | No       |
| `--data`          | Record data                               | Yes      |

**Example**

```bash
make-cli data-store-records create \
  --data-store-id=137 \
  --data='{
    "name": "John Doe",
    "email": "john.doe@example.com",
    "status": "active"
  }'
```

***

#### `make-cli data-store-records update`

Update an existing record in a data store.

**Arguments**

| Argument | Description                                                                | Required |
| -------- | -------------------------------------------------------------------------- | -------- |
| `<key>`  | Unique key of the record to update. Can also be passed as `--key=<value>`. | Yes      |

**Options**

| Option            | Description                             | Required |
| ----------------- | --------------------------------------- | -------- |
| `--data-store-id` | The data store ID containing the record | Yes      |
| `--data`          | Updated record data                     | Yes      |

**Example**

```bash
make-cli data-store-records update ecc4819b2260 \
  --data-store-id=137 \
  --data='{"status":"inactive"}'
```

***

#### `make-cli data-store-records replace`

Replace an existing record in a data store or create if it doesn't exist.

**Arguments**

| Argument | Description                                                                 | Required |
| -------- | --------------------------------------------------------------------------- | -------- |
| `<key>`  | Unique key of the record to replace. Can also be passed as `--key=<value>`. | Yes      |

**Options**

| Option            | Description                             | Required |
| ----------------- | --------------------------------------- | -------- |
| `--data-store-id` | The data store ID containing the record | Yes      |
| `--data`          | New record data                         | Yes      |

**Example**

```bash
make-cli data-store-records replace ecc4819b2260 \
  --data-store-id=137 \
  --data='{
    "name": "Jane Doe",
    "email": "jane.doe@example.com",
    "status": "active"
  }'
```

***

#### `make-cli data-store-records delete`

Delete specific records from a data store by keys.

**Options**

| Option            | Description                              | Required |
| ----------------- | ---------------------------------------- | -------- |
| `--data-store-id` | The data store ID to delete records from | Yes      |
| `--keys`          | Array of record keys to delete           | Yes      |

**Example**

```bash
make-cli data-store-records delete \
  --data-store-id=137 \
  --keys='["ecc4819b2260","8f7162828bc0"]'
```

***

### Data structures

Manage your data structures.

***

#### `make-cli data-structures list`

List data structures for a team.

**Options**

| Option      | Description                             | Required |
| ----------- | --------------------------------------- | -------- |
| `--team-id` | The team ID to list data structures for | Yes      |

**Example**

```bash
make-cli data-structures list --team-id=5
```

***

#### `make-cli data-structures get`

Get details of a specific data structure.

**Arguments**

| Argument              | Description                                                                             | Required |
| --------------------- | --------------------------------------------------------------------------------------- | -------- |
| `<data-structure-id>` | The data structure ID to retrieve. Can also be passed as `--data-structure-id=<value>`. | Yes      |

**Example**

```bash
make-cli data-structures get 178
```

***

#### `make-cli data-structures create`

Create a new data structure.

**Options**

| Option      | Description                                                                          | Required |
| ----------- | ------------------------------------------------------------------------------------ | -------- |
| `--team-id` | The unique ID of the team in which the data structure will be created                | Yes      |
| `--name`    | The name of the data structure. The maximum length of the name is 128 characters     | Yes      |
| `--strict`  | Set to true to enforce strict validation of the data put in the data structure       | No       |
| `--spec`    | Sets the data structure specification. Each item follows the Make Parameters Syntax. | Yes      |

**Example**

```bash
make-cli data-structures create \
  --team-id=5 \
  --name='Customer Data' \
  --strict \
  --spec='[
    {
      "name": "name",
      "type": "text",
      "label": "Name",
      "required": true
    },
    {
      "name": "email",
      "type": "text",
      "label": "Email",
      "required": true
    },
    {
      "name": "status",
      "type": "text",
      "label": "Status",
      "required": false
    }
  ]'
```

***

#### `make-cli data-structures update`

Update an existing data structure.

**Arguments**

| Argument              | Description                                                                           | Required |
| --------------------- | ------------------------------------------------------------------------------------- | -------- |
| `<data-structure-id>` | The data structure ID to update. Can also be passed as `--data-structure-id=<value>`. | Yes      |

**Options**

| Option     | Description                                                                          | Required |
| ---------- | ------------------------------------------------------------------------------------ | -------- |
| `--name`   | The name of the data structure. The maximum length of the name is 128 characters     | No       |
| `--strict` | Set to true to enforce strict validation of the data put in the data structure       | No       |
| `--spec`   | Sets the data structure specification. Each item follows the Make Parameters Syntax. | No       |

**Example**

```bash
make-cli data-structures update 178 --name='Updated Structure'
```

***

#### `make-cli data-structures delete`

Delete a data structure.

**Arguments**

| Argument              | Description                                                                           | Required |
| --------------------- | ------------------------------------------------------------------------------------- | -------- |
| `<data-structure-id>` | The data structure ID to delete. Can also be passed as `--data-structure-id=<value>`. | Yes      |

**Example**

```bash
make-cli data-structures delete 178
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.make.com/make-cli/make-cli-reference/data-stores.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
