Skip to content

Structure

ReactNativeCLI

A typed wrapper for npx react-native CLI commands used by ShipItKit.

struct ReactNativeCLI

Overview

React Native CLI commands are invoked via npx react-native <subcommand> to ensure the project-local version of the CLI is always used, regardless of global installs.

Usage

let output = try await ReactNativeCLI(context: context.shell)
    .buildAndroid(mode: "release")
    .run()

Topics

Initializers

Instance Properties

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype
  • SwiftyShell.OutputRedirectingCommandFamily
  • SwiftyShell.RunnableCommandFamily
  • SwiftyShell.ToolConfigurableCommandFamily