# transform-container

## Description

* This command can be used to transform a local Container using a given Container transformer.

## Syntax

`ern transformer-container`

**Options**

`--containerPath`

* The local file system path to the directory containing the Container to transform.
* **Default**  If this option is not provided, the command will look for a Container in the default platform directory `~/.ern/containergen/out/[platform]`.

`--platform/-p <android|ios>`

* Specify the native platform of the target Container to transform.
* This option is required, there is no default.

`--transformer/-t <transformer>`

* Specify the Container transformer to use (for ex `build-config`).
* A semantic version for the transformer can be specified (for ex `build-config@1.0.0` or `build-config@^1.0.0`).
* It is also possible to pass a local file system path to a Container transformer package (only used for transformers development).
* This option is required, there is no default.

`--config/-c <config>`

* Extra configuration specific to the transformer used.
* Some transformers might not need an extra configuration. Check the specific Container transformer documentation for reference.
* The configuration is a json document.
* Configuration can either be a json string or the path to a file holding the configuration.

## Related commands

[ern create-container](/v0.21/cli-commands/create-container.md) | Create a new Container (native or JavaScript only) locally to the workstation. \[ern publish-container] | Publish a Container.

\[ern publish-container]: ./publish-container.md


---

# 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.21/cli-commands/transform-container.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.
