Metro

Metro

  • Docs
  • API
  • Help
  • Blog
  • GitHub

›API Reference

Introduction

  • Getting Started
  • Concepts
  • Bundling
  • Caching

API Reference

  • API
  • Configuring Metro
  • Metro CLI Options

Guides

  • Troubleshooting
Edit

Metro CLI Options

The metro command line runner has a number of useful options. You can run metro --help to view all available options. Here is a brief overview:

build <entry>

Generates a JavaScript bundle containing the specified entrypoint and its descendants.

Options

OptionDescription
outLocation of the output

serve

Starts a Metro server on the given port, building bundles on the fly.

← Configuring MetroTroubleshooting →
Metro
Docs
Getting StartedAPI Reference
Community
Stack OverflowTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2018 Facebook Inc.