pnpm dlx
버전 6.13.0에서 추가됨
의존성으로 설치하지 않고 레지스트리에서 패키지를 가져와 핫로드하고 노출하는 기본 명령 바이너리를 실행합니다.
For example, to use create-react-app
anywhere to bootstrap a react app without needing to install it under another project, you can run:
pnpm dlx create-react-app ./my-app
레지스트리에서 create-react-app
을 가져와서 주어진 인수로 실행할 것입니다.
v6.23.1 부터 사용할 패키지의 정확한 버전을 지정할 수도 있습니다.
pnpm dlx create-react-app@next ./my-app
옵션
--package <이름>
명령을 실행하기 전에 설치할 패키지를 입력합니다.
예시:
pnpm --package=@pnpm/meta-updater dlx meta-updater --help
pnpm --package=@pnpm/meta-updater@0 dlx meta-updater --help
v6.14.5부터 설치를 위해 여러 패키지를 제공할 수 있습니다.
pnpm --package=yo --package=generator-webapp dlx yo webapp --skip-install
--silent, -s
버전 6.17.0에서 추가됨
실행된 명령의 결과만 출력됩니다.