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
Option | Description |
---|---|
out | Location of the output |
serve
Starts a Metro server on the given port, building bundles on the fly.