codemagic-cli-tools
CLI tools used in Codemagic builds
What it is and what it does
Codemagic CLI Tools is a suite of command-line utilities and Python API for automating mobile app build, code signing, and deployment workflows. It powers builds at codemagic.io but can run in any environment with Python 3.8+. The package installs nine executables (android-app-bundle, android-keystore, app-store-connect, google-play, keychain, xcode-project, and others) that handle Android and iOS-specific tasks, plus a mirroring Python API in the codemagic.tools module for programmatic access.
The tools integrate with Apple App Store Connect and Google Play Developer APIs via oauth2client and google-api-python-client, manage cryptographic operations through cryptography and pyjwt, and provide system-level utilities via psutil and requests. Each CLI tool accepts structured arguments with support for environment variable and file-based secret injection, making it suitable for CI/CD pipelines and local development workflows.
Use it for:
- Automate Android app signing and bundle generation in CI/CD pipelines using android-keystore and android-app-bundle
- Deploy iOS apps to App Store Connect via the app-store-connect tool with API key authentication
- Publish Android apps to Google Play using the google-play tool with service account credentials
- Manage macOS keychains and Xcode project configurations locally or in build environments
- Generate git changelogs for release notes using the git-changelog tool during deployment workflows
- Programmatically orchestrate multi-step mobile builds by importing tools from codemagic.tools in Python scripts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides command-line and Python API tools for managing Android and iOS app builds, code signing, and deployment workflows.
Yes, with conditions. Install if you need to automate iOS or Android app deployment in CI/CD or local environments and can accept the GPL-3.0-or-later copyleft license. The package is actively maintained, has low install friction, and integrates directly with App Store Connect and Google Play APIs. Verify that all nine runtime dependencies fit your environment and that you understand the copyleft implications for your use case.
Install
codemagic-cli-tools on PyPI
pip
pip install codemagic-cli-toolsuv
uv add codemagic-cli-toolspoetry
poetry add codemagic-cli-toolsInstalling codemagic-cli-tools
Before you install
Low friction installation via pip. Actively maintained with recent releases; last commit 2026-07-15. Requires Python 3.8+. Depends on 9 runtime packages including cryptography, oauth2client, and google-api-python-client.
License in practice
Licensed under GPL-3.0-or-later (copyleft). Any derivative work or bundled distribution must also be licensed under GPL-3.0 or later and have source code available.
Quickstart
pip install codemagic-cli-tools
from codemagic.tools import Keychain
from pathlib import Path
keychain = Keychain(Path("/tmp/new.keychain"))
keychain.create()
keychain.make_default()
Requires Python 3.8+. Some tools (e.g., keychain) are macOS-specific. API credentials required for App Store Connect or Google Play integration.
Verify before relying
- Whether all nine runtime dependencies are required for all CLI tools or only for specific integrations
- Compatibility of keychain and xcode-project tools outside macOS environments
- Performance characteristics when managing large app bundles or multiple deployments
Package facts
| License | GPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (<4,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — cryptography, google-api-python-client, httplib2, oauth2client, packaging, psutil, pyjwt, python-dateutil, requests |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,805,491/month — #3,537 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: codemagic_cli_tools-0.69.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
frida-toolsProvides command-line tools for Frida, a…
unclear · top 15,000 on PyPI
robotframework-appiumlibraryAppiumLibrary is a Robot Framework library that…
permissive · top 15,000 on PyPI
mozdeviceManages and controls connected mobile devices…
copyleft · top 15,000 on PyPI
buildozerBuildozer turns Python applications into binary…
permissive · top 15,000 on PyPI
python-terraformWraps the Terraform command-line tool, allowing…
permissive · top 15,000 on PyPI
logmuseAdds standard CLI logging options…
permissive · top 15,000 on PyPI
cycodeCycode is a command-line security scanner that…
permissive · top 15,000 on PyPI
fastapi-cloud-cliA command-line tool for deploying and managing…
permissive · top 1,000 on PyPI
pyfcmPyFCM is a Python client for Firebase Cloud…
permissive · top 15,000 on PyPI