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
  • Remarks
  • Related commands
  1. CLI COMMANDS

start

Description

  • Create a composite bundle out of multiple MiniApps and start the react-native local packager to serve this bundle so that it can be loaded within the native host application

Syntax

ern start

Note

If you do not pass an argument to this command, you are prompted to select a native application version from the Cauldron. The command uses whatever MiniApp versions are curently declared in this native application version container to launch the command.

Options

--descriptor/-d <descriptor>

  • Target a specific native application version, associated to the provided complete native application descriptor.

  • This option uses whatever MiniApp versions are currently declared in this native application version container to launch the command.

--miniapps/-m <miniapps>

  • Specify one or more MiniApps to launch this command

  • The command packages all the provided MiniApps in a composite bundle and starts the react-native packager.

  • You can use any valid Yarn package descriptor for the MiniApps provided to this command, including Git and other file system path schemes.

--watchNodeModules/-w <nodemodules>

  • A list of one or more directory name(s) from node_modules that should be watched for changes.

--extraJsDependencies/-e <jsdependencies>

  • Additional JavaScript dependencies to add to the composite JavaScript bundle.

Platform Specific Options

Android

--packageName/-p <packagename>

  • Android application package name to avoid conflict with the names of classes or interfaces.

--activityName/-a <activity name>

  • Specify Android Activity to launch.

iOS --bundleId/-b

  • iOS Bundle Identifier unique to your app.

Remarks

  • This command can be used to package multiple MiniApps inside a single composite bundle and automatically start the react-native local packager to serve this bundle.

  • Use this command when you need to launch and develop or debug your MiniApps from within a native host application which contains other MiniApps along with your MiniApp.

  • This command works with the ern link command. For additional information, see the documentation for the ern link command.

Related commands

[ern link] | Link to a MiniApp directory

[ern link]: ./link.md

Previousrun-iosNextunlink

Last updated 6 years ago