CLI Overview
The SilverOTA CLI is your primary tool for managing over-the-air updates from the command line. It provides an intuitive interface for authentication, project setup, and deployment management.
Available Commands
Authentication
login - Authenticate with your SilverOTA account
silverbullet-ota loginUses device authorization flow with browser-based confirmation. Stores credentials securely in your system keyring.
Project Management
project list - List all projects in your account
silverbullet-ota project listproject init - Initialize SilverOTA in your React Native project
silverbullet-ota project initInteractive wizard that installs dependencies, creates configuration, and sets up deployment scripts.
Channel Management
channel - Display current active channel
silverbullet-ota channelShows the configured channel for both iOS and Android platforms.
channel set <channel> - Set the active channel
silverbullet-ota channel set stagingUpdates native configuration files (Info.plist for iOS, strings.xml for Android).
Deployment
deploy - Deploy a new OTA update
silverbullet-ota deploy --platform ios --target-app-version 1.0.0Builds, packages, and uploads your JavaScript bundle and assets to the SilverOTA platform.
Command Structure
All commands follow the pattern:
silverbullet-ota <command> [subcommand] [options]Global Patterns
Interactive Mode: Most commands support an --interactive or -i flag for guided prompts:
silverbullet-ota deploy --interactiveHelp: Get help for any command:
silverbullet-ota --help
silverbullet-ota deploy --helpVersion: Check the CLI version:
silverbullet-ota --versionCommon Workflows
Initial Setup
# 1. Authenticate
silverbullet-ota login
# 2. Initialize project
silverbullet-ota project init
# 3. Set channel
silverbullet-ota channel set production
# 4. Deploy first update
silverbullet-ota deploy --platform ios --target-app-version 1.0.0Daily Development
# Check current channel
silverbullet-ota channel
# Deploy to staging
silverbullet-ota deploy --platform ios --channel staging
# Deploy to production
npm run silverbullet:deploy:iosMulti-Channel Workflow
# Deploy to staging for testing
silverbullet-ota deploy --platform android --channel staging
# After testing, deploy to production
silverbullet-ota deploy --platform android --channel productionConfiguration
The CLI uses an ota.config.ts file in your project root for configuration. This file is automatically created during project init.
Learn more about configuration →