GET STARTED
Installation
Ready to build with Codika? Follow these steps to install the CLI, get your CLI Key, and set up your development environment.
Get Codika
Codika consists of a CLI and a component library. The CLI runs in your console to automate configuration tasks, while the component library provides the building blocks for your apps.
Install the CLI
Download and install Codika with our installation script:
curl -fsSL https://install.codika.dev/install | bash
After installation, open a new console and verify installation by listing all the available commands:
codika -h
Install the Component Library
To complete your setup, install the Codika Components. Make sure you have Mason installed (Install Mason) first, then run:
codika install
Behind the scenes
Codika is installed in a .codika
folder in your home directory. This contains the CLI executable and component library.
To uninstall Codika, simply delete this folder and remove the Codika path from your .zshrc
, .bashrc
or .profile
file.
Verify Installation
Codika is a CLI that glues a lot of tools together.
You will probably have to install some additional tools to get everything working.
To check if everything is working, run the codika doctor
command:
codika doctor
This command will verify 5 differents things:
- Your Codika CLI Key is valid
- The required tools are installed and have minimum required versions
- You are logged in to the required services (GitHub, Google Cloud, etc.)
- Your setup is complete (have entered an Apple Developer account and a Codemagic API key, etc.)
- The component library is installed and up to date
Codika Doctor Execution
Here is an example of the output of the codika doctor
command:
codika doctor
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Codika Doctor Command ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Codika Version: x.y.z
✓ Identified as team@codika.io (Member) (4.1s)
╭─────────────────────────╮
│ Checking Dependencies │
───────────────────┴─────────────────────────┴────────────────────
[✓] FVM (fvm)
[✓] Mason CLI (mason)
[✓] Shorebird CLI (shorebird)
[✓] Flutter (flutter)
[✓] Dart (dart)
[✓] Firebase (firebase)
[✓] Codemagic Tools (app-store-connect)
[✓] FlutterFire (flutterfire)
[✓] Google Cloud (gcloud)
[✓] GitHub (gh)
╭──────────────────────────────────────╮
│ Checking Minimum Required Versions │
─────────────┴──────────────────────────────────────┴─────────────
[✓] Firebase CLI Version
└─ Current: 13.34.0 (meets min requirement: 13.34.0)
[✓] FlutterFire CLI Version
└─ Current: 1.1.0 (meets min requirement: 1.1.0)
╭───────────────────────────╮
│ Checking Authentication │
──────────────────┴───────────────────────────┴───────────────────
[✓] Firebase (firebase)
└─ Authenticated as team@codika.io
[✓] Google Cloud (gcloud)
└─ Authenticated as team@codika.io
[✓] Shorebird CLI (shorebird)
└─ Authenticated as team@codika.io
[✓] GitHub (gh)
└─ Authenticated as romain-pattyn
╭──────────────────────────╮
│ Checking Configuration │
───────────────────┴──────────────────────────┴───────────────────
[✓] Codika API Key
[✓] Codemagic API Key
[✓] Codemagic Teams
└─ 2 teams configured
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Codemagic Teams ┃
┣━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Team ┃ ID ┃
┣━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Codika Apps ┃ 46q5s4d6f5qsdf1665s1qdf1 ┃
┣━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ RominHood ┃ 8798dfgh46f5gh61dfg65h1f ┃
┗━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
[✓] AppStore Connect API Keys
└─ 1 key configured
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ App Store Connect API Keys ┃
┣━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Name ┃ Key ID ┃ Issuer ID ┃
┣━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ RominHood ┃ Z45KFOEFDL ┃ ae234ZFG-4fg5-6dgf-6512-48sdf6465d2f ┃
┗━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
╭───────────── ─────────────────╮
│ Checking Codika Components │
─────────────────┴──────────────────────────────┴─────────────────
[✓] 8 mason bricks installed globally
[✓] All 8 components are installed
[✓] All components are up to date (version x.y.z)
╭──────────────────╮
│ Doctor Summary │
───────────────────────┴──────────────────┴───────────────────────
[✓] No issues found!
In the next steps you'll fix the issues related to the CLI Key and the missing tools if any.
Get Your CLI Key
To start building with Codika, you'll need a CLI Key. We offer three tiers to match your development needs - a free option for exploring Codika's project creation features, a Builder tier with deployment automation, and a Architect tier that offers accessing our boilerplate system creation capabilities. Select the option that best fits your current requirements:
Foundation
Create and configure projects with Firebase
Builder
Full deployment automation and CI/CD capabilities
Architect
Custom Boilerplate System creation (Coming Soon)
After receiving your CLI Key by email:
- Copy the key to your clipboard
- Run
codika configure codika-cli-key
in your terminal - Paste your key and press Enter
Run the codika doctor
command to verify your CLI Key is valid.
Install Additional Tools
Codika works as a glue layer for multiple tools in the Flutter ecosystem. To get the most out of Codika, you'll need to install some essential tools, an or optionally some additional ones depe case.
Required Tools (Always Needed)
These tools are required for Codika to function properly:
-
The foundation of your app development with Codika.
# Install via Flutter's official site
https://docs.flutter.dev/get-started/install -
FVM (Flutter Version Management)
Manage multiple Flutter SDK versions with ease:
# Install with Homebrew (macOS)
brew tap leoafarias/fvm
brew install fvm# Or globally with pub
dart pub global activate fvmSet a global Flutter version after installation to ensure consistency across projects.
-
Essential templating tool that powers Codika's component architecture:
# Install globally with pub
dart pub global activate mason_cli -
Industry-standard version control essential for Codika's branching strategy:
# Verify installation
git --version
# Install with Homebrew if needed
brew install git
GitHub Integration
If you are a GitHub user we recommend installing the GitHub CLI. Codika uses that CLI to automate the creation and configuration of the GitHub repositories.
-
GitHub CLI is a command-line tool for managing GitHub repositories:
# Install with Homebrew
brew install ghLog into the CLI with
gh auth login
.
Firebase Tools
If you plan to use Firebase in your project, you'll need to install the following tools:
-
Command-line interface for Firebase project management:
# Install with npm
npm install -g firebase-toolsAuthenticate your installation with
firebase login
before use. -
Advanced Firebase configuration and Google Cloud integration:
# Install with Homebrew
brew install google-cloud-sdkAuthenticate your installation with
gcloud auth login
before use. -
Streamlines Firebase configuration specifically for Flutter applications. Installation requires both Node.js and the Firebase CLI as prerequisites:
# Ensure Node.js is installed first
node --version
# Install Firebase CLI if not already present
npm install -g firebase-tools
# Finally, install FlutterFire CLI
dart pub global activate flutterfire_cliAfter installation, the
flutterfire
command becomes globally available for configuring Firebase services in your Flutter applications.
Shorebird (for Code Push Updates)
-
Enable code push capabilities for instant app updates:
# Install with curl
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh | bashAuthenticate your installation with
shorebird login
before use.
CI/CD & App Distribution
If you plan to use Codika's deployment automation via codika app build
or codika app patch
, install:
-
Codemagic provides a CLI tool to manage app distribution and CI/CD. Their official documentation says it needs to be installed via:
pip3 install codemagic-cli-tools
. But we recommend using pipx to install it:# Install pipx
brew install pipx
# Install the CLI
pipx install codemagic-cli-tools
# Ensure the CLI is in your PATH
pipx ensurepath
Next Steps
With Codika installed and configured, you're ready to start building! We recommend starting by going through the Quickstart Guide to create your first dummy project to get familiar with the CLI.
Then, for developers looking to ship a complete app to the stores, you'll need to complete our Configuration Guide as there are some one-time setup steps required for services like Firebase and Codemagic.
Once configured, you can follow the Zero to Stores Guide to build your own app with Firebase integration, add your first components, and publish your app to the stores.