private static async Task ValidateAPIAsync(XDeployAPI api)
 {
     try
     {
         _ = await api.ValidateCredentialsAsync();
     }
     catch (Exception e)
     {
         throw new StartupException($"Invalid API credentials provided.", e);
     }
 }