You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -134,57 +134,7 @@ Platform plugins are configured through the [`platform`](/docs/configuration/ind
134
134
|`build:harmony`| Builds HarmonyOS app for emulator or device |
135
135
|`run:harmony`| Runs HarmonyOS app on device |
136
136
137
-
## Command Options
138
-
139
-
### `rock start` Options
140
-
141
-
The `start` command launches a development server (either Re.Pack or Metro, depending on your bundler plugin) that connects to your apps through port 8081 by default. It provides features like Hot Module Reloading (HMR) and error reporting.
|`--read-global-cache`| Try to fetch transformed JS code from the global cache, if configured (default: false) |
184
-
|`--config <string>`| Path to the CLI configuration file |
185
-
|`--resolver-option <string...>`| Custom resolver options of the form key=value. URL-encoded. May be specified multiple times |
186
-
|`--config-cmd [string]`|[Internal] A hack for Xcode build script pointing to wrong bundle command |
187
-
|`--hermes`| Passes the output JS bundle to Hermes compiler and outputs a bytecode file |
137
+
## Platform iOS
188
138
189
139
### `rock build:ios` Options
190
140
@@ -259,6 +209,8 @@ The `sign:ios` command either signs your iOS app with certificates and provision
259
209
|`--jsbundle <string>`| Path to JS bundle to apply before signing |
260
210
|`--no-hermes`| Don't use Hermes for JS bundle |
261
211
212
+
## Platform Android
213
+
262
214
### `rock build:android` Options
263
215
264
216
The `build:android` command builds your Android app for emulators, devices, or distribution, producing either APK or AAB files. It follows this build strategy:
@@ -307,6 +259,115 @@ The `sign:android <binaryPath>` command signs your Android app with a keystore,
307
259
|`--jsbundle <string>`| Path to JS bundle to apply before signing |
308
260
|`--no-hermes`| Don't use Hermes for JS bundle |
309
261
262
+
## Platform HarmonyOS (experimental)
263
+
264
+
### `rock build:harmony` Options
265
+
266
+
The `build:harmony` command builds your HarmonyOS app for emulators or devices, producing HAP files. It follows this build strategy:
267
+
268
+
1. Build locally if `--local` flag is set
269
+
1. Otherwise, try to use a cached build from cache (in `.rock` folder)
270
+
271
+
The build cache is populated by a local build only for now (remote cache is not supported yet).
The `run:harmony` command runs your HarmonyOS app on an emulator or device. It extends the functionality of `build:harmony` with additional runtime options.
|`--binary-path <string>`| Path to pre-built HAP binary |
292
+
|`--device <string>`| Device/emulator to use (by name or ID) |
293
+
|`--local`| Force local build with Hvigor |
294
+
|`--ability <string>`| Name of the ability to start |
295
+
296
+
## Plugin Bundler
297
+
298
+
### `rock start` Options
299
+
300
+
The `start` command launches a development server (either Re.Pack or Metro, depending on your bundler plugin) that connects to your apps through port 8081 by default. It provides features like Hot Module Reloading (HMR) and error reporting.
|`--read-global-cache`| Try to fetch transformed JS code from the global cache, if configured (default: false) |
343
+
|`--config <string>`| Path to the CLI configuration file |
344
+
|`--resolver-option <string...>`| Custom resolver options of the form key=value. URL-encoded. May be specified multiple times |
345
+
|`--config-cmd [string]`|[Internal] A hack for Xcode build script pointing to wrong bundle command |
346
+
|`--hermes`| Passes the output JS bundle to Hermes compiler and outputs a bytecode file |
347
+
348
+
## Built-in plugins
349
+
350
+
### `rock fingerprint` Options
351
+
352
+
The `fingerprint` command calculates a unique hash that represents your project's native state. This hash is used for build caching and remains stable across builds unless you modify native files, change dependencies with native code, or update scripts in package.json.
|`-p, --platform <string>`| Select platform, e.g. ios, android, or harmony |
357
+
|`--raw`| Output the raw fingerprint hash for piping |
358
+
359
+
**Arguments:**
360
+
361
+
-`[path]` - Directory to calculate fingerprint for (optional)
362
+
363
+
### `rock config` Options
364
+
365
+
The `config` command outputs the autolinking configuration from Community CLI, which is useful for debugging and understanding how dependencies are linked.
|`-p, --platform <string>`| Select platform, e.g. ios, android, or harmony |
370
+
310
371
### `rock clean` Options
311
372
312
373
The `clean` command helps you free up disk space by removing various caches and temporary files from your React Native project. It can clean Android (Gradle), iOS (CocoaPods), Metro, Watchman, Rock's own project caches, and package manager caches.
@@ -317,6 +378,8 @@ The `clean` command helps you free up disk space by removing various caches and
317
378
|`--verify-cache`| Whether to verify the cache (currently only applies to npm cache) |
318
379
|`--all`| Clean all available caches without interactive prompt |
319
380
381
+
## Plugin Remote Cache
382
+
320
383
### `rock remote-cache` Actions and Options
321
384
322
385
The `remote-cache <action>` command provides utilities to interact with the remote build cache configured via your `remoteCacheProvider`. This is useful for inspecting, downloading, uploading, or deleting build artifacts stored remotely.
Copy file name to clipboardExpand all lines: website/src/docs/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Choose your path: [Getting Started →](/docs/getting-started)
11
11
Rock is built for two kinds of teams:
12
12
13
13
-**Existing React Native teams using Community CLI** who want to improve build times and developer experience while fitting into your existing workflows and infrastructure.
14
-
-**iOS/Android/HarmonyOS native teams** planning to incorporate React Native without disrupting existing workflows: Rock Brownfield lets you add your whole React Native app like any other dependency.
14
+
-**iOS/Android teams** planning to incorporate React Native without disrupting existing workflows: Rock Brownfield lets you add your whole React Native app like any other dependency.
15
15
16
16
:::info New to React Native and building app from scratch?
17
17
For **new projects that aren't brownfield**, consider starting with [Expo](https://expo.dev) for the best developer experience and similar remote caching capabilities. We recommend using [this template](https://github.com/nkzw-tech/expo-app-template) for sensible defaults. Rock is designed for teams who have outgrown the Community CLI.
0 commit comments