Only register the transfer command when STRAPI_EXPERIMENTAL is enabled

This commit is contained in:
Convly 2023-01-04 16:38:07 +01:00
parent 1ebbc5f504
commit 9f24e5cf18

View File

@ -258,6 +258,7 @@ program
.option('-s, --silent', `Run the generation silently, without any output`, false) .option('-s, --silent', `Run the generation silently, without any output`, false)
.action(getLocalScript('ts/generate-types')); .action(getLocalScript('ts/generate-types'));
if (process.env.STRAPI_EXPERIMENTAL) {
// `$ strapi transfer` // `$ strapi transfer`
program program
.command('transfer') .command('transfer')
@ -274,6 +275,7 @@ program
}) })
.allowExcessArguments(false) .allowExcessArguments(false)
.action(getLocalScript('transfer/transfer')); .action(getLocalScript('transfer/transfer'));
}
// `$ strapi export` // `$ strapi export`
program program