diff --git a/packages/techdocs-cli/src/commands/index.ts b/packages/techdocs-cli/src/commands/index.ts index b951699104..d4303ad306 100644 --- a/packages/techdocs-cli/src/commands/index.ts +++ b/packages/techdocs-cli/src/commands/index.ts @@ -18,6 +18,7 @@ import { Command } from 'commander'; import { TechdocsGenerator } from '@backstage/plugin-techdocs-node'; const defaultDockerImage = TechdocsGenerator.defaultDockerImage; +const defaultPreviewAppPort = '3000'; export function registerCommands(program: Command) { program @@ -258,11 +259,11 @@ export function registerCommands(program: Command) { .option( '--preview-app-port ', 'Port for the preview app to be served on', - '3000', + defaultPreviewAppPort, ) .hook('preAction', command => { if ( - command.opts().previewAppPort && + command.opts().previewAppPort !== defaultPreviewAppPort && !command.opts().previewAppBundlePath ) { command.error(