From 58d3f894692881c9dbbe1d9dbb27fd713b1aa7b2 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Sun, 8 Feb 2026 02:06:42 -0800 Subject: [PATCH] Print rendered site post URL behind --verbose Added a `--verbose` flag to `publish` that shows the post URL. Unfortunately, the resolved source path may not be the rended page path, but at least the CLI will show it now. --- packages/cli/src/commands/publish.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/publish.ts b/packages/cli/src/commands/publish.ts index 2d65ea8..2206fe9 100644 --- a/packages/cli/src/commands/publish.ts +++ b/packages/cli/src/commands/publish.ts @@ -40,8 +40,13 @@ export const publishCommand = command({ short: "n", description: "Preview what would be published without making changes", }), + verbose: flag({ + long: "verbose", + short: "v", + description: "Show more information", + }) }, - handler: async ({ force, dryRun }) => { + handler: async ({ force, dryRun, verbose }) => { // Load config const configPath = await findConfig(); if (!configPath) { @@ -233,7 +238,11 @@ export const publishCommand = command({ } } - log.message(` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}`); + let postUrl = ""; + if (verbose) { + postUrl = `\n ${config.siteUrl}/${relativeFilePath}`; + } + log.message(` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}${postUrl}`); } if (dryRun) { -- 2.51.2