From 701598a472e9bc37ae76dd1d1aa5e4d272b2fec1 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Fri, 24 Apr 2026 13:04:02 -0400 Subject: [PATCH] feat(install): show copyable install token in server start banner Color the install URL and add a separate block that prints the install token on its own line so users can copy it without parsing the query string. The token block shows in both the URL and reverse-proxy branches. Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/crates/fabro-cli/src/commands/server/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/crates/fabro-cli/src/commands/server/mod.rs b/lib/crates/fabro-cli/src/commands/server/mod.rs index 84f63e614..b2c56a60c 100644 --- a/lib/crates/fabro-cli/src/commands/server/mod.rs +++ b/lib/crates/fabro-cli/src/commands/server/mod.rs @@ -222,7 +222,7 @@ fn announce_install_mode(bind: &Bind, token: &str, styles: &Styles, printer: Pri match install_url_hint(bind, token) { Some(url) => { fabro_util::printerr!(printer, " Open this URL in your browser to finish setup:"); - fabro_util::printerr!(printer, " {url}"); + fabro_util::printerr!(printer, " {}", styles.cyan.apply_to(&url)); if let Err(e) = browser::try_open(&url) { fabro_util::printerr!(printer, ""); fabro_util::printerr!(printer, " Could not open a browser automatically: {e}"); @@ -237,6 +237,9 @@ fn announce_install_mode(bind: &Bind, token: &str, styles: &Styles, printer: Pri } } fabro_util::printerr!(printer, ""); + fabro_util::printerr!(printer, " If prompted, paste the install token:"); + fabro_util::printerr!(printer, " {}", styles.bold_cyan.apply_to(token)); + fabro_util::printerr!(printer, ""); fabro_util::printerr!( printer, "{}",