Electrode Native
v0.41
v0.41
  • 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
  • REFERENCE
    • Bundle Store
    • Composite
    • 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
  • GUIDES
    • Debugging multiple MiniApps
  • CLI COMMANDS
    • add
    • bundlestore
      • create
      • delete
      • upload
      • use
    • binarystore
      • add
      • get
      • remove
    • code-push
      • patch
      • release
      • promote
    • compat-check
    • create-api-impl
    • create-api
    • create-composite
    • create-container
    • create-plugin-config
    • publish-container
    • transform-container
    • create-miniapp
    • link
    • regen-api
    • regen-api-impl
    • run-android
    • run-ios
    • start
    • unlink
    • upgrade-miniapp
    • cauldron add
      • file
      • jsapiimpls
      • miniapps
      • nativeapp
    • cauldron config
      • get
    • cauldron del
      • file
      • jsapiimpls
      • miniapps
      • nativeapp
    • cauldron get
      • config
      • dependency
      • nativeapp
    • cauldron repo
      • add
      • clear
      • current
      • list
      • remove
      • use
    • cauldron update
      • file
      • jsapiimpls
      • miniapps
      • nativeapp
    • cauldron batch
    • cauldron regen-container
    • cauldron upgrade
    • cauldron why
    • github
      • github create-ref
      • github delete-ref
      • github align-dependencies
    • platform
      • plugins
        • list
        • search
      • config
        • set
        • get
        • del
        • list
      • install
      • versions
      • uninstall
      • use
Powered by GitBook
On this page
  • Description
  • Use Cases
  • Syntax
  • Remarks
  1. CLI COMMANDS

cauldron regen-container

Previouscauldron batchNextcauldron upgrade

Last updated 4 years ago

Description

Triggers the regeneration of a Container from the Cauldron.

Use Cases

  • In case one or more MiniApps in the Container of a native application version are tracking a specific git branch (for example ), using the regen-container command will trigger a new Container generation that will include the latest commits of the branch(es), if any.

  • In case there was a problem with one of the plugin configuration stored in the Manifest, or if you are using a different version of Electrode Native with an updated native Container template, the only way to propagate these native changes to the Container would be to use this command (just make sure to use the --fullRegen flag in that case, to force a native Container project regeneration even though there was no changes to the list of native dependencies to be included in the Container).

Syntax

ern cauldron regen-container

Options

-v/--containerVersion <version>

  • Specify the version of the new container.

  • Default Increment patch number of the current container version

    Example: If the current container version is 1.2.3 and a version is not included in the command, the new container version will be 1.2.4.

  • You can only use a version that is greater than the current version of the Container.

-d/--descriptor <descriptor>

  • The target native application version in the Cauldron (in the form of a complete native application descriptor) for which to regenerate the Container.

    Default Lists all non-released native application versions from the Cauldron and prompts you to choose one.

    Example ern cauldron regen-api -d MyNativeApp:android:1.0.0

--fullRegen

  • Performs a complete Container generation even if there was no native dependencies changes.

--resetCache\

  • Indicates whether to reset the React Native cache prior to bundling

  • Default false

--sourceMapOutput

  • Path to source map file to generate for this container bundle

Remarks

  • This command should only be used if you need to regenerate a Container for a native application version, without adding/removing/updating any MiniApp or native dependencies (very limited use case)

The command can also generate a container given a complete native application descriptor. But the will only create the Container locally and not update the Cauldron or publish the new version.

https://github.com/electrode-io/MovieListMiniApp#master
ern create-container
ern create-container