Skip to content

Installation

Learn how to install the SilverOTA CLI in your development environment.

Package Manager Installation

The SilverOTA CLI should be installed as a development dependency in your React Native project:

bash
npm install -D @silverbullet-ota/cli
bash
yarn add -D @silverbullet-ota/cli
bash
pnpm add -D @silverbullet-ota/cli

Global Installation (Optional)

While not required, you can install the CLI globally for convenience:

bash
npm install -g @silverbullet-ota/cli
bash
yarn global add @silverbullet-ota/cli
bash
pnpm add -g @silverbullet-ota/cli

TIP

We recommend local installation (dev dependency) to ensure all team members use the same CLI version and to avoid version conflicts.

Verification

Verify the installation:

bash
npx silverbullet-ota --version

You should see the version number displayed.

Using npx

If you installed locally (recommended), use npx to run commands:

bash
npx silverbullet-ota login
npx silverbullet-ota deploy --platform ios

If installed globally, you can omit npx:

bash
silverbullet-ota login
silverbullet-ota deploy --platform ios

System Requirements

  • Node.js: Version 18 or higher
  • Operating Systems:
    • macOS (Intel and Apple Silicon)
    • Windows 10/11
    • Linux (Ubuntu, Debian, Fedora, etc.)

Dependencies

The CLI will automatically install required packages when you run project init:

  • @silverbullet-ota/react-native - React Native SDK
  • @silverbullet-ota/bare or @silverbullet-ota/expo - Build plugin

These packages are required for OTA functionality and will be added to your project's dependencies automatically.

Updating

To update to the latest version:

bash
npm update @silverbullet-ota/cli
bash
yarn upgrade @silverbullet-ota/cli
bash
pnpm update @silverbullet-ota/cli

Check the latest version on npm.

Next Steps

After installation:

  1. Authenticate your account
  2. Initialize your project
  3. Learn about all CLI commands