diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.ts index 56c648b490..cec2f395bb 100644 --- a/packages/cli/src/commands/start.ts +++ b/packages/cli/src/commands/start.ts @@ -67,11 +67,13 @@ export class Start extends BaseCommand { override needsCommunityPackages = true; + private getEditorUrl = () => Container.get(UrlService).getInstanceBaseUrl(); + /** * Opens the UI in browser */ private openBrowser() { - const editorUrl = Container.get(UrlService).baseUrl; + const editorUrl = this.getEditorUrl(); open(editorUrl, { wait: true }).catch(() => { this.logger.info( @@ -328,7 +330,8 @@ export class Start extends BaseCommand { // Start to get active workflows and run their triggers await this.activeWorkflowManager.init(); - const editorUrl = Container.get(UrlService).baseUrl; + const editorUrl = this.getEditorUrl(); + this.log(`\nEditor is now accessible via:\n${editorUrl}`); // Allow to open n8n editor by pressing "o"