PackageManagers
Tabbed code block — one tab per package manager (npm, yarn, pnpm, bun). Tabs sync across instances on the page.
Installation
npx nimbus-docs add package-managers yarn dlx nimbus-docs add package-managers pnpm dlx nimbus-docs add package-managers bunx nimbus-docs add package-managers Preview
npm i nimbus-docs yarn add nimbus-docs pnpm add nimbus-docs bun add nimbus-docs <PackageManagers pkg="nimbus-docs" type="add" />Examples
dlx with args
Use type=“dlx” to invoke a CLI without installing — useful for scaffolders.
# Scaffold a new project
npx create-astro@latest # Scaffold a new project
yarn dlx create-astro@latest # Scaffold a new project
pnpm dlx create-astro@latest # Scaffold a new project
bunx create-astro@latest <PackageManagers
pkg="create-astro@latest"
type="dlx"
comment="Scaffold a new project"
/>API reference
Every prop the component accepts, sourced from a single declaration.
| Prop | Type |
|---|---|
pkg | string |
type | "add" | "create" | "dlx" | "exec" | "install" | "remove" | "run" |
args | string |
dev | boolean |
comment | string |