upload
This command can only be used with access to an Electrode Native bundle store server
To use this command, the bundleStore config must be set in cauldron
Description
Upload a JS bundle to the current store.
Remarks
Both iOS and Android bundles will be generated and uploaded to the store by default. If you only need to upload a bundle for a single platform, use the
--platformoption.By default development bundle(s) will be generated. If you rather need to upload a production bundle you can use the
--prodflag.There are three different ways to generate and upload a bundle :
Using a Cauldron, by providing a descriptor and eventually some extra JS dependencies (
--descriptor/--extraJsDependenciesoption)By manually specifying all the MiniApps/JS API Implementations and extra JS dependencies to put in the bundle (
--miniapps/--jsApiImpls/--extraJsDependenciesoptions)From a metro server (packager) running locally (
--fromPackagerflag)
Syntax
ern bundlestore upload
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>
Generate and upload a JS bundle out of all the MiniApps/JS API implementations associated to this complete native application descriptor.
Mutually exclusive with
--miniapps/--jsApiImplsoptions.
--extraJsDependencies/-e <dependencies>
Add extra JavaScript dependencies to the JS bundle to upload.
Can be used in combination with
--descriptoror--miniapps/--jsApiImplsoptions.
--fromPackager
Get and upload the bundle served by the current local metro server (packager).
A metro server must be running on
localhost:8081in order to use this flag.Mutually exclusive with
--descriptor/-miniapps/jsApiImpls/extraJsDependenciesoptions.
--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.
Can only be used in combination with the
--descriptoroption.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.
Mutually exclusive with
--descriptoroption.
--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.
Mutually exclusive with
--descriptoroption.
--platform
Set this option to generate and upload bundle for a single platform.
Either
androidorios.If this option is not provided, both iOS and Android bundles will be generated and uploaded.
--prod
Set this flag to generate and upload a production bundle.
If this flag is not set, a development bundle will be generated and uploaded.
--resetCache
Indicates whether to reset the React Native cache prior to bundling
Default false
Related commands
bundlestore create | Create a store bundlestore use | Use a specific store bundlestore delete | Delete a store
Last updated