@forge/cli
14.1.0-next.21-experimental-554d41714.1.0-next.19-experimental-fd0ebbc
out/command-line/controller/global-install-controller.js~
out/command-line/controller/global-install-controller.jsModified−3
Index: package/out/command-line/controller/global-install-controller.js
===================================================================
--- package/out/command-line/controller/global-install-controller.js
+++ package/out/command-line/controller/global-install-controller.js
@@ -21,11 +21,8 @@
this.installationService = installationService;
this.supportedProductsService = supportedProductsService;
}
async run({ appId, environment, nonInteractive, unitId, product, site }) {
- if ((product || site) && !unitId) {
- throw new cli_shared_1.UserError(cli_shared_1.Text.install.global.error.connectRequiresUnit);
- }
const environmentType = await this.assertDeployed(appId, environment);
const isNonInteractive = nonInteractive || Boolean(unitId);
const target = await this.resolveTarget(unitId, isNonInteractive);
if (isNonInteractive && (product || site)) {