Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Should we recommend npx create-book <directory> or with Yarn 2 yarn dlx create-book <directory> #9

@MurakamiShinyu

Description

@MurakamiShinyu

In the current README:

Just run yarn create book and start writing your book!

Use

yarn create book <directory>
# or
npm create book <directory>

I checked the Yarn 2 documentation - Migration - CLI Commands - Renamed and found that the yarn create in Yarn Classic (1.x) is replaced to yarn dlx create-<name> in Yarn 2 with Note: "yarn create still works, but prefer using yarn dlx".

If yarn create will be deprecated, we should not recommend yarn create and its npm counterpart npm create and should recommend npx and yarn dlx?

npx create-book <directory>   # same as `npm create book <directory>`
# or if Yarn 2 is available:
yarn dlx create-book <directory>

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions