# regen-api-impl

## Description

* Regenerate an existing API implementation located in the current working directory.

## Syntax

`ern regen-api-impl`

**Options**

`--apiVersion/-v`

* Version of the api for which the implementation needs to be generated. If not passed, the latest available version of the api will be picked up.

`--hasConfig`

* Indicates if this api implementation requires some config during initialization. This command will be stored and reused during container generation to enforce config initialization

`--manifestId <manifestId>`

* Id of the override Manifest entry to retrieve dependencies versions from (see [override Manifest](/v0.44/reference/index-3/override.md) for more info)

## Remarks

* This command is used for example, if you add new requests to an api and would like to regenerate the implementation code for the same.
* This command will only regenerate the read-only files inside the implementation project to avoid overriding any local changes made to the request handler implementations.
* Once the command is executed, it may be required to fix any compilation issues in those files before publishing the code a git repo or npm.
* This command must be executed from within the root directory of an API implementation project that was initially created using the `ern create-api-impl` command.


---

# 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://native.electrode.io/v0.44/cli-commands/regen-api-impl.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.
