PMCommand

A package manager command component.

Installation

Commands

We use package-manager-detector to ensure that every package manager is properly supported. Also giving your auto-complete for your commands.

Variants

Overflow

Persisted Package Manager

Use the runed PersistedState API to remember the users package manager.

Customize Agents

You can also customize the agents to your liking by providing your own array of agents with the agents prop.

API Reference

PmCommand

The root component for displaying a package manager command with agent tabs and copy functionality.

PropTypeDefault
variant?
enum default
class?
string -
agents?
Agent[] ['npm', 'pnpm', 'yarn', 'bun']
agent? $bindable
Agent npm
command
Command -
args
string[] -