mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #193] Add App Encryption Declarations (export compliance) CLI support #57
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/193
Overview
Add CLI support for App Encryption Declarations (export compliance). This is required when
usesNonExemptEncryption=trueand blocks App Review without a declaration.Docs (API)
Scope (Endpoints)
Read/list:
GET /v1/appEncryptionDeclarationsGET /v1/appEncryptionDeclarations/{id}GET /v1/apps/{id}/appEncryptionDeclarationsGET /v1/apps/{id}/relationships/appEncryptionDeclarationsGET /v1/appEncryptionDeclarations/{id}/appEncryptionDeclarationDocumentGET /v1/appEncryptionDeclarationDocuments/{id}Create/update:
POST /v1/appEncryptionDeclarationsPOST /v1/appEncryptionDeclarations/{id}/relationships/buildsPOST /v1/appEncryptionDeclarationDocumentsPATCH /v1/appEncryptionDeclarationDocuments/{id}(commit)Proposed CLI
Top-level group (suggested):
asc encryption <subcommand> [flags]Subcommands:
encryption declarations list --app APP_IDencryption declarations get --id DECL_IDencryption declarations create --app APP_ID [attributes per OpenAPI]encryption declarations assign-builds --id DECL_ID --build BUILD_ID[,BUILD_ID...]encryption documents get --id DOC_IDencryption documents upload --declaration DECL_ID --file ./export.pdf(create + upload ops + commit)Required Attributes
⚠️ Use the OpenAPI spec to surface required/optional fields for creation.
Search the spec for:
AppEncryptionDeclarationCreateRequestAppEncryptionDeclarationCreateRequest.Data.AttributesAppEncryptionDeclarationDocumentCreateRequestExpose those fields via explicit CLI flags and validate required combinations.
Output
Acceptance Criteria
asc encryption --helpis availableTests
Manual Test Plan (using real apps)
asc apps --paginate→APP_IDasc builds list --app APP_ID --paginate→BUILD_ID(pick a build withusesNonExemptEncryption=trueif applicable)asc encryption declarations list --app APP_IDasc encryption declarations create --app APP_ID [required flags]asc encryption documents upload --declaration DECL_ID --file ./export.pdfasc encryption declarations assign-builds --id DECL_ID --build BUILD_IDasc encryption declarations get --id DECL_IDasc encryption documents get --id DOC_IDImplementation Notes
cmd/encryption.go(group + subcommands)internal/asc/encryption.go+ output helperscmd/root.go@rudrankriyam commented on GitHub (Jan 27, 2026):
Closed as fixed by #234, #239. PRs: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/234, https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/239