This command is used to deploy the update to the specified platform.
hot-updater.config.ts
is properly configured.HotUpdater.wrap
.babel-plugin
.If you haven’t completed these steps, refer to the quick-start guide.
Interactive mode guides you through the deployment steps via keyboard inputs.
Execute the following command:
The -i
(or --interactive
) flag enables interactive keyboard input.
Use this mode for automating deployment in CI/CD pipelines.
Run the following command:
Deploy a forced update for emergency purposes. This will immediately apply the update.
Run the following command:
The -f
(or --force-update
) flag enables force update.
This is a range expression that specifies which app version the deployed bundle will be applied to.
Range Expression | Who gets the update |
---|---|
1.2.3 | Only devices running the specific binary app store version 1.2.3 of your app |
* | Any device configured to consume updates from your CodePush app |
1.2.x | Devices running major version 1, minor version 2 and any patch version of your app |
1.2.3 - 1.2.7 | Devices running any binary version between 1.2.3 (inclusive) and 1.2.7 (inclusive) |
>=1.2.3 < 1.2.7 | Devices running any binary version between 1.2.3 (inclusive) and 1.2.7 (exclusive) |
1.2 | Equivalent to >=1.2.0 < 1.3.0 |
~1.2.3 | Equivalent to >=1.2.3 < 1.3.0 |
^1.2.3 | Equivalent to >=1.2.3 < 2.0.0 |
Update Type | When Applied | How to Enable |
---|---|---|
Default | Downloads the update bundle in the background and applies it when the user restarts the app. | Default setting |
Force Update | Downloads the update bundle and applies it immediately. | Use the --force-update flag or console. |