Installation
Installation
Section titled “Installation”This guide covers installing the FlightStack CLI and setting up build agents on different platforms.
CLI Installation
Section titled “CLI Installation”The FlightStack CLI is the primary tool for managing your build agents and interacting with FlightStack from the command line.
# Add the FlightStack tapbrew tap voostack/tap
# Install FlightStackbrew install flightstack
# Verify installationflightstack --version# Download the latest releasecurl -fsSL https://get.flightstack.dev | bash
# Or download manually from GitHub releases# https://github.com/voostack/flightstack/releases
# Move to PATH (if needed)sudo mv flightstack /usr/local/bin/
# Verify installationflightstack --version# Clone the repositorygit clone https://github.com/voostack/flightstack.gitcd flightstack
# Build the CLImelos build:cli
# The binary is at packages/flightstack_cli/build/# Download and installcurl -fsSL https://get.flightstack.dev | bash
# Verify installationflightstack --version# Download the latest releasewget https://github.com/voostack/flightstack/releases/latest/download/flightstack-linux-x64.tar.gz
# Extracttar -xzf flightstack-linux-x64.tar.gz
# Move to PATHsudo mv flightstack /usr/local/bin/
# Make executablechmod +x /usr/local/bin/flightstack
# Verify installationflightstack --versionWindows
Section titled “Windows”# Add the FlightStack bucketscoop bucket add voostack https://github.com/voostack/scoop-bucket
# Install FlightStackscoop install flightstack
# Verify installationflightstack --version- Download
flightstack-windows-x64.zipfrom GitHub Releases - Extract to a folder (e.g.,
C:\Program Files\FlightStack) - Add the folder to your PATH environment variable
- Open a new terminal and verify:
flightstack --version
Build Agent Requirements
Section titled “Build Agent Requirements”Build agents are the machines that execute your builds. Here are the requirements for each platform:
macOS Agent (for iOS builds)
Section titled “macOS Agent (for iOS builds)”| Requirement | Minimum | Recommended |
|---|---|---|
| macOS | 12.0 (Monterey) | 14.0+ (Sonoma) |
| Xcode | 14.0 | 15.0+ |
| RAM | 8 GB | 16 GB+ |
| Storage | 50 GB free | 100 GB+ free |
Required software:
# Install Xcode from the App Store, then:sudo xcode-select --installsudo xcodebuild -license accept
# Install Flutterbrew install flutterflutter doctor
# Install CocoaPods (for iOS dependencies)sudo gem install cocoapodsLinux Agent (for Android/Web builds)
Section titled “Linux Agent (for Android/Web builds)”| Requirement | Minimum | Recommended |
|---|---|---|
| Ubuntu | 20.04 LTS | 22.04 LTS |
| RAM | 4 GB | 8 GB+ |
| Storage | 30 GB free | 50 GB+ free |
Required software:
# Update systemsudo apt update && sudo apt upgrade -y
# Install dependenciessudo apt install -y git curl unzip
# Install Fluttersudo snap install flutter --classicflutter doctor
# Install Android SDK (for Android builds)sudo apt install -y android-sdkflutter config --android-sdk /usr/lib/android-sdkWindows Agent
Section titled “Windows Agent”| Requirement | Minimum | Recommended |
|---|---|---|
| Windows | 10 (1903+) | 11 |
| RAM | 4 GB | 8 GB+ |
| Storage | 30 GB free | 50 GB+ free |
Required software:
# Install Flutter (using Chocolatey)choco install flutter
# Or download from flutter.dev# https://docs.flutter.dev/get-started/install/windows
# Install Android Studio for Android SDKchoco install androidstudio
# Verifyflutter doctorPost-Installation Setup
Section titled “Post-Installation Setup”-
Verify Installation
Section titled “Verify Installation”Terminal window # Check CLI versionflightstack --version# Check available commandsflightstack --help -
Authenticate
Section titled “Authenticate”Terminal window flightstack loginThis opens your browser for authentication. After logging in, you’ll see confirmation in the terminal.
-
Register Your Agent
Section titled “Register Your Agent”Terminal window flightstack agent registerThe CLI will detect your system capabilities automatically.
-
Configure Auto-Start (Optional)
Section titled “Configure Auto-Start (Optional)”To have the agent start automatically on boot:
Terminal window flightstack agent installSee Auto-Start on Boot for platform-specific details.
Updating
Section titled “Updating”CLI Updates
Section titled “CLI Updates”brew update && brew upgrade flightstackscoop update flightstackDownload the latest release from GitHub and replace the existing binary.
Agent Updates
Section titled “Agent Updates”The agent checks for updates automatically. To manually update:
# Stop the running agentflightstack agent stop
# Update the CLI (includes agent)# Use your package manager or re-download
# Start the agent againflightstack agent startUninstalling
Section titled “Uninstalling”Remove CLI
Section titled “Remove CLI”brew uninstall flightstacksudo rm /usr/local/bin/flightstackrm -rf ~/.flightstackRemove Startup Service
Section titled “Remove Startup Service”flightstack agent uninstallThis removes the startup configuration but keeps your agent registered.
Completely Unregister Agent
Section titled “Completely Unregister Agent”# Stop and uninstallflightstack agent stopflightstack agent uninstall
# Delete the agent from FlightStackflightstack agent delete <agent-id>
# Remove local configurationrm -rf ~/.flightstackTroubleshooting Installation
Section titled “Troubleshooting Installation””command not found”
Section titled “”command not found””The binary isn’t in your PATH. Either:
- Add the installation directory to your PATH
- Move the binary to a directory in your PATH (e.g.,
/usr/local/bin)
“Permission denied”
Section titled ““Permission denied””# Make the binary executablechmod +x /path/to/flightstackFlutter not detected
Section titled “Flutter not detected”Ensure Flutter is installed and in your PATH:
# Check Flutter installationwhich flutterflutter doctor
# If not found, add to PATHexport PATH="$PATH:/path/to/flutter/bin"Xcode issues (macOS)
Section titled “Xcode issues (macOS)”# Accept Xcode licensesudo xcodebuild -license accept
# Set Xcode pathsudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
# Install command line toolsxcode-select --installNeed more help? Check our Troubleshooting Guide or join our Discord.