# targeting-key

## abtasty-cli feature-experimentation targeting-key create

#### NAME

`abtasty-cli feature-experimentation targeting-key create` - Create a targeting key

#### SYNOPSIS

`abtasty-cli feature-experimentation targeting-key create [-d DATA_RAW | --data-raw = DATA_RAW]`

#### DESCRIPTION

Create a targeting key in your account

#### EXAMPLES

```shell
abtasty-cli feature-experimentation targeting-key create -d DATA_RAW
```

```shell
abtasty-cli feature-experimentation tk create -d "{\"name\":\"TARGETING_KEY_NAME\",\"type\":\"string\",\"description\":\"TARGETING_KEY_DESC\"}"
```

#### REQUIRED FLAGS

`--data-raw = _DATA_RAW_`

The raw data contains all the info to create your targeting key, check the [Remote Control documentation](/server-side/remote-control-api.md) for more details

{% hint style="danger" %}
❗️ Raw data format

Note that you should insert data without spaces, line breaks, tabulation etc...
{% endhint %}

***

## abtasty-cli feature-experimentation targeting-key list

#### NAME

`abtasty-cli feature-experimentation targeting-key list` - List all targeting keys

#### SYNOPSIS

`abtasty-cli feature-experimentation targeting-key list [--output-format = OUTPUT_FORMAT [table|json|json-pretty]]`

#### DESCRIPTION

List all targeting keys in your account

#### EXAMPLES

```shell
abtasty-cli feature-experimentation targeting-key list
```

#### FLAGS

`--output-format = _OUTPUT_FORMAT_`

The output format for printing command output resources. The default is table. The supported formats: json-pretty, table, json.

***

## abtasty-cli feature-experimentation targeting-key get

#### NAME

`abtasty-cli feature-experimentation targeting-key get` - Get a targeting key

#### SYNOPSIS

`abtasty-cli feature-experimentation targeting-key get [-i TARGETING_KEY_ID | --id = TARGETING_KEY_ID]`

#### DESCRIPTION

Get a targeting key in your account

#### EXAMPLES

```shell
abtasty-cli feature-experimentation targeting-key get -i TARGETING_KEY_ID
```

#### REQUIRED FLAGS

`--id = _TARGETING_KEY_ID_`

The id of the targeting key you want to display

#### FLAGS

`--output-format _OUTPUT_FORMAT_`

The output format for printing command output resources. The default is table. The supported formats are: json-pretty, table, json.

***

## abtasty-cli feature-experimentation targeting-key edit

#### NAME

`abtasty-cli feature-experimentation targeting-key edit` - Edit a targeting key

#### SYNOPSIS

`abtasty-cli feature-experimentation targeting-key edit [-i TARGETING_KEY_ID | --id = TARGETING_KEY_ID] [-d DATA_RAW| --data-raw = DATA_RAW]`

#### DESCRIPTION

Edit a targeting key in your account

#### EXAMPLES

```shell
abtasty-cli feature-experimentation targeting-key edit -i TARGETING_KEY_ID -d DATA_RAW
```

#### REQUIRED FLAGS

`--id = _TARGETING_KEY_ID_`

The id of the targeting key you want to edit

`--data-raw = _DATA_RAW_`

The raw data contains all the info to edit your targeting key, check the [Remote Control documentation](https://docs.developers.flagship.io/reference/schema-targeting-keys) for more details

{% hint style="danger" %}
❗️ Raw data format

Note that you should insert data without spaces, line breaks, tabulation etc...
{% endhint %}

***

## abtasty-cli feature-experimentation targeting-key delete

#### NAME

`abtasty-cli feature-experimentation targeting-key delete` - Delete a targeting key

#### SYNOPSIS

`abtasty-cli feature-experimentation targeting-key delete [-i TARGETING_KEY_ID | --id = TARGETING_KEY_ID]`

#### DESCRIPTION

Delete a targeting key in your account

#### EXAMPLES

```shell
abtasty-cli feature-experimentation targeting-key delete -i TARGETING_KEY_ID
```

#### REQUIRED FLAGS

\`--id = *TARGETING\_KEY\_ID*

The id of the targeting key you want to delete


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/server-side/command-line-interface/ab-tasty-cli-reference-v1xx/feature-experimentation/feature-experimentation-targeting-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
