Skip to content

Commit dba8f44

Browse files
authored
fix(create): Update CLI instructions to reflect the new Dashboard (#3957)
1 parent 02ae2f3 commit dba8f44

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/create/src/create-vendure-app.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,14 @@ export async function createVendureApp(
379379
const autoRunServer = false;
380380
if (mode === 'quick' && autoRunServer) {
381381
// In quick-start mode, we want to now run the server and open up
382-
// a browser window to the Admin UI.
382+
// a browser window to the Dashboard.
383383
try {
384-
const adminUiUrl = `http://localhost:${port}/admin`;
384+
const dashboardUrl = `http://localhost:${port}/dashboard`;
385385
const quickStartInstructions = [
386-
'Use the following credentials to log in to the Admin UI:',
386+
'Use the following credentials to log in to the Dashboard:',
387387
`Username: ${pc.green(config.authOptions.superadminCredentials?.identifier)}`,
388388
`Password: ${pc.green(config.authOptions.superadminCredentials?.password)}`,
389-
`Open your browser and navigate to: ${pc.green(adminUiUrl)}`,
389+
`Open your browser and navigate to: ${pc.green(dashboardUrl)}`,
390390
'',
391391
];
392392
note(quickStartInstructions.join('\n'));
@@ -413,7 +413,7 @@ export async function createVendureApp(
413413
// before opening the window.
414414
await sleep(10_000);
415415
try {
416-
await open(adminUiUrl, {
416+
await open(dashboardUrl, {
417417
newInstance: true,
418418
});
419419
} catch (e: any) {
@@ -452,9 +452,12 @@ function displayOutro(
452452
pc.gray('$ ') + pc.blue(pc.bold(`${startCommand}`)),
453453
`\n`,
454454
`This will start the server in development mode.`,
455-
`To access the Admin UI, open your browser and navigate to:`,
456455
`\n`,
457-
pc.green(`http://localhost:3000/admin`),
456+
`To run the Dashboard, in a new terminal navigate to your project directory and run:`,
457+
pc.gray('$ ') + pc.blue(pc.bold(`npx vite`)),
458+
`\n`,
459+
`To access the Dashboard, open your browser and navigate to:`,
460+
pc.green(`http://localhost:3000/dashboard`),
458461
`\n`,
459462
`Use the following credentials to log in:`,
460463
`Username: ${pc.green(superAdminCredentials?.identifier ?? 'superadmin')}`,

0 commit comments

Comments
 (0)