Skip to content
Select theme

Commands

CommandRuns
npm installInstall dependencies.
npm run devDev server at localhost:4321, with hot reload.
npm run buildProduction build. Static files to dist/client/ (or .vercel/output/static/ on Vercel); server bundle to dist/server/ — see Deploy for which adapter picks which.
npm run previewPreview the production build locally.
npm run dev:ssoMock SSO server for developing the logged-in experience locally — see Setting it up.
npm run checkType-check the project (astro check).
npm testBuild, then assert against the output using Node’s built-in test runner. No browser needed.
npm run test:visualBrowser tests for the API reference and the SSO round trip. Needs npx playwright install chromium first; serves on port 4331 — set DOCS_TEST_PORT to move it.
npm run test:visual:ciAn alias for the above, kept as a stable name to point CI at.
npm run test:visual:updateThe same suite, updating screenshot baselines instead of comparing against them.
npm run astro -- <cmd>Any Astro CLI command.

start is an alias for dev.

Maintained by EkLine