Print rendered site post URL behind --verbose 58d3f894
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.
Heath Stewart · 2026-02-08 02:06 1 file(s) · +11 −2
packages/cli/src/commands/publish.ts +11 −2
40 40
			short: "n",
41 41
			description: "Preview what would be published without making changes",
42 42
		}),
43 +
		verbose: flag({
44 +
			long: "verbose",
45 +
			short: "v",
46 +
			description: "Show more information",
47 +
		})
43 48
	},
44 -
	handler: async ({ force, dryRun }) => {
49 +
	handler: async ({ force, dryRun, verbose }) => {
45 50
		// Load config
46 51
		const configPath = await findConfig();
47 52
		if (!configPath) {
233 238
				}
234 239
			}
235 240
236 -
			log.message(`  ${icon} ${post.frontmatter.title} (${reason})${bskyNote}`);
241 +
			let postUrl = "";
242 +
			if (verbose) {
243 +
				postUrl = `\n    ${config.siteUrl}/${relativeFilePath}`;
244 +
			}
245 +
			log.message(`  ${icon} ${post.frontmatter.title} (${reason})${bskyNote}${postUrl}`);
237 246
		}
238 247
239 248
		if (dryRun) {