All apps/React Native CLI

React Native CLI

react-native

Command line tools that ship with React Native.

Runs as react-native|macOS, Linux, Windows|reactnative.dev

Command form

ai-draft · 3 tasks · 14 fields

Start Metro and run an app on the iOS simulator. Android, bundling and init are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui react-native

react-native start

Start Metro

Start the Metro bundler web server.

Start MetroExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Reset cache
--reset-cache
Advanced
Verbose
--verbose
TasksEach one presets the form for one job
Start Metro
portreset_cacheverbose
Start with clean cache
portreset_cache
ParametersOnly these flags are editable in the form
Port
integer
--port
Host
string
--host
Project root
path
--projectRoot
Reset cache
boolean
--reset-cache
Verbose
boolean
--verbose
HTTPS
boolean
--https
Non-interactive
boolean
--no-interactive

react-native run-ios

Run on iOS

Build the app and start it on an iOS simulator or device.

Run on iOSExample values, fixed in this page — nothing here reaches a terminal
Basic
Simulator
string
Configuration
string
Xcode scheme
string
TasksEach one presets the form for one job
Run on a simulator
simulatorconfigurationscheme
ParametersOnly these flags are editable in the form
Simulator
string
--simulator
Configuration
string
--configurationDebugRelease
Xcode scheme
string
--scheme
Device UDID
string
--udid
Do not launch packager
boolean
--no-packager
Packager port
integer
--port
Verbose
boolean
--verbose
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed react-native against its version. A form that does not match your version is not offered.