From 189030c314c96e3834a1a8e5096c865c6561ce1d Mon Sep 17 00:00:00 2001 From: bardonadam Date: Mon, 26 Oct 2026 10:05:46 +0700 Subject: [PATCH 1/2] Add metrics create for PUT /metrics/{key} Needs the Node SDK release with metrics.create before it ships. Co-Authored-By: Claude Opus 5.5 --- src/cli.js | 37 ++++++++++++++++++++++++++++++++++++- test/cli.test.js | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index 3e9f0d9..57b5884 100755 --- a/src/cli.js +++ b/src/cli.js @@ -1422,7 +1422,42 @@ program const metricsCommand = program .command("metrics") .alias("metric") - .description("Update widget metric values"); + .description("Create widget metrics and update their values"); + +metricsCommand + .command("create") + .description("Create a widget metric, or update the fields you pass for an existing one") + .argument("", "Metric key") + .option("--label