diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 4c487fc62b..7b3ff4b61e 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -1433,6 +1433,7 @@ main.registerCommand({ 'no-wait': { type: Boolean }, 'cache-build': { type: Boolean }, free: { type: Boolean }, + plan: { type: String }, mongo: { type: Boolean } }, allowUnrecognizedOptions: true, @@ -1506,10 +1507,15 @@ function deployCommand(options, { rawOptions }) { if (options['deploy-polling-timeout']) { deployPollingTimeoutMs = options['deploy-polling-timeout']; } + let plan = null; + if (options.plan) { + plan = options.plan; + } const isCacheBuildEnabled = !!options['cache-build']; const waitForDeploy = !options['no-wait']; + console.log('deployCommand', options.plan); var deployResult = deploy.bundleAndDeploy({ projectContext: projectContext, site: site, @@ -1517,6 +1523,7 @@ function deployCommand(options, { rawOptions }) { free: options.free, mongo: options.mongo, buildOptions: buildOptions, + plan, rawOptions, deployPollingTimeoutMs, waitForDeploy, diff --git a/tools/meteor-services/deploy.js b/tools/meteor-services/deploy.js index 411ab1e7fa..c2e7e99422 100644 --- a/tools/meteor-services/deploy.js +++ b/tools/meteor-services/deploy.js @@ -621,7 +621,11 @@ export async function bundleAndDeploy(options) { {}, options.rawOptions, settings !== null ? {settings: settings} : {}, - { free: options.free, mongo: options.mongo }, + { + free: options.free, + plan: options.plan, + mongo: options.mongo + }, ), bodyStream: createTarGzStream(pathJoin(buildDir, 'bundle')), expectPayload: ['url'],