ern create-container
Description
- Create a new container (native or JavaScript only) locally to the workstation
Syntax
ern create-container
Options
--version/-v <version>
- Specify the version to use for the Container
- The version must be in the format:
x.y.z
where x, y and z are integers. For exampleversion=1.2.30
. - Default If you don't provide an explicit version, the default version 1.0.0 is used.
--jsOnly/--js
- Create a JavaScript-only container
- A JavaScript-only container is also known as a MiniApps composite.
- Default If this option is not used, a full native container including the JavaScript bundle containing all MiniApps, is generated.
--descriptor/-d <descriptor>
- Create a new container including all the MiniApps listed in the Cauldron for the given complete native application descriptor
- Use this option if you want to locally generate a container that mirrors the container of a given native application version.
--miniapps/-m <miniapps>
- Create a new custom container including all the given MiniApps
- The MiniApps passed to this command can be a valid Yarn package format or a Git format or file scheme.
--dependencies/-deps <dependencies>
- Inject the provided extra native dependencies in your locally generated container
- This option can only be used when generating a container that is not JavaScript only (
--js
switch), or based on a native application version from Cauldron (--descriptor
option).
For the latter, if you want to add extra native dependencies to your container that are not listed as dependencies of any of the MiniApps, you can instead use theern cauldron add dependencies
command to add the extra native dependencies directly in the native application version stored in Cauldron.
You can only provide published dependencies to this command.
You cannot use the Git or file package descriptors for referring to the dependencies.
--platform/-p <android|ios>
- Specify the target platform for this container
- If not explicitly provided, the command prompts you to choose between the iOS or the Android platform before execution.
--outDir/-o <directory>
- Specify the output directory where the container generated project should be stored upon creation
- Default If this option is not provided, the container is generated in the default platform directory
~/.ern/containergen/out
.
Remarks
- The
ern create-container
command can be used to create a container locally, for development, debugging and experimentation purposes. - To create a container that is published so that your native application team can use the container, you should use one of the Cauldron commands to add your MiniApps to a specified native application version in the Cauldron, which will trigger the generation and publication of a Container. See Related commands.
- For Android OS, the Container is also published to your local Maven repository.
Related commands
ern cauldron add miniapp | Add one or more MiniApps to a non-released native application version in a Cauldron