diff --git a/src/commands/app/deploy.ts b/src/commands/app/deploy.ts index 8e1b688..bf82d3e 100644 --- a/src/commands/app/deploy.ts +++ b/src/commands/app/deploy.ts @@ -61,8 +61,8 @@ export default class AppDeploy extends AuthenticatedCommand { public async run(): Promise { try { const { flags } = await this.parse(AppDeploy); - const { directoryPath, appId, appVersionId, region: strRegion, force } = flags; - const region = getRegionFromString(strRegion); + const { directoryPath, appId, appVersionId, force } = flags; + const region = getRegionFromString(flags?.region); const manifestFileDir = directoryPath || getCurrentWorkingDirectory(); const manifestFileData = readManifestFile(manifestFileDir); flags.appId = appId || manifestFileData.app.id;