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
  • Syntax
  • Examples
  • Related commands
  1. CLI COMMANDS
  2. cauldron add

file

Description

  • Add a file to the Cauldron

Syntax

ern cauldron add file <localFilePath> <cauldronFilePath>

Arguments

<localFilePath>

  • Absolute path to a file to add to the Cauldron

<cauldronFilePath>

  • Target file path in the Cauldron

  • Relative to the root of the Cauldron repository

  • Cannot start with /

  • Should include target file name (can be same as source filename or different)

  • Can contain nested directories

  • All directories will be created in the Cauldron if necessary.

Examples

  • ern cauldron add file /Users/username/bar.json foo/bar.json Add the file bar.json from local directory /Users/username to the foo directory of the Cauldron.

  • ern cauldron add file /Users/username/bar.json foo/new.json Add the file bar.json from local directory /Users/username to the foo directory of the Cauldron. Rename the file to new.json in the Cauldron.

Related commands

Previouscauldron addNextjsapiimpls

Last updated 4 years ago

| Update a file in the Cauldron | Remove a file from the Cauldron

ern cauldron update file
ern cauldron del file