From ac3070ebe7678646c1815adcf0cb192dc7384112 Mon Sep 17 00:00:00 2001 From: maksim hodasevich Date: Thu, 7 Nov 2024 16:04:52 +0100 Subject: [PATCH] fix CLI messages --- apps/storyblok/CLI/sb.mjs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/storyblok/CLI/sb.mjs b/apps/storyblok/CLI/sb.mjs index e2578ed..275cc5d 100644 --- a/apps/storyblok/CLI/sb.mjs +++ b/apps/storyblok/CLI/sb.mjs @@ -56,7 +56,7 @@ const main = async () => { // Log in to storyblok CLI spinner.start("Logging in to storyblok CLI ⏳"); - const stdio = "inherit"; + const stdio = "ignore"; try { execSync("pnpm storyblok logout", { stdio, @@ -146,9 +146,15 @@ const main = async () => { "green", ), ); - console.log(colorText("Space ID:", "cyan"), colorText(spaceId, "yellow")); console.log( - colorText("Preview Domain:", "cyan"), + colorText("Storyblok dashboard:", "cyan"), + colorText( + `https://app.storyblok.com/me/spaces/${spaceId}/dashboard`, + "yellow", + ), + ); + console.log( + colorText("Domain:", "cyan"), colorText(productionDeploymentUrl, "yellow"), ); } catch (error) {