Download Setup Scripts
Environment Variables
These scripts automatically detect your CodePush server configuration from:
SERVER_URL
environment variable.env
,.env.local
files in your project- Default fallback to
https://server.codepush.online
Quick Install (Recommended)
One-command setup that downloads and runs the full CodePush setup automatically
macOSLinux
Usage:
curl -fsSL https://docs.codepush.online/scripts/install-codepush.sh | bash
Full Setup Script
Complete interactive setup script for React Native projects with CodePush integration
macOSLinuxWindows
Usage:
curl -O https://docs.codepush.online/scripts/setup-codepush.js && node setup-codepush.js
Server Setup
Docker-based server setup for CodePush multi-tenant infrastructure
macOSLinux
Usage:
curl -O https://docs.codepush.online/scripts/setup-server.sh && chmod +x setup-server.sh && ./setup-server.sh
Prerequisites
For React Native Setup:
- Node.js 16+ installed
- React Native project (existing)
- npm or yarn package manager
- iOS/Android development environment
For Server Setup:
- Docker and Docker Compose
- MongoDB instance (or Docker)
- Firebase project credentials
- Port access (4410-4414, 10000-10002)
Important Notes
- Environment Detection: Scripts automatically detect your server URLs from environment variables or .env files
- Manual Configuration: You'll be prompted for any missing configuration during setup
- Security: Always review downloaded scripts before execution
- Customization: Scripts can be modified to fit your specific deployment needs
Need help? Check out our other documentation pages: