# Manage configurations

{% hint style="warning" %}
🚧 This feature is still on beta phase

You may encounter some bugs with the configuration feature, to overcome the bugs use the "Clear all configuration" command to reinitialze the extension and reconfigure it.
{% endhint %}

### Overview

The configuration feature lets you manage multiple feature exp accounts and environments and easily switch between them.

Each configuration contains :

* username (unique)
* Client ID
* Client Secret

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

You can retrieve these data from the [platform](https://app.flagship.io) or follow these [instructions](https://flagship.zendesk.com/hc/en-us/articles/4499017687708--Acting-on-your-account-remotely)

<figure><img src="/files/sdgjQGLZAZDzaPJ2XU9J" alt=""><figcaption><p>Create credentials</p></figcaption></figure>

### Usage

If you log in for the first time, you will land on the welcome page, once you click on the configure button you will be instructed to insert a unique name for your configuration (we recommend accountName-EnvironmentName).

<figure><img src="/files/dObPOUcz4tmdkKT6Kt7I" alt=""><figcaption><p>Welcome page</p></figcaption></figure>

There are two ways to set a configuration:

* Insert the Client ID, Client Secret, Account ID then Account Environment ID.

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

* Import the IDs for a file. (Only JSON, YAML, and Yml are supported)

<figure><img src="/files/91CUrHlhp0CuBcgymmAw" alt=""><figcaption></figcaption></figure>

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

When you are all set up you can use the extension.

<figure><img src="/files/LlFMiHwy4NjxihIQC4s0" alt=""><figcaption><p>Example of logged extension</p></figcaption></figure>

If you want to add another configuration use the Manage configuration feature in the "Quick Access" panel

<figure><img src="/files/vuTg4MElZJ7ELZIkoBvT" alt=""><figcaption><p>Configuration feature</p></figcaption></figure>

{% hint style="info" %}
📘 Adding new configuration

Once you add a new configuration, it's not automaticly selected, you have to use the Manage configuration feature to select it.
{% endhint %}

Then on the + icon to insert a new configuration, you can select, edit or delete the configuration.

<figure><img src="/files/gH1kZqThM5jOcYHXjfrp" alt=""><figcaption><p>Operations on configuration</p></figcaption></figure>

{% hint style="warning" %}
🚧 Configuration validation

Validation of a configuration is performed after a selection.
{% endhint %}

<figure><img src="/files/ycBgwoH6tHATat6QU7du" alt=""><figcaption><p>Change configuration</p></figcaption></figure>

If you want to delete or clear all configurations and log out, use the built-in VSCode command ctrl+shift+p/⌘+shift+p then type "AB Tasty: Clear all configurations".

{% hint style="danger" %}
❗️ "AB Tasty: Clear all configurations" command is not reversible
{% endhint %}

{% hint style="warning" %}
🚧 Token expires after 24 hours

The token generated from the configuration expired after 24 hours, you have to reselect the configuration to generate a new token.
{% endhint %}

{% hint style="warning" %}
🚧 The VSCode extension use AB Tasty CLI

The extension use the [CLI](https://docs.developers.flagship.io/docs/abtasty-command-line-interface) to manage feature exp resources, so any changes made in configuration in the VSCode will affect the CLI authentication configuration.
{% endhint %}


---

# 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/integrations/visual-studio-code-extension/feature-experimentation/visual-studio-code-abtasty-extension-fe-manage-configurations.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.
