LinuxCommandLibrary

expo

Manage Expo React Native projects

TLDR

Build an Android APK or AAB

$ expo build:android
copy

Build an iOS IPA
$ expo build:ios
copy

Run the app in Expo Go
$ expo start
copy

Install a dependency
$ expo install [package_name]
copy

Prebuild native Android/iOS projects
$ expo prebuild
copy

Run the app on Android
$ expo run:android
copy

Run the app on iOS
$ expo run:ios
copy

SYNOPSIS

expo [options] <command> [<args>]

PARAMETERS

-V, --version
    output the version number

--no-dev
    disable development mode (for expo start)

--offline
    disable network requests

--fix
    clear package manager cache to fix dependencies

-h, --help
    display help for command

DESCRIPTION

The expo command-line interface (CLI) is the entry point for Expo, an open-source platform for building cross-platform apps with JavaScript and React for Android, iOS, and web.

Key features include project initialization, development server startup with hot reloading, dependency management via expo install, custom builds with expo build, over-the-air updates via expo publish, and ejection to bare React Native workflow.

Expo simplifies native development by providing managed workflows, pre-built modules, and cloud services, reducing boilerplate code. It's ideal for rapid prototyping but supports production apps.

Note: Original expo-cli deprecated in 2021; use npx expo or npm install -g @expo/cli for latest.

CAVEATS

Requires Node.js ≥14 and npm. Original expo-cli deprecated; prefer npx expo or @expo/cli. Not a core Linux utility.

INSTALLATION

npm install -g @expo/cli
or npx expo@latest for one-off use.

KEY SUBCOMMANDS

expo init <name> - new project.
expo start - dev server.
expo install <pkg> - managed install.
expo doctor - check setup.

HISTORY

Launched 2016 with Expo SDK 1.0 by Expo team (ex-Facebook). Gained popularity for managed React Native workflows. expo-cli deprecated Oct 2021 for slimmer @expo/cli.

SEE ALSO

npm(1), npx(1), node(1)

Copied to clipboard