diff --git a/apps/cli/man/man1/lh.1 b/apps/cli/man/man1/lh.1 index f95314d1ef..1d705ad9af 100644 --- a/apps/cli/man/man1/lh.1 +++ b/apps/cli/man/man1/lh.1 @@ -1,6 +1,6 @@ .\" Code generated by `npm run man:generate`; DO NOT EDIT. .\" Manual command details come from the Commander command tree. -.TH LH 1 "" "@lobehub/cli 0.0.1\-canary.12" "User Commands" +.TH LH 1 "" "@lobehub/cli 0.0.1\-canary.14" "User Commands" .SH NAME lh \- LobeHub CLI \- manage and connect to LobeHub services .SH SYNOPSIS @@ -27,7 +27,7 @@ For command-specific manuals, use the built-in manual command: .SH COMMANDS .TP .B login -Log in to LobeHub via browser (Device Code Flow) +Log in to LobeHub via browser (Device Code Flow) or configure API key server .TP .B logout Log out and remove stored credentials diff --git a/scripts/devStartupSequence.mts b/scripts/devStartupSequence.mts index cde2c47065..b87c194d11 100644 --- a/scripts/devStartupSequence.mts +++ b/scripts/devStartupSequence.mts @@ -8,9 +8,13 @@ const NEXT_HOST = 'localhost'; /** * Resolve the Next.js dev port. - * Respects the PORT environment variable, falls back to 3010. + * Priority: -p CLI flag > PORT env var > 3010. */ const resolveNextPort = (): number => { + const pIndex = process.argv.indexOf('-p'); + if (pIndex !== -1 && process.argv[pIndex + 1]) { + return Number(process.argv[pIndex + 1]); + } if (process.env.PORT) return Number(process.env.PORT); return 3010; };