diff --git a/docs/commands.md b/docs/commands.md index d2b77af34..0923dfb74 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -33,13 +33,13 @@ Builds the JavaScript bundle for offline use. Path to the root JS file, either absolute or relative to JS root. -#### `--platform [string]` +#### `--platform ` > default: ios Either "ios" or "android". -#### `--transformer [string]` +#### `--transformer ` Specify a custom transformer to be used. @@ -71,21 +71,21 @@ The expected path for the js bundle can be found on the line that starts with -#### `--bundle-encoding [string]` +#### `--bundle-encoding ` > default: utf8 Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer). -#### `--max-workers [number]` +#### `--max-workers ` Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine. -#### `--sourcemap-output [string]` +#### `--sourcemap-output ` File name where to store the sourcemap file for resulting bundle, ex. `/tmp/groups.map`. -#### `--sourcemap-sources-root [string]` +#### `--sourcemap-sources-root ` Path to make sourcemaps sources entries relative to, ex. `/root/dir`. @@ -95,7 +95,7 @@ Path to make sourcemaps sources entries relative to, ex. `/root/dir`. Report SourceMapURL using its full path. -#### `--assets-dest [string]` +#### `--assets-dest ` Directory name where to store assets referenced in the bundle. @@ -123,7 +123,7 @@ Removes cached files. Try to fetch transformed JS code from the global cache, if configured. -#### `--config [string]` +#### `--config ` Path to the CLI configuration file. @@ -153,19 +153,19 @@ Initialize a new React Native project named in a directory of the #### Options -#### `--version [string]` +#### `--version ` Shortcut for `--template react-native@version`. -#### `--directory [string]` +#### `--directory ` Uses a custom directory instead of ``. -#### `--title [string]` +#### `--title ` Uses a custom app title instead of ``. -#### `--template [string]` +#### `--template ` Uses a custom template. Accepts following template sources: @@ -310,19 +310,19 @@ Builds your app and starts it on a connected Android emulator or device. #### Options -#### `--root [string]` +#### `--root ` > **DEPRECATED** – root is discovered automatically Override the root directory for the Android build (which contains the android directory)'. -#### `--variant [string]` +#### `--variant ` > default: 'debug' Specify your app's build variant. -#### `--appFolder [string]` +#### `--appFolder ` > **DEPRECATED** – use "project.android.appName" in react-native.config.js @@ -330,21 +330,21 @@ Specify your app's build variant. Specify a different application folder name for the Android source. If not, we assume is "app". -#### `--appId [string]` +#### `--appId ` Specify an `applicationId` to launch after build. If not specified, `package` from AndroidManifest.xml will be used. -#### `--appIdSuffix [string]` +#### `--appIdSuffix ` Specify an `applicationIdSuffix` to launch after build. -#### `--main-activity [string]` +#### `--main-activity ` > default: 'MainActivity' Name of the activity to start. -#### `--deviceId [string]` +#### `--deviceId ` builds your app and starts it on a specific device/simulator with the given device id (listed by running "adb devices" on the command line). @@ -352,17 +352,17 @@ builds your app and starts it on a specific device/simulator with the given devi Do not launch packager while building. -#### `--port [number]` +#### `--port ` > default: process.env.RCT_METRO_PORT || 8081 -#### `--terminal [string]` +#### `--terminal ` > default: process.env.REACT_TERMINAL || process.env.TERM_PROGRAM Launches the Metro Bundler in a new window using the specified terminal path. -#### `--tasks [list]` +#### `--tasks ` > default: 'installDebug' @@ -387,7 +387,7 @@ Builds your app and starts it on iOS simulator. #### Options -#### `--simulator [simulator_name]` +#### `--simulator ` > default: iPhone 11 @@ -406,15 +406,15 @@ Example: this will launch your projet directly onto the iPhone XS Max simulator: react-native run-ios --simulator "iPhone XS Max" ``` -#### `--configuration [string]` +#### `--configuration ` Explicitly set the scheme configuration to use default: 'Debug'. -#### `--scheme [string]` +#### `--scheme ` Explicitly set Xcode scheme to use. -#### `--project-path [string]` +#### `--project-path ` Path relative to project root where the Xcode project (.xcodeproj) lives. default: 'ios'. @@ -422,7 +422,7 @@ Path relative to project root where the Xcode project (.xcodeproj) lives. defaul Explicitly set device to use by name. The value is not required if you have a single device connected. -#### `--udid [string]` +#### `--udid ` Explicitly set device to use by udid. @@ -434,7 +434,7 @@ Do not launch packager while building. Do not use `xcpretty` even if installed. -#### `--port [number]` +#### `--port ` Runs packager on specified port @@ -452,27 +452,27 @@ Starts the server that communicates with connected devices #### Options -#### `--port [number]` +#### `--port ` Specify port to listen on -#### `--projectRoot [path]` +#### `--projectRoot ` Path to a custom project root -#### `--watchFolders [list]` +#### `--watchFolders ` Specify any additional folders to be added to the watch list -#### `--sourceExts [list]` +#### `--sourceExts ` Specify any additional source extensions to be used by the packager -#### `--max-workers [number]` +#### `--max-workers ` Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine -#### `--transformer [string]` +#### `--transformer ` Specify a custom transformer to be used @@ -480,7 +480,7 @@ Specify a custom transformer to be used Removes cached files -#### `--custom-log-reporter-path, --customLogReporterPath [string]` +#### `--custom-log-reporter-path, --customLogReporterPath ` Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter @@ -492,15 +492,15 @@ Enables logging Enables https connections to the server -#### `--key [path]` +#### `--key ` Path to custom SSL key -#### `--cert [path]` +#### `--cert ` Path to custom SSL cert -#### `--config [string]` +#### `--config ` Path to the CLI configuration file @@ -565,7 +565,7 @@ Pull and convert a Hermes tracing profile to Chrome tracing profile, then store #### Options -#### `--filename [string]` +#### `--filename ` File name of the profile to be downloaded, eg. sampling-profiler-trace8593107139682635366.cpuprofile. @@ -575,7 +575,7 @@ File name of the profile to be downloaded, eg. sampling-profiler-trace8593107139 Pulls the original Hermes tracing profile without any transformation -#### `--sourcemap-path [string]` +#### `--sourcemap-path ` The local path to your source map file if you generated it manually, ex. `/tmp/sourcemap.json` @@ -583,7 +583,7 @@ The local path to your source map file if you generated it manually, ex. `/tmp/s Generate the JS bundle and source map in `os.tmpdir()` -#### '--port [number]', +#### `--port `, The running metro server port number