---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/table-attribute-add.md
  - https://ydb.tech/docs/ru/reference/ydb-cli/table-attribute-add.md
sourcePath: en/core/reference/ydb-cli/table-attribute-add.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# table attribute add

With the `table attribute add` command, you can add a [custom attribute](https://ydb.tech/docs/en/concepts/datamodel/table.md#users-attr) to your table.

General format of the command:

```bash
ydb [global options...] table attribute add [options...] <table path>
```

* `global options`: [Global parameters](https://ydb.tech/docs/en/reference/ydb-cli/commands/global-options.md).
* `options`: [Parameters of the subcommand](#options).
* `table path`: The table path.

Look up the description of the command to add a custom attribute:

```bash
ydb table attribute add --help
```

## Parameters of the subcommand {#options}

| Name          | Description                                                                                                                              |
|---------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `--attribute` | The custom attribute in the `<key>=<value>` format. You can use `--attribute` many times to add multiple attributes by a single command. |

## Examples {examples}

Add the custom attributes with the keys `attr_key1`, `attr_key2` and the respective values `attr_value1`, `attr_value2` to the `my-table` table:

```bash
ydb table attribute add --attribute attr_key1=attr_value1 --attribute attr_key2=attr_value2 my-table
```