Upload ipa from command line using individual API key

I'm trying to upload an ipa during CI/CD using the following command:

API_PRIVATE_KEYS_DIR=<path_to_AuthKey_<key_id>.p8_dir> xcrun altool --upload-app --apiKey <my_key_id> --apiIssuer <issuer_id> -t ios -f my.ipa

But it fails with the following error:

Error Domain=ITunesConnectionAuthenticationErrorDomain Code=-26000 \"Failure to authenticate.\" UserInfo={NSLocalizedRecoverySuggestion=Failure to authenticate., NSLocalizedDescription=Failure to authenticate., NSLocalizedFailureReason=App Store operation failed.}

I fear the reason is that the altool doesn't support individual API keys, is that correct or am I doing something wrong?

You are correct. altool does not support individual API Keys at this time.

Ok, that's fine. Is it on the roadmap? Or maybe better still, are Testflight ipa uploads on the roadmap for the the App Store Connect API?

we are running into a similar issue with individual keys when using them with xcodebuild. Are they supported by xcodebuild 15.4 or later?

 xcodebuild -exportArchive -archivePath path/to/my.xcarchive -exportOptionsPlist my-options.plist -allowProvisioningUpdates -authenticationKeyIssuerID issuer-id -authenticationKeyID auth-key-id -authenticationKeyPath my/AuthKey_some-id.p8

Error: Unable to authenticate with App Store Connect (Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 "Failure to authenticate." UserInfo={NSLocalizedRecoverySuggestion=Failure to authenticate., NSLocalizedFailureReason=App Store operation failed., NSLocalizedDescription=Failure to authenticate.})) error: exportArchive: No Accounts with App Store Connect Access

Upload ipa from command line using individual API key
 
 
Q