As stated in the book's introduction:
This document is an attempt at providing a guide for my WSL 2 setup based on Arch Linux, or rather ArchWSL.
All commands are run from the root of the project, from a terminal
Command | Action |
---|---|
pnpm install |
Installs dependencies + creates backup yarn.lock |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add , astro check , astro sync |
pnpm dlx @astrojs/upgrade |
Update Starlight and therefore Astro, etc. |