diff --git a/src/base-command.ts b/src/base-command.ts index 4bc5fb6..f33e43a 100644 --- a/src/base-command.ts +++ b/src/base-command.ts @@ -79,7 +79,8 @@ export abstract class BaseCommand extends Command { this.validateRegionAndAuth(); this.developerHubBaseUrl = - this.sharedConfig.developerHubBaseUrl || getDeveloperHubUrl(); + this.sharedConfig.developerHubBaseUrl || this.developerHubUrl; + if (!this.developerHubBaseUrl) this.developerHubBaseUrl = getDeveloperHubUrl(); await this.initCmaSDK(); await this.initMarketplaceSDK(); }