Electrode Native
v0.21
v0.21
  • Introduction
  • INTRODUCTION
    • Overview
      • What is Electrode Native
      • Why use Electrode Native
      • What is a MiniApp
      • Electrode Native workflow
      • Native dependencies management
      • JS/Native communication
      • Requirements
      • Upgrading Electrode Native
      • Contributing
  • QUICK START
    • Building a Movie application
  • REFERENCE
    • Container
      • What's inside
      • Publication
      • Integration
      • Initialization
      • Launching MiniApps
    • Cauldron
      • Structure
      • Setup
      • Compatibility checks
      • Guidelines
    • Manifest
      • Override
      • Native Modules
      • Configurable Modules
    • Runner
    • APIs
      • Project Generation
      • Implementation
      • Versioning
      • Guidelines
    • Bridge
      • Message Types
      • Communication
      • Leveraging APIs
    • CLI
      • Global CLI
      • Local CLI
    • GLOSSARY
  • CLI COMMANDS
    • add
    • binarystore
      • add
      • get
      • remove
    • code-push
      • patch
      • release
      • promote
    • compat-check
    • create-api-impl
    • create-api
    • create-container
    • publish-container
    • transform-container
    • create-miniapp
    • link
    • regen-api
    • regen-api-impl
    • run-android
    • run-ios
    • start
    • unlink
    • upgrade-miniapp
    • why
    • cauldron add
      • dependencies
      • jsapiimpls
      • miniapps
      • nativeapp
      • publisher
    • cauldron del
      • dependencies
      • jsapiimpls
      • miniapps
      • nativeapp
    • cauldron get
      • config
      • dependency
      • nativeapp
    • cauldron repo
      • add
      • clear
      • current
      • list
      • remove
      • use
    • cauldron update
      • dependencies
      • jsapiimpls
      • miniapps
      • nativeapp
    • cauldron batch
    • cauldron regen-container
    • cauldron upgrade
    • platform
      • plugins
        • list
        • search
      • config
      • current
      • install
      • list
      • uninstall
      • use
Powered by GitBook
On this page
  • Description
  • Syntax
  • Related commands
  1. CLI COMMANDS

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 publish-container]: ./publish-container.md

Previouspublish-containerNextcreate-miniapp

Last updated 6 years ago

| Create a new Container (native or JavaScript only) locally to the workstation. [ern publish-container] | Publish a Container.

ern create-container