# Commands

### SET API KEY

Save setup hassle of setting up a installing required dependencies and adding your API keys to .env.

{% tabs %}
{% tab title="VSCode" %}

1. Run the command `Welltested: Save API Key`
2. Paste your API key in the input window.

The package will auto setup required dependencies and env file.

<figure><img src="https://content.gitbook.com/content/tAnLSsYAHhs9z40FBfs5/blobs/hfLeDTi2eLNVU1v7zM7k/Easy%20Setup.gif" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Intellij" %}

{% endtab %}
{% endtabs %}

### Generate Unit Tests

Use to trigger the generate CLI command. Generates unit tests for all annotated classes.

{% tabs %}
{% tab title="VSCode" %}

1. Run command `Welltested: Generate Unit Tests`

You'll see the CLI command triggered. The tests will appear in the `/test` folder once the operation finishes.

<figure><img src="https://content.gitbook.com/content/tAnLSsYAHhs9z40FBfs5/blobs/3d0Ss21BiGqcECp7Wv2z/Generate%20Unit%20Tests.gif" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="IntelliJ" %}

{% endtab %}
{% endtabs %}

### Save Unit Tests

Use to trigger the save CLI command. Save updates to existing unit tests and their corresponding code files to the backend.

{% tabs %}
{% tab title="VSCode" %}

1. Run the command `Welltested: Save Unit Tests`

You'll see the CLI command triggered. All updates will be saved to the backend.

<figure><img src="https://content.gitbook.com/content/tAnLSsYAHhs9z40FBfs5/blobs/mp1FibmpCN2fNm30aju6/Save%20Unit%20Tests.gif" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="IntelliJ" %}

{% endtab %}
{% endtabs %}
