skillfed

codemagic-cli-tools

CLI tools used in Codemagic builds

codemagic-cli-tools v0.69.0 1.8M downloads/30d#3,537 on PyPI484
Copyleft license GPL-3.0-or-later Active released

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-tools

uv

uv add codemagic-cli-tools

poetry

poetry add codemagic-cli-tools

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

mobile app build automationios android deployment toolscode signing management cliapp store connect integrationgoogle play deploymentkeychain managementapp build orchestration
mobile-ci-cdapp-deploymentcode-signing

More Build Tools packages