Electrode Native
v0.40
v0.40
  • 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
  • Syntax
  • Related commands
  1. CLI COMMANDS

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] 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

[custom Composite]: ./platform-parts/composite/index.md

Previouscreate-apiNextcreate-container

Last updated 4 years ago

| Creates a Container locally

ern create-container