# 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="/files/lLOEOxVLN2XaHV6ocT5s" 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="/files/5oTWNBASd80bz7hndcJK" 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="/files/j01JUbRr1YiAoHTmeeD6" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="IntelliJ" %}

{% endtab %}
{% endtabs %}


---

# 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.welltested.ai/v1/welltested-ai/ide-assist/commands.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.
