From 317073e629387ca3f7e3b3430e5d5a6b4cd3cea4 Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Mon, 20 Oct 2025 11:21:24 -0400 Subject: [PATCH] Add programmatic CTA build option (#58041) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/content-render/scripts/cta-builder.ts | 64 +++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/src/content-render/scripts/cta-builder.ts b/src/content-render/scripts/cta-builder.ts index df1c706593b7..f5aae6097073 100644 --- a/src/content-render/scripts/cta-builder.ts +++ b/src/content-render/scripts/cta-builder.ts @@ -64,6 +64,19 @@ program validateUrl(options) }) +// Add programmatic build command +program + .command('build') + .description('Build a CTA URL programmatically with flags (outputs URL only)') + .requiredOption('--url ', 'Base URL for the CTA') + .requiredOption('--product ', 'Product reference (copilot, ghec, desktop)') + .requiredOption('--type ', 'CTA type (trial, purchase, engagement)') + .requiredOption('--style