How do I transfer environment variables from one app to another?

Last updated: July 21, 2026

Context

You may want to reuse environment variable groups (such as iOS signing credentials) across multiple Codemagic projects. This article explains how to transfer environment variables from one app to another.

Answer

Environment variables cannot be transferred directly between projects by the Codemagic team. You will need to do this either manually or via the Codemagic API using the following approach:

  1. Use the Get environment variables endpoint to retrieve the existing variable groups from your source app:
    https://codemagic.io/api/v3/schema

  2. Use the Create an environment variable endpoint to recreate those variables on your target app:
    https://codemagic.io/api/v3/schema

Important: Secure (encrypted) environment variables cannot be transferred via the API. Their values are not returned by the GET endpoint for security reasons. You will need to re-enter the values for any secure variables manually in the target app.