Skip to content
🗃

Starlight Package Managers

Quickly display npm related commands for multiple package managers in your Starlight documentation site.

Replace

<Tabs>
<TabItem label="npm">
```sh
npm create astro@latest -- --template starlight
```
</TabItem>
<TabItem label="pnpm">
```sh
pnpm create astro --template starlight
```
</TabItem>
<TabItem label="Yarn">
```sh
yarn create astro --template starlight
```
</TabItem>
</Tabs>

By

<PackageManagers
type="create"
pkg="astro@latest"
args="--template starlight"
/>