# 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 flagship accounts and environments and easily switch between them.

Each configuration contains :

* Name (unique)
* Client ID
* Client Secret
* Account ID
* Account environment ID

<figure><img src="https://files.readme.io/0655d89-Screenshot_2023-11-22_at_10.24.51.png" 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="https://files.readme.io/72dce88-create_credentials_plateform.gif" alt=""><figcaption><p>Create credentials</p></figcaption></figure>

### Usage

If you log in for the first time, you will land on the configuration page. This page contains two segments, the first one is to manage configuration, and the second one is to manage the configuration list. You can add configuration using a file or fill out a form.

<figure><img src="https://files.readme.io/06deb20-image.png" alt=""><figcaption><p>Configuration page</p></figcaption></figure>

There are two ways to set a configuration:

* Insert the Name, Client ID, Client Secret, Account ID then Account Environment ID.
* Import the IDs for a file. (Only JSON, YAML, and Yml are supported)

<figure><img src="https://files.readme.io/618dcdb-image.png" alt=""><figcaption><p>Example of a configuration file to import</p></figcaption></figure>

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

If you want to add another configuration use the Manage configuration feature in the second segment of the configuration page.

<figure><img src="https://files.readme.io/419aa55-image.png" 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 right-click on it and use select configuration action.
{% endhint %}

You have to right-click a configuration, you want to select, edit or delete.

<figure><img src="https://files.readme.io/7bf6af4-configurationAction.gif" alt=""><figcaption><p>Operations on configuration</p></figcaption></figure>

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

Validation of a configuration is performed after a selection.
{% 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" %}
🚧 Jetbrain plugin use Flagship CLI

The plugin use the [CLI](https://docs.developers.flagship.io/docs/flagship-command-line-interface) to manage flagship resources, so any changes made will affect the CLI configurations.
{% endhint %}
