add_application
Connect a Git repository to Codemagic to add a new application. Supports HTTPS and SSH URLs, with automatic deploy key generation for SSH repositories.
Instructions
Add a new application to Codemagic by connecting a Git repository. For HTTPS URLs: if you have connected your GitHub, GitLab, or Bitbucket account via Codemagic Settings → Integrations, private repositories are accessible with just the URL — no credentials needed. For SSH URLs (git@... or ssh://git@...): a fresh Ed25519 deploy key is generated automatically. The private key is stored directly in Codemagic and the public key is added to GitHub automatically if the gh CLI is installed and authenticated, or shown for manual setup otherwise. Note: after adding, the app shows 'Set up build' in the Codemagic UI — this is expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_url | Yes | SSH or HTTPS URL of the Git repository | |
| team_id | No | Team ID to add the app to |