A CLI tool for bundling and uploading React Native updates. It also supports Expo projects.
npm i -g @rootpush/cli
You have two options to authenticate with RootPush:
rootpush login
This will:
- Guide you to https://rootpush.com/org/account/ to generate a token
- Securely store your credentials
- Validate your authentication
To logout:
rootpush logout
You can also use an environment variable if you prefer:
export ROOTPUSH_AUTH_TOKEN=your_token_here
- Install RootPush Updates in your project:
rootpush install --product updates
- Deploy an update:
rootpush updates --app 0194793c-fca2-71f0-af50-6075edd3c1c9
Log in to RootPush and store your credentials securely.
Log out and remove stored credentials.
Install and configure RootPush products in your React Native project.
Options:
--product <name>
(required): Product name
Bundle and upload a new update of your React Native app.
Options:
--app <id>
(required): Your app identifier (available in app settings)--target <version>
: Target binary version (will auto-detect if not provided)--branch <branch>
: Target branch (will use current git branch if not provided)--hermesEnabled
: Enable/disable Hermes (defaults to true)
Run rootpush updates -h
to see all available options.
The CLI tool supports both Expo and bare React Native projects. It automatically:
- Detects project type (Expo or bare)
- Detects current branch
- Detects target version
- Handles Hermes compilation when enabled
When using the login command, your authentication token is stored securely using:
- Keychain on macOS
- Credential Manager on Windows
- Encrypted configuration on Linux
See CONTRIBUTING.md for guidelines on contributing to this project.