diff --git a/commands/fetch.ts b/commands/fetch.ts index f51a45f45..e852b76dc 100644 --- a/commands/fetch.ts +++ b/commands/fetch.ts @@ -42,7 +42,7 @@ exports.handler = async options => { const { derivedAccountId } = options; const cmsPublishMode = getCmsPublishMode(options); - trackCommandUsage('fetch', { mode: cmsPublishMode }, accountId); + trackCommandUsage('fetch', { mode: cmsPublishMode }, derivedAccountId); try { // Fetch and write file/folder. diff --git a/lib/commonOpts.ts b/lib/commonOpts.ts index d226cf92e..ba6caf0d7 100644 --- a/lib/commonOpts.ts +++ b/lib/commonOpts.ts @@ -85,7 +85,6 @@ export function addUseEnvironmentOptions(yargs: Argv): Argv { .option('use-env', { describe: i18n(`${i18nKey}.options.useEnv.describe`), type: 'boolean', - default: false, }) .conflicts('use-env', 'account'); }