@rudderhq/cli 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -84,10 +84,18 @@ The fastest path installs the per-user portable Rudder Desktop app and prepares
84
84
  npx @rudderhq/cli@latest start
85
85
  ```
86
86
 
87
+ For a server or headless host where the Desktop app should not be installed,
88
+ prepare only the server runtime and persistent CLI:
89
+
90
+ ```bash
91
+ npx @rudderhq/cli@latest start --server-only
92
+ ```
93
+
87
94
  After the persistent CLI is available, the direct `rudder` form is the same command surface:
88
95
 
89
96
  ```bash
90
97
  rudder start
98
+ rudder start --server-only
91
99
  ```
92
100
 
93
101
  ### Develop Rudder
package/dist/index.js CHANGED
@@ -614,6 +614,7 @@ var init_instance = __esm({
614
614
  }).strict();
615
615
  patchInstanceNotificationSettingsSchema = instanceNotificationSettingsSchema.partial();
616
616
  instanceLangfuseSettingsSchema = z.object({
617
+ installed: z.boolean().default(false),
617
618
  enabled: z.boolean().default(false),
618
619
  baseUrl: z.string().url().default("http://localhost:3000"),
619
620
  publicKey: z.string().default(""),
@@ -3223,6 +3224,7 @@ var init_config_schema = __esm({
3223
3224
  })
3224
3225
  });
3225
3226
  langfuseConfigSchema = z28.object({
3227
+ installed: z28.boolean().optional(),
3226
3228
  enabled: z28.boolean().default(false),
3227
3229
  baseUrl: z28.string().url().default("http://localhost:3000"),
3228
3230
  publicKey: z28.string().optional(),
@@ -15288,7 +15290,8 @@ async function runStartPhase(message, successMessage, task, progressPhase) {
15288
15290
  }
15289
15291
  async function startCommand(opts) {
15290
15292
  const installCli = opts.cli !== false;
15291
- const installDesktop = opts.desktop !== false;
15293
+ const serverOnly = opts.serverOnly === true;
15294
+ const installDesktop = !serverOnly && opts.desktop !== false;
15292
15295
  const installRuntime = opts.runtime !== false;
15293
15296
  const repo = opts.repo?.trim() || DEFAULT_DESKTOP_RELEASE_REPO;
15294
15297
  const version = opts.targetVersion?.trim() || opts.version?.trim() || resolveCurrentCliVersion();
@@ -15301,9 +15304,9 @@ async function startCommand(opts) {
15301
15304
  });
15302
15305
  }
15303
15306
  if (!installCli && !installDesktop && !installRuntime) {
15304
- throw new Error("Nothing to start. Remove --no-cli, --no-runtime, or --no-desktop.");
15307
+ throw new Error("Nothing to start. Remove --no-cli, --no-runtime, --no-desktop, or --server-only.");
15305
15308
  }
15306
- p15.intro(pc15.bgCyan(pc15.black(" rudder start ")));
15309
+ p15.intro(pc15.bgCyan(pc15.black(serverOnly ? " rudder start --server-only " : " rudder start ")));
15307
15310
  if (opts.versionCheck !== false) {
15308
15311
  const updateNotice = await getCliUpdateNotice(version);
15309
15312
  if (updateNotice) p15.log.warn(updateNotice);
@@ -15531,6 +15534,9 @@ async function startCommand(opts) {
15531
15534
  );
15532
15535
  }
15533
15536
  });
15537
+ } else if (serverOnly) {
15538
+ p15.log.step("Server-only install");
15539
+ p15.log.message("Desktop app installation was skipped. Start the server with `rudder run` and open the printed local URL in a browser.");
15534
15540
  }
15535
15541
  p15.outro(pc15.green("Rudder start complete."));
15536
15542
  }
@@ -15601,7 +15607,7 @@ function createProgram() {
15601
15607
  });
15602
15608
  loadRudderEnvFile(options.config);
15603
15609
  });
15604
- program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--no-cli", "Skip persistent CLI installation").option("--no-runtime", "Skip Rudder runtime installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--target-version <version>", "Rudder version to start; avoids the root CLI version flag").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--wait-for-active-runs", "Wait for active Rudder runs to finish before replacing Desktop", false).option("--desktop-progress-json", "Emit newline-delimited Desktop update progress events").option("--desktop-wait-for-apply", "Wait for an apply signal after downloading and verifying the Desktop update", false).option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
15610
+ program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--server-only", "Prepare the Rudder server runtime and persistent CLI without installing Desktop").option("--no-cli", "Skip persistent CLI installation").option("--no-runtime", "Skip Rudder runtime installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--target-version <version>", "Rudder version to start; avoids the root CLI version flag").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--wait-for-active-runs", "Wait for active Rudder runs to finish before replacing Desktop", false).option("--desktop-progress-json", "Emit newline-delimited Desktop update progress events").option("--desktop-wait-for-apply", "Wait for an apply signal after downloading and verifying the Desktop update", false).option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
15605
15611
  program.command("onboard").description("Interactive first-run setup wizard").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("-y, --yes", "Accept defaults (quickstart + start immediately)", false).option("--run", "Start Rudder immediately after saving config", false).action(onboard);
15606
15612
  program.command("doctor").description("Run diagnostic checks on your Rudder setup").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("--repair", "Attempt to repair issues automatically").alias("--fix").option("-y, --yes", "Skip repair confirmation prompts").action(async (opts) => {
15607
15613
  await doctor(opts);