# authentication

## abtasty-cli web-experimentation authentication login

#### NAME

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

#### SYNOPSIS

`abtasty-cli web-experimentation authentication login [-u <username> | --username=<username>] [-i <clientID> | --client-id=<clientID>] [-s <clientSecret> | --client-secret=<clientSecret>] [-a <accountID> | --account-id=<accountID>]`

{% 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 is 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 %}

<figure><img src="https://233132171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBWu23t7Qv6wLLh6Hl5b4%2Fuploads%2Fgit-blob-45ad425b34dd48fbf90636ff0405bfdc352f4531%2F1de63f8d10c9bcc97214d70e4730fb68a884a926d356703ae78db81fc78fb321-createWeCred.gif?alt=media" alt=""><figcaption><p>Create credentials</p></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/we/USERNAME.yaml`, and writes account\_id in `$HOME/.abtasty/credentials/we/.cli.yaml`to manage your web experimentation resources automatically.

#### EXAMPLES

```shell
abtasty-cli web-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 web experimentation account

`--client-secret = _CLIENT_SECRET_`

The client secret of your web experimentation account

`--account-id = _ACCOUNT_ID_`

The account id of your web experimentation account

You must fill in the info from [AB Tasty platform](https://app.flagship.io)

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

Username, client id, client secret, account id are required field, you either insert them as flags. You must fill in the info from [AB Tasty platform](https://app2.abtasty.com)
{% endhint %}

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

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

***

## abtasty-cli web-experimentation authentication list

#### NAME

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

#### SYNOPSIS

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

#### DESCRIPTION

List all authentications

#### EXAMPLES

```shell
abtasty-cli web-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 web-experimentation authentication get

#### NAME

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

#### SYNOPSIS

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

#### DESCRIPTION

Get an auth credentials

#### EXAMPLES

```shell
abtasty-cli web-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 web-experimentation authentication delete

#### NAME

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

#### SYNOPSIS

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

#### DESCRIPTION

Delete an auth

#### EXAMPLES

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

#### REQUIRED FLAGS

`--username = _USERNAME_`

The username of the credentials you want to delete

***

## abtasty-cli web-experimentation authentication current

#### NAME

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

#### SYNOPSIS

`abtasty-cli web-experimentation authentication current`

#### DESCRIPTION

Get the currently used authentication

#### EXAMPLES

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