add -k to strapi export

This commit is contained in:
Shaun Brown 2022-12-16 09:39:39 +00:00
parent 62626cd878
commit aaeff44a7d

View File

@ -267,11 +267,14 @@ program
.command('export') .command('export')
.description('Export data from Strapi to file') .description('Export data from Strapi to file')
.addOption( .addOption(
new Option('--no-encrypt', `Disable 'aes-128-ecb' encryption of the output file`).default(true) new Option('--no-encrypt', `Disables 'aes-128-ecb' encryption of the output file`).default(true)
) )
.addOption(new Option('--no-compress', 'Disable gzip compression of output file').default(true)) .addOption(new Option('--no-compress', 'Disables gzip compression of output file').default(true))
.addOption( .addOption(
new Option('--key <string>', 'Provide encryption key in command instead of using a prompt') new Option(
'-k, --key <string>',
'Provide encryption key in command instead of using the prompt'
)
) )
.addOption( .addOption(
new Option( new Option(
@ -314,10 +317,13 @@ program
) )
.requiredOption( .requiredOption(
'-f, --file <file>', '-f, --file <file>',
'path and filename to the Strapi export file you want to import' 'path and filename for the Strapi export file you want to import'
) )
.addOption( .addOption(
new Option('-k, --key <string>', 'Provide encryption key in command instead of using a prompt') new Option(
'-k, --key <string>',
'Provide encryption key in command instead of using the prompt'
)
) )
.allowExcessArguments(false) .allowExcessArguments(false)
.hook('preAction', async (thisCommand) => { .hook('preAction', async (thisCommand) => {