Repository: codemagic-ci-cd/cli-tools (language: python)

Issue:
Feature: Retry App Store Connect API requests that fail with server errors
Sometimes App Store Connect API responds to valid HTTP requests with server error response.

Those responses have status code `500` and have response payload as 
```json
{
    "errors": [
        {
            "status": "500",
            "code": "UNEXPECTED_ERROR",
            "title": "An unexpected error occurred.",
            "detail": "An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/."
        }
    ]
}
```

Since this failure is unavoidable by the user, we should retry the request in case of server errors. As failed HTTP request break the whole action that depends on this failed App Store Connect API call, whole CI jobs can fail. 

A common example of such interruption is when `app-store-connect submit-to-app-store`  action is terminated due to `500` error in the middle of processing the upload.

With the changes in this PR `app-store-connect` tool gets a new option `--api-server-error-retries` that accepts integer values to define how many times App Store Connect API requests that fail due to server errors should be retried. By default three retry attemps are made.

**Updated actions:**
- All `app-store-connect` actions and subactions.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2651ff4f..56285ed0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,11 +8,9 @@ Version 0.30.0
 - Save unexpected exception information and stacktrace to `$TMPDIR/codemagic-cli-tools/exceptions/yyyy-mm-dd/`. [PR #248](https://github.com/codemagic-ci-cd/cli-tools/pull/248)
 - Save unsuccessful App Store Connect HTTP request and response information to `$TMPDIR/codemagic-cli-tools/failed-http-requests/yyyy-mm-dd/`. [PR #248](https://github.com/codemagic-ci-cd/cli-tools/pull/248)
 
-Version 0.29.3
--------------
-
 **Docs**
-- Add the changelog URL to the `pyproject.toml` project file so that the changelog reference is included under project links in PyPI.
+- Update tool `app-store-connect` docs with `--api-server-error-retries` option. [PR #250](https://github.com/codemagic-ci-cd/cli-tools/pull/250)
+- Add the changelog URL to the `pyproject.toml` project file so that the changelog reference is included under project links in PyPI. [PR #247](https://github.com/codemagic-ci-cd/cli-tools/pull/247)
 
 Version 0.29.2
 -------------
diff --git a/docs/app-store-connect/README.md b/docs/app-store-connect/README.md
index ee6cc98c..e2d9f3d5 100644
--- a/docs/app-store-connect/README.md
+++ b/docs/app-store-connect/README.md
@@ -9,6 +9,7 @@ app-store-connect
 app-store-connect [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/app-store-version-localizations.md b/docs/app-store-connect/app-store-version-localizations.md
index 9acba181..a7f54de2 100644
--- a/docs/app-store-connect/app-store-version-localizations.md
+++ b/docs/app-store-connect/app-store-version-localizations.md
@@ -9,6 +9,7 @@ app-store-version-localizations
 app-store-connect app-store-version-localizations [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/app-store-version-localizations/create.md b/docs/app-store-connect/app-store-version-localizations/create.md
index 9f34a1dc..d5b83b8b 100644
--- a/docs/app-store-connect/app-store-version-localizations/create.md
+++ b/docs/app-store-connect/app-store-version-localizations/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect app-store-version-localizations create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -71,6 +72,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -124,4 +129,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-version-localizations/delete.md b/docs/app-store-connect/app-store-version-localizations/delete.md
index 777884d0..d27a8c8c 100644
--- a/docs/app-store-connect/app-store-version-localizations/delete.md
+++ b/docs/app-store-connect/app-store-version-localizations/delete.md
@@ -9,6 +9,7 @@ delete
 app-store-connect app-store-version-localizations delete [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-version-localizations/get.md b/docs/app-store-connect/app-store-version-localizations/get.md
index feaac7bf..fd0c0a97 100644
--- a/docs/app-store-connect/app-store-version-localizations/get.md
+++ b/docs/app-store-connect/app-store-version-localizations/get.md
@@ -9,6 +9,7 @@ get
 app-store-connect app-store-version-localizations get [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-version-localizations/modify.md b/docs/app-store-connect/app-store-version-localizations/modify.md
index b91c4741..eaecb198 100644
--- a/docs/app-store-connect/app-store-version-localizations/modify.md
+++ b/docs/app-store-connect/app-store-version-localizations/modify.md
@@ -9,6 +9,7 @@ modify
 app-store-connect app-store-version-localizations modify [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -66,6 +67,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -119,4 +124,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-version-submissions.md b/docs/app-store-connect/app-store-version-submissions.md
index 21a2b4f1..03b04ea5 100644
--- a/docs/app-store-connect/app-store-version-submissions.md
+++ b/docs/app-store-connect/app-store-version-submissions.md
@@ -9,6 +9,7 @@ app-store-version-submissions
 app-store-connect app-store-version-submissions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/app-store-version-submissions/create.md b/docs/app-store-connect/app-store-version-submissions/create.md
index 8991adc7..448167cd 100644
--- a/docs/app-store-connect/app-store-version-submissions/create.md
+++ b/docs/app-store-connect/app-store-version-submissions/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect app-store-version-submissions create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-version-submissions/delete.md b/docs/app-store-connect/app-store-version-submissions/delete.md
index c22e0fb5..ca9192cf 100644
--- a/docs/app-store-connect/app-store-version-submissions/delete.md
+++ b/docs/app-store-connect/app-store-version-submissions/delete.md
@@ -9,6 +9,7 @@ delete
 app-store-connect app-store-version-submissions delete [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-versions.md b/docs/app-store-connect/app-store-versions.md
index be1f9934..87d6f884 100644
--- a/docs/app-store-connect/app-store-versions.md
+++ b/docs/app-store-connect/app-store-versions.md
@@ -9,6 +9,7 @@ app-store-versions
 app-store-connect app-store-versions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/app-store-versions/create.md b/docs/app-store-connect/app-store-versions/create.md
index d162920e..fa4708ff 100644
--- a/docs/app-store-connect/app-store-versions/create.md
+++ b/docs/app-store-connect/app-store-versions/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect app-store-versions create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -61,6 +62,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -114,4 +119,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-versions/delete.md b/docs/app-store-connect/app-store-versions/delete.md
index d147ef8d..9b8e4b5e 100644
--- a/docs/app-store-connect/app-store-versions/delete.md
+++ b/docs/app-store-connect/app-store-versions/delete.md
@@ -9,6 +9,7 @@ delete
 app-store-connect app-store-versions delete [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-versions/localizations.md b/docs/app-store-connect/app-store-versions/localizations.md
index de9cc808..5d5ce420 100644
--- a/docs/app-store-connect/app-store-versions/localizations.md
+++ b/docs/app-store-connect/app-store-versions/localizations.md
@@ -9,6 +9,7 @@ localizations
 app-store-connect app-store-versions localizations [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/app-store-versions/modify.md b/docs/app-store-connect/app-store-versions/modify.md
index ef3e66f0..4b6e32e0 100644
--- a/docs/app-store-connect/app-store-versions/modify.md
+++ b/docs/app-store-connect/app-store-versions/modify.md
@@ -9,6 +9,7 @@ modify
 app-store-connect app-store-versions modify [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -61,6 +62,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -114,4 +119,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/apps.md b/docs/app-store-connect/apps.md
index 83a608db..cb973b55 100644
--- a/docs/app-store-connect/apps.md
+++ b/docs/app-store-connect/apps.md
@@ -9,6 +9,7 @@ apps
 app-store-connect apps [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/apps/app-store-versions.md b/docs/app-store-connect/apps/app-store-versions.md
index 0947f774..88273c71 100644
--- a/docs/app-store-connect/apps/app-store-versions.md
+++ b/docs/app-store-connect/apps/app-store-versions.md
@@ -9,6 +9,7 @@ app-store-versions
 app-store-connect apps app-store-versions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -56,6 +57,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -109,4 +114,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/apps/builds.md b/docs/app-store-connect/apps/builds.md
index 752b2a88..ad3754cf 100644
--- a/docs/app-store-connect/apps/builds.md
+++ b/docs/app-store-connect/apps/builds.md
@@ -9,6 +9,7 @@ builds
 app-store-connect apps builds [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -66,6 +67,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -119,4 +124,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/apps/get.md b/docs/app-store-connect/apps/get.md
index 3f1bd642..3f52c83d 100644
--- a/docs/app-store-connect/apps/get.md
+++ b/docs/app-store-connect/apps/get.md
@@ -9,6 +9,7 @@ get
 app-store-connect apps get [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/apps/list.md b/docs/app-store-connect/apps/list.md
index 26d03a99..03cfb102 100644
--- a/docs/app-store-connect/apps/list.md
+++ b/docs/app-store-connect/apps/list.md
@@ -9,6 +9,7 @@ list
 app-store-connect apps list [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -69,6 +70,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -122,4 +127,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/apps/pre-release-versions.md b/docs/app-store-connect/apps/pre-release-versions.md
index d4214530..13275997 100644
--- a/docs/app-store-connect/apps/pre-release-versions.md
+++ b/docs/app-store-connect/apps/pre-release-versions.md
@@ -9,6 +9,7 @@ pre-release-versions
 app-store-connect apps pre-release-versions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-app-review-submissions.md b/docs/app-store-connect/beta-app-review-submissions.md
index 2ebf9049..e4bfa262 100644
--- a/docs/app-store-connect/beta-app-review-submissions.md
+++ b/docs/app-store-connect/beta-app-review-submissions.md
@@ -9,6 +9,7 @@ beta-app-review-submissions
 app-store-connect beta-app-review-submissions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/beta-app-review-submissions/create.md b/docs/app-store-connect/beta-app-review-submissions/create.md
index 403b9e36..8ec95529 100644
--- a/docs/app-store-connect/beta-app-review-submissions/create.md
+++ b/docs/app-store-connect/beta-app-review-submissions/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect beta-app-review-submissions create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-app-review-submissions/list.md b/docs/app-store-connect/beta-app-review-submissions/list.md
index 0887bd79..e46aad2a 100644
--- a/docs/app-store-connect/beta-app-review-submissions/list.md
+++ b/docs/app-store-connect/beta-app-review-submissions/list.md
@@ -9,6 +9,7 @@ list
 app-store-connect beta-app-review-submissions list [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-build-localizations.md b/docs/app-store-connect/beta-build-localizations.md
index 7082fe55..b90f54e7 100644
--- a/docs/app-store-connect/beta-build-localizations.md
+++ b/docs/app-store-connect/beta-build-localizations.md
@@ -9,6 +9,7 @@ beta-build-localizations
 app-store-connect beta-build-localizations [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/beta-build-localizations/create.md b/docs/app-store-connect/beta-build-localizations/create.md
index 372d1c9f..66e5b64f 100644
--- a/docs/app-store-connect/beta-build-localizations/create.md
+++ b/docs/app-store-connect/beta-build-localizations/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect beta-build-localizations create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -46,6 +47,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -99,4 +104,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-build-localizations/delete.md b/docs/app-store-connect/beta-build-localizations/delete.md
index aa750b13..b6ecdc7e 100644
--- a/docs/app-store-connect/beta-build-localizations/delete.md
+++ b/docs/app-store-connect/beta-build-localizations/delete.md
@@ -9,6 +9,7 @@ delete
 app-store-connect beta-build-localizations delete [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-build-localizations/get.md b/docs/app-store-connect/beta-build-localizations/get.md
index 54c224ff..d3930b63 100644
--- a/docs/app-store-connect/beta-build-localizations/get.md
+++ b/docs/app-store-connect/beta-build-localizations/get.md
@@ -9,6 +9,7 @@ get
 app-store-connect beta-build-localizations get [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-build-localizations/list.md b/docs/app-store-connect/beta-build-localizations/list.md
index a625ebd2..ce62c966 100644
--- a/docs/app-store-connect/beta-build-localizations/list.md
+++ b/docs/app-store-connect/beta-build-localizations/list.md
@@ -9,6 +9,7 @@ list
 app-store-connect beta-build-localizations list [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-build-localizations/modify.md b/docs/app-store-connect/beta-build-localizations/modify.md
index b4e5cb46..798515f1 100644
--- a/docs/app-store-connect/beta-build-localizations/modify.md
+++ b/docs/app-store-connect/beta-build-localizations/modify.md
@@ -9,6 +9,7 @@ modify
 app-store-connect beta-build-localizations modify [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-groups.md b/docs/app-store-connect/beta-groups.md
index e500a442..5c2b18a1 100644
--- a/docs/app-store-connect/beta-groups.md
+++ b/docs/app-store-connect/beta-groups.md
@@ -9,6 +9,7 @@ beta-groups
 app-store-connect beta-groups [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/beta-groups/add-build.md b/docs/app-store-connect/beta-groups/add-build.md
index 2c0f6533..2d08318d 100644
--- a/docs/app-store-connect/beta-groups/add-build.md
+++ b/docs/app-store-connect/beta-groups/add-build.md
@@ -9,6 +9,7 @@ add-build
 app-store-connect beta-groups add-build [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -39,6 +40,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -92,4 +97,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/beta-groups/remove-build.md b/docs/app-store-connect/beta-groups/remove-build.md
index 91c0e229..a9815798 100644
--- a/docs/app-store-connect/beta-groups/remove-build.md
+++ b/docs/app-store-connect/beta-groups/remove-build.md
@@ -9,6 +9,7 @@ remove-build
 app-store-connect beta-groups remove-build [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -39,6 +40,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -92,4 +97,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/builds.md b/docs/app-store-connect/builds.md
index d3953982..d18e45ab 100644
--- a/docs/app-store-connect/builds.md
+++ b/docs/app-store-connect/builds.md
@@ -9,6 +9,7 @@ builds
 app-store-connect builds [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/builds/app-store-version.md b/docs/app-store-connect/builds/app-store-version.md
index e98f9a24..bff80a9e 100644
--- a/docs/app-store-connect/builds/app-store-version.md
+++ b/docs/app-store-connect/builds/app-store-version.md
@@ -9,6 +9,7 @@ app-store-version
 app-store-connect builds app-store-version [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/builds/get.md b/docs/app-store-connect/builds/get.md
index 5c79e565..21bf9b6a 100644
--- a/docs/app-store-connect/builds/get.md
+++ b/docs/app-store-connect/builds/get.md
@@ -9,6 +9,7 @@ get
 app-store-connect builds get [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/builds/pre-release-version.md b/docs/app-store-connect/builds/pre-release-version.md
index ad19ef3a..98a0f36c 100644
--- a/docs/app-store-connect/builds/pre-release-version.md
+++ b/docs/app-store-connect/builds/pre-release-version.md
@@ -9,6 +9,7 @@ pre-release-version
 app-store-connect builds pre-release-version [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/builds/submit-to-app-store.md b/docs/app-store-connect/builds/submit-to-app-store.md
index f4c4fee8..d623297b 100644
--- a/docs/app-store-connect/builds/submit-to-app-store.md
+++ b/docs/app-store-connect/builds/submit-to-app-store.md
@@ -9,6 +9,7 @@ submit-to-app-store
 app-store-connect builds submit-to-app-store [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -111,6 +112,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -164,4 +169,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/create-bundle-id.md b/docs/app-store-connect/create-bundle-id.md
index ef7ba64e..0f8744e7 100644
--- a/docs/app-store-connect/create-bundle-id.md
+++ b/docs/app-store-connect/create-bundle-id.md
@@ -9,6 +9,7 @@ create-bundle-id
 app-store-connect create-bundle-id [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -46,6 +47,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -99,4 +104,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/create-certificate.md b/docs/app-store-connect/create-certificate.md
index 6b9898fb..61ad7c2e 100644
--- a/docs/app-store-connect/create-certificate.md
+++ b/docs/app-store-connect/create-certificate.md
@@ -9,6 +9,7 @@ create-certificate
 app-store-connect create-certificate [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -59,6 +60,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -112,4 +117,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/create-profile.md b/docs/app-store-connect/create-profile.md
index eeab26c2..a52ea4d3 100644
--- a/docs/app-store-connect/create-profile.md
+++ b/docs/app-store-connect/create-profile.md
@@ -9,6 +9,7 @@ create-profile
 app-store-connect create-profile [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -61,6 +62,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -114,4 +119,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/delete-bundle-id.md b/docs/app-store-connect/delete-bundle-id.md
index 13131441..351f1059 100644
--- a/docs/app-store-connect/delete-bundle-id.md
+++ b/docs/app-store-connect/delete-bundle-id.md
@@ -9,6 +9,7 @@ delete-bundle-id
 app-store-connect delete-bundle-id [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/delete-certificate.md b/docs/app-store-connect/delete-certificate.md
index cc517f45..57861ef3 100644
--- a/docs/app-store-connect/delete-certificate.md
+++ b/docs/app-store-connect/delete-certificate.md
@@ -9,6 +9,7 @@ delete-certificate
 app-store-connect delete-certificate [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/delete-profile.md b/docs/app-store-connect/delete-profile.md
index fb599687..98574424 100644
--- a/docs/app-store-connect/delete-profile.md
+++ b/docs/app-store-connect/delete-profile.md
@@ -9,6 +9,7 @@ delete-profile
 app-store-connect delete-profile [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/fetch-signing-files.md b/docs/app-store-connect/fetch-signing-files.md
index 836ba76a..d1bbcfd0 100644
--- a/docs/app-store-connect/fetch-signing-files.md
+++ b/docs/app-store-connect/fetch-signing-files.md
@@ -9,6 +9,7 @@ fetch-signing-files
 app-store-connect fetch-signing-files [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -71,6 +72,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -124,4 +129,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/get-bundle-id.md b/docs/app-store-connect/get-bundle-id.md
index 92500c43..f8e200cb 100644
--- a/docs/app-store-connect/get-bundle-id.md
+++ b/docs/app-store-connect/get-bundle-id.md
@@ -9,6 +9,7 @@ get-bundle-id
 app-store-connect get-bundle-id [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/get-certificate.md b/docs/app-store-connect/get-certificate.md
index ee0130f6..3436ebaa 100644
--- a/docs/app-store-connect/get-certificate.md
+++ b/docs/app-store-connect/get-certificate.md
@@ -9,6 +9,7 @@ get-certificate
 app-store-connect get-certificate [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -61,6 +62,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -114,4 +119,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/get-profile.md b/docs/app-store-connect/get-profile.md
index 75b89775..55af21ee 100644
--- a/docs/app-store-connect/get-profile.md
+++ b/docs/app-store-connect/get-profile.md
@@ -9,6 +9,7 @@ get-profile
 app-store-connect get-profile [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-builds.md b/docs/app-store-connect/list-builds.md
index 03cddde7..5e4d9e50 100644
--- a/docs/app-store-connect/list-builds.md
+++ b/docs/app-store-connect/list-builds.md
@@ -9,6 +9,7 @@ list-builds
 app-store-connect list-builds [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -64,6 +65,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -117,4 +122,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-bundle-id-profiles.md b/docs/app-store-connect/list-bundle-id-profiles.md
index ad8a3b58..ddb85016 100644
--- a/docs/app-store-connect/list-bundle-id-profiles.md
+++ b/docs/app-store-connect/list-bundle-id-profiles.md
@@ -9,6 +9,7 @@ list-bundle-id-profiles
 app-store-connect list-bundle-id-profiles [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -56,6 +57,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -109,4 +114,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-bundle-ids.md b/docs/app-store-connect/list-bundle-ids.md
index 5ee1fc58..c286fd3e 100644
--- a/docs/app-store-connect/list-bundle-ids.md
+++ b/docs/app-store-connect/list-bundle-ids.md
@@ -9,6 +9,7 @@ list-bundle-ids
 app-store-connect list-bundle-ids [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -49,6 +50,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -102,4 +107,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-certificates.md b/docs/app-store-connect/list-certificates.md
index 8f2cb451..66c6705e 100644
--- a/docs/app-store-connect/list-certificates.md
+++ b/docs/app-store-connect/list-certificates.md
@@ -9,6 +9,7 @@ list-certificates
 app-store-connect list-certificates [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -64,6 +65,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -117,4 +122,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-devices.md b/docs/app-store-connect/list-devices.md
index 285e41f8..526d5776 100644
--- a/docs/app-store-connect/list-devices.md
+++ b/docs/app-store-connect/list-devices.md
@@ -9,6 +9,7 @@ list-devices
 app-store-connect list-devices [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -44,6 +45,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -97,4 +102,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/list-profiles.md b/docs/app-store-connect/list-profiles.md
index 6bf3757e..67a238ef 100644
--- a/docs/app-store-connect/list-profiles.md
+++ b/docs/app-store-connect/list-profiles.md
@@ -9,6 +9,7 @@ list-profiles
 app-store-connect list-profiles [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -49,6 +50,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -102,4 +107,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/publish.md b/docs/app-store-connect/publish.md
index 97b76ce6..a8582cb8 100644
--- a/docs/app-store-connect/publish.md
+++ b/docs/app-store-connect/publish.md
@@ -9,6 +9,7 @@ publish
 app-store-connect publish [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -181,6 +182,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -234,4 +239,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/register-device.md b/docs/app-store-connect/register-device.md
index dcb07722..a7e3da17 100644
--- a/docs/app-store-connect/register-device.md
+++ b/docs/app-store-connect/register-device.md
@@ -9,6 +9,7 @@ register-device
 app-store-connect register-device [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -46,6 +47,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -99,4 +104,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/review-submission-items.md b/docs/app-store-connect/review-submission-items.md
index bc611134..c502684f 100644
--- a/docs/app-store-connect/review-submission-items.md
+++ b/docs/app-store-connect/review-submission-items.md
@@ -9,6 +9,7 @@ review-submission-items
 app-store-connect review-submission-items [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/review-submission-items/create.md b/docs/app-store-connect/review-submission-items/create.md
index e0ff9ceb..010057b3 100644
--- a/docs/app-store-connect/review-submission-items/create.md
+++ b/docs/app-store-connect/review-submission-items/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect review-submission-items create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -54,6 +55,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -107,4 +112,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/review-submissions.md b/docs/app-store-connect/review-submissions.md
index bde3d4ed..94c026b3 100644
--- a/docs/app-store-connect/review-submissions.md
+++ b/docs/app-store-connect/review-submissions.md
@@ -9,6 +9,7 @@ review-submissions
 app-store-connect review-submissions [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -28,6 +29,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
diff --git a/docs/app-store-connect/review-submissions/cancel.md b/docs/app-store-connect/review-submissions/cancel.md
index 68db9810..270ffcf4 100644
--- a/docs/app-store-connect/review-submissions/cancel.md
+++ b/docs/app-store-connect/review-submissions/cancel.md
@@ -9,6 +9,7 @@ cancel
 app-store-connect review-submissions cancel [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/review-submissions/confirm.md b/docs/app-store-connect/review-submissions/confirm.md
index eb4a51f0..63ea857e 100644
--- a/docs/app-store-connect/review-submissions/confirm.md
+++ b/docs/app-store-connect/review-submissions/confirm.md
@@ -9,6 +9,7 @@ confirm
 app-store-connect review-submissions confirm [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/review-submissions/create.md b/docs/app-store-connect/review-submissions/create.md
index 1b720b5d..b5b745fc 100644
--- a/docs/app-store-connect/review-submissions/create.md
+++ b/docs/app-store-connect/review-submissions/create.md
@@ -9,6 +9,7 @@ create
 app-store-connect review-submissions create [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/review-submissions/get.md b/docs/app-store-connect/review-submissions/get.md
index 2c95043a..55a0adfe 100644
--- a/docs/app-store-connect/review-submissions/get.md
+++ b/docs/app-store-connect/review-submissions/get.md
@@ -9,6 +9,7 @@ get
 app-store-connect review-submissions get [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -34,6 +35,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -87,4 +92,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands


Test patch:
diff --git a/docs/app-store-connect/builds/add-beta-test-info.md b/docs/app-store-connect/builds/add-beta-test-info.md
index 852c2c63..83ca05a0 100644
--- a/docs/app-store-connect/builds/add-beta-test-info.md
+++ b/docs/app-store-connect/builds/add-beta-test-info.md
@@ -9,6 +9,7 @@ add-beta-test-info
 app-store-connect builds add-beta-test-info [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -51,6 +52,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -104,4 +109,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/builds/submit-to-testflight.md b/docs/app-store-connect/builds/submit-to-testflight.md
index 88ba1df2..314c43bb 100644
--- a/docs/app-store-connect/builds/submit-to-testflight.md
+++ b/docs/app-store-connect/builds/submit-to-testflight.md
@@ -9,6 +9,7 @@ submit-to-testflight
 app-store-connect builds submit-to-testflight [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -41,6 +42,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -94,4 +99,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/get-latest-app-store-build-number.md b/docs/app-store-connect/get-latest-app-store-build-number.md
index 705d0257..23cc0e17 100644
--- a/docs/app-store-connect/get-latest-app-store-build-number.md
+++ b/docs/app-store-connect/get-latest-app-store-build-number.md
@@ -9,6 +9,7 @@ get-latest-app-store-build-number
 app-store-connect get-latest-app-store-build-number [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -46,6 +47,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -99,4 +104,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands
diff --git a/docs/app-store-connect/get-latest-testflight-build-number.md b/docs/app-store-connect/get-latest-testflight-build-number.md
index 94d11841..4665c0dc 100644
--- a/docs/app-store-connect/get-latest-testflight-build-number.md
+++ b/docs/app-store-connect/get-latest-testflight-build-number.md
@@ -9,6 +9,7 @@ get-latest-testflight-build-number
 app-store-connect get-latest-testflight-build-number [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
     [--log-api-calls]
     [--api-unauthorized-retries UNAUTHORIZED_REQUEST_RETRIES]
+    [--api-server-error-retries SERVER_ERROR_RETRIES]
     [--disable-jwt-cache]
     [--json]
     [--issuer-id ISSUER_ID]
@@ -46,6 +47,10 @@ Turn on logging for App Store Connect API HTTP requests
 
 
 Specify how many times the App Store Connect API request should be retried in case the called request fails due to an authentication error (401 Unauthorized response from the server). In case of the above authentication error, the request is retried usinga new JSON Web Token as many times until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_UNAUTHORIZED_RETRIES`. [Default: 3]
+##### `--api-server-error-retries=SERVER_ERROR_RETRIES`
+
+
+Specify how many times the App Store Connect API request should be retried in case the called request fails due to a server error (response with status code 5xx). In case of server error, the request is retried until the number of retries is exhausted. If not given, the value will be checked from the environment variable `APP_STORE_CONNECT_API_SERVER_ERROR_RETRIES`. [Default: 3]
 ##### `--disable-jwt-cache`
 
 
@@ -99,4 +104,4 @@ Disable log output for commands
 ##### `-v, --verbose`
 
 
-Enable verbose logging for commands
\ No newline at end of file
+Enable verbose logging for commands