From 9e5da8e7604cad8ea4559f3081ae2278ffeb4f7a Mon Sep 17 00:00:00 2001 From: Fabien Taillon Date: Mon, 16 Oct 2023 19:30:37 +0200 Subject: [PATCH] Removed installationkey warning --- package.json | 2 +- src/commands/texei/package/dependencies/install.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a29c336..95d8fbd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "texei-sfdx-plugin", "description": "Texeï's plugin for sfdx", - "version": "2.1.2", + "version": "2.1.3", "author": "Texeï", "bugs": "https://github.com/texei/texei-sfdx-plugin/issues", "dependencies": { diff --git a/src/commands/texei/package/dependencies/install.ts b/src/commands/texei/package/dependencies/install.ts index 77ac7ba..515b2af 100644 --- a/src/commands/texei/package/dependencies/install.ts +++ b/src/commands/texei/package/dependencies/install.ts @@ -243,7 +243,9 @@ export default class Install extends SfCommand // INSTALLATION KEY // eslint-disable-next-line @typescript-eslint/prefer-optional-chain if (installationKeys && installationKeys[i]) { - args.push('--installationkey'); + // use -k instead of --installationkey to avoid breaking script between --installationkey and --installation-key + // in case scripts still use sfdx instead of sf v2 + args.push('-k'); args.push(`${installationKeys[i]}`); }