> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/server-side/command-line-interface/quickstart/quick-start-feature-experimentation.md).

# Feature experimentation

## 1 - Retrieve your credentials

{% hint style="warning" %}
🚧 Access to your credentials

This feature and the access to the [generation of credentials](https://docs.developers.flagship.io/reference/authorization) is related to the [Remote Control API](https://docs.developers.flagship.io/reference/getting-started), it's still in Early Adoption phase, if you want to try it and have any questions, feel free to ask [**product.feedback@abtasty.com**](mailto:product.feedback@abtasty.com)
{% endhint %}

Create credentials

<figure><img src="/files/G2Xtz0KMelmZflfKAPWc" alt=""><figcaption></figcaption></figure>

## 2 - Use [auth login](/server-side/command-line-interface/ab-tasty-cli-reference-v1xx/feature-experimentation/feature-experimentation-authentication.md) command

Once you retrieve your credentials, use the `abtasty-cli feat-exp auth login`cmd to create your auth file. You can create an auth file in two ways:

### insert credentials

```shell
abtasty-cli feat-exp auth login --username USERNAME -i CLIENT_ID -s CLIENT_SECRET -a ACCOUNT_ID
```

### insert a file

The file inserted must have the same schema as the example below to extract the credentials.

```yaml
username: username
account_id: ai
account_environment_id: aei
client_id: ci
client_secret: cs
```

```shell
abtasty-cli feat-exp auth login -p PATH_FILE
```

The `abtasty-cli feat-exp auth login` command creates a file with the username name as fileName and stores it in $HOME/.abtasty/credentials/fe/USERNAME.yaml and writes the value of the flags as key-value pairs then you can use the use command to generate the access token to manage your flagship resources automatically.

{% hint style="info" %}
📘 List configurations

You can use the command`abtasty-cli feat-exp auth list`to check your auth files
{% endhint %}

## Required for account environment-related resources - Use [account-environment use](/server-side/command-line-interface/ab-tasty-cli-reference-v1xx/feature-experimentation/feature-experimentation-account-environment.md) command

The use command lets you select the configuration you want to manage

```shell
abtasty-cli feat-exp account-environment use -i ACCOUNT_ENVIRONMENT_ID
```

The command generates a token that expires after 24 hours and automatically refreshes.

{% hint style="success" %}
👍 CLI usage

After selecting an auth file, you are good to go !
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.abtasty.com/server-side/command-line-interface/quickstart/quick-start-feature-experimentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
