Tooling
Of course, one would need to be able to edit this Guide to update it.
I use Starlight, which in turn is based on Astro.
As a package manager, I currently use pnpm. Below are the commands for package managers I am using / have used in the past.
Commands
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. |
Command | Action |
---|---|
bun install | Installs dependencies + creates backup yarn.lock |
bunx --bun astro dev | Starts local dev server at localhost:4321 |
bunx --bun astro build | Build your production site to ./dist/ |
bunx --bun astro preview | Preview your build locally, before deploying |
bunx --bun astro astro ... | Run CLI commands like astro add , astro check , astro sync |
bunx @astrojs/upgrade | Update Starlight and therefore Astro, etc. |