# create-composite

## Description

* Create a JS Composite project locally.

## Syntax

`ern create-composite`

**Options**

`--baseComposite <compositePath>`

* Git or File System path, to the custom Composite repository (refer to the [custom Composite](https://github.com/electrode-io/electrode-native/tree/e86c1f492656649f478ce08ce08e71438020e5a8/docs/cli/platform-parts/composite/index.md) documentation for more information).

`--descriptor/-d <descriptor>`

* Create a new JS Composite including all the MiniApps listed in the Cauldron for the given *complete native application descriptor*

`--extraJsDependencies/-e <dependencies>`

* Add extra JavaScript dependencies to the JS Composite project.

`--fromGitBranches`

* Create Composite using the latest commits made to each of the MiniApp branches (HEAD), rather than using the MiniApps SHAs that are inside the current Container version.
* This flag is only used when creating a Composite from a Cauldron descriptor
* This flag will be ignored if the target descriptor does not contain any MiniApps tracking git branches

  **Default** false

`--jsApiImpls`

* One or more JS API implementation(s) to add to the JS Composite project.
* The JS API implementation(s) passed to this command can be a valid Yarn package format or a Git format or file scheme.
* This option can only be used if the `--descriptor` option is not used.

`--miniapps/-m <miniapps>`

* One or more MiniApps to add to the JS Composite project.
* The MiniApps passed to this command can be a valid Yarn package format or a Git format or file scheme.
* This option can only be used if the `--descriptor` option is not used.

`--outDir/--out <directory>`

* Specify the directory to output the generated JS Composite project to
* The output directory should either not exist (it will be created) or be empty
* **Default** If this option is not provided, the Composite is generated in the default platform directory `~/.ern/containergen/miniAppsComposite`.

## Related commands

[ern create-container](/v0.48/cli-commands/create-container.md) | Creates a Container locally


---

# 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.48/cli-commands/create-composite.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.
