跳转到主要内容

Package Managers

This component is based on the Nimbus package manager component and adds repository-specific support for global installs and reviewed Cloudflare CLI alternatives.

import { PackageManagers } from "~/components";

<PackageManagers pkg="wrangler" />

<PackageManagers pkg="cf" global />

<PackageManagers
	type="exec"
	pkg="wrangler"
	args="deploy"
	cfCommand="cf deploy"
/>

Use global only for packages designed to be installed globally. Use cfCommand only for a reviewed, single-line Cloudflare CLI equivalent of a Wrangler execution command. The value must begin with cf . Supplying this prop displays the shared CLI selector.