# authentication

## abtasty-cli feature-experimentation authentication login

#### NAME

`abtasty-cli feature-experimentation authentication login` - Create auth file

#### SYNOPSIS

`abtasty-cli feature-experimentation authentication login [--credential-file] | [-u <username> | --username=<username>] [-i <clientID> | --client-id=<clientID>] [-s <clientSecret> | --client-secret=<clientSecret>] [-a <accountID> | --account-id=<accountID>] [-e <accountEnvID> | --account-environment-id=<accountEnvID>]`

{% hint style="info" %}
📘 Config file

You either insert your credentials in flags(username, client id, client secret, account id) or you use the path flag that contain these information and import them.
{% endhint %}

{% 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="https://233132171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBWu23t7Qv6wLLh6Hl5b4%2Fuploads%2Fgit-blob-e14fcc70625024f60180be1673d9c3aeec7d7fd7%2Fhttps___files.readme.io_e83d12c-create_credentials_plateform-ezgif.com-crop.gif?alt=media" alt=""><figcaption></figcaption></figure>

#### DESCRIPTION

Create an auth file based on the credentials (username, client\_id, client\_secret).

The command creates a file with the username as filename and stores username, client\_id, and client\_secret in `$HOME/.abtasty/credentials/fe/USERNAME.yaml`, and writes account\_id in `$HOME/.abtasty/credentials/fe/.cli.yaml`to manage your feature experimentation resources automatically.

#### EXAMPLES

```shell
abtasty-cli feature-experimentation authentication login -u USERNAME -i CLIENT_ID -s CLIENT_SECRET -a ACCOUNT_ID
```

#### REQUIRED FLAGS

`--username = _USERNAME_`

The username of the credentials

`--client-id = _CLIENT_ID_`

The client id of your feature experimentation account

`--client-secret = _CLIENT_SECRET_`

The client secret of your feature experimentation account

`--account-id = _ACCOUNT_ID_`

The account id of your feature experimentation account

`--account-environment-id = _ACCOUNT_ENV_ID_`

The account environment id of your feature experimentation account

`--credential-file = _PATH_FILE_`

The path for the file where you want to import credentials (username, clientID, clientSecret, accountID, accountEnvID).

Here's an example of the path file example.yaml, you must fill in the info from [Flagship plateform](https://app.flagship.io)

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

{% hint style="danger" %}
❗️ Required information

Username, client id, client secret, account id are required field, you either insert them as flags or import a file that contains them with the path flag.
{% endhint %}

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

After adding your configuration to the CLI, you are good to use it !
{% endhint %}

***

## abtasty-cli feature-experimentation authentication list

#### NAME

`abtasty-cli feature-experimentation authentication list` - List all authentications

#### SYNOPSIS

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

#### DESCRIPTION

List all authentications

#### EXAMPLES

```shell
abtasty-cli feature-experimentation authentication list
```

#### 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 authentication get

#### NAME

`abtasty-cli feature-experimentation authentication get` - Get an auth credentials

#### SYNOPSIS

`abtasty-cli feature-experimentation authentication get [-u USERNAME | --username=USERNAME]`

#### DESCRIPTION

Get an auth credentials

#### EXAMPLES

```shell
abtasty-cli feature-experimentation authentication get -u USERNAME
```

#### REQUIRED FLAGS

`--username = _USERNAME_`

The username of the credentials 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 authentication delete

#### NAME

`abtasty-cli feature-experimentation authentication delete` - Delete an auth

#### SYNOPSIS

`abtasty-cli feature-experimentation authentication delete [-u USERNAME | --username=USERNAME]`

#### DESCRIPTION

Delete an auth

#### EXAMPLES

```shell
abtasty-cli feature-experimentation authentication delete -u USERNAME
```

#### REQUIRED FLAGS

`--username = _USERNAME_`

The username of the credentials you want to delete

***

## abtasty-cli feature-experimentation authentication current

#### NAME

`abtasty-cli feature-experimentation authentication current` - Get the currently used authentication

#### SYNOPSIS

`abtasty-cli feature-experimentation authentication current`

#### DESCRIPTION

Get the currently used authentication

#### EXAMPLES

```shell
abtasty-cli feature-experimentation authentication current
```
