This Docker image is designed to simplify interactions with App Store Connect via Codemagic CLI Tools, facilitating the automation of app management tasks.
Ensure you have Docker installed on your system to use this image. Download Docker from Docker's official site.
The Docker image is hosted on Docker Hub and can be pulled using the following command:
docker pull bednar/app-store-connect-cli
If you prefer to build the image locally, clone this repository and navigate to the directory containing the Dockerfile. Run the following command:
docker build -t bednar/app-store-connect-cli .
With the Docker image, you can execute various commands to interact with App Store Connect. Here are some example commands:
List all applications in your App Store Connect account:
docker run -it --rm bednar/app-store-connect-cli apps list
Retrieve detailed information about a specific app using its App Store Connect ID:
docker run -it --rm bednar/app-store-connect-cli apps get 123456789
Submit an app for review with its version number:
docker run -it --rm bednar/app-store-connect-cli publish-application --app-id 123456789 --version "1.0.1"
To successfully interact with App Store Connect, you need to set up authentication credentials for Codemagic CLI Tools. The following steps guide you through the process:
- Create a new key in the App Store Connect account. Go to the App Store Connect
website and navigate to the
Users and Access
section. Click on theIntegrations
tab and create a new key. Download the key and save it securely. On the page, you can also view the Key identifier and Issuer ID. - These credentials can be passed to Codemagic CLI Tools as environment variables:
APP_STORE_CONNECT_ISSUER_ID
: The Issuer ID from the Integrations page -12345678-1234-1234-1234-123456789012
APP_STORE_CONNECT_KEY_IDENTIFIER
: The Key identifier from the Integrations page -12345678
APP_STORE_CONNECT_PRIVATE_KEY
: The downloaded private key from the App Store Connect key -AuthKey_123456789.p8
- You can pass these environment variables to the Docker container using the
-e
flag. Here is an example:
docker run -it --rm \
-e APP_STORE_CONNECT_ISSUER_ID="12345678-1234-1234-1234-123456789012" \
-e APP_STORE_CONNECT_KEY_IDENTIFIER="12345678" \
-e APP_STORE_CONNECT_PRIVATE_KEY="`cat ./AuthKey_123456789.p8`" \
-it --rm bednar/app-store-connect-cli <command>
Replace <command>
with any available Codemagic CLI command.
We welcome contributions from the community. Whether it's improving the Dockerfile, adding more examples, or reporting issues, your input is appreciated.
This project is released under the MIT License. See the LICENSE
file in the repository for more details.
If you have any questions or need help, please open an issue in this GitHub repository for support and inquiries. Follow this link to create a new issue: Open an Issue