Command

Package manager commands with tabbed interface

Last updated March 17, 2026

Display package manager commands with automatic tabs. Supports any command and any combination of package managers.

Usage

Use the command code fence. List the package managers after command. The content is the command to run, prefixed with each manager name.

```command npm pnpm bun yarn
install @ephem-sh/petit
```

If no managers are specified, all four are shown (npm, pnpm, bun, yarn).

Live mode

Add live after the managers to use package runners instead of managers. This swaps npm for npx, bun for bun x, pnpm for pnpm dlx, and yarn for yarn dlx.

```command npm pnpm bun yarn live
@ephem-sh/petit dev
```

This renders tabs showing npx @ephem-sh/petit dev, pnpm dlx @ephem-sh/petit dev, bun x @ephem-sh/petit dev, and yarn dlx @ephem-sh/petit dev.

Examples

Install a package

npm install @ephem-sh/petit
pnpm install @ephem-sh/petit
bun install @ephem-sh/petit
yarn install @ephem-sh/petit

Run a package

npx @ephem-sh/petit dev
pnpm dlx @ephem-sh/petit dev
bun x @ephem-sh/petit dev
yarn dlx @ephem-sh/petit dev

Specific managers only

npx @ephem-sh/petit init
pnpm dlx @ephem-sh/petit init

API reference

Command properties
PropertyTypeDefaultDescription
managersstring[]npm, pnpm, bun, yarnPackage managers to show (space-separated after `command`)
liveflagfalseUse package runners (npx, bun x, pnpm dlx, yarn dlx) instead of managers
commandstringrequiredThe command to run (content of the code fence)

Search Documentation

Search for pages and content