From 01eb7139e4e010c23e5f292b8b83be561ec7cf23 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Mon, 16 Jan 2023 19:03:19 +0100 Subject: [PATCH] add missing force option --- packages/core/strapi/bin/strapi.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/core/strapi/bin/strapi.js b/packages/core/strapi/bin/strapi.js index 9e85435568..f12a268e63 100755 --- a/packages/core/strapi/bin/strapi.js +++ b/packages/core/strapi/bin/strapi.js @@ -281,6 +281,7 @@ if (process.env.STRAPI_EXPERIMENTAL === 'true') { `URL of the remote Strapi instance to send data to` ).argParser(parseURL) ) + .addOption(forceOption) // Validate URLs .hook( 'preAction', @@ -303,6 +304,12 @@ if (process.env.STRAPI_EXPERIMENTAL === 'true') { () => exitWith(1, 'At least one source (from) or destination (to) option must be provided') ) ) + .hook( + 'preAction', + confirmMessage( + 'The import will delete all data in the remote database. Are you sure you want to proceed?' + ) + ) .allowExcessArguments(false) .action(getLocalScript('transfer/transfer')); }