|
123456789101112131415161718192021222324252627 |
- ---
- id: docs_cli_create
- guide: docs_cli
- layout: guide
- ---
-
- {% include vars.html %}
-
- <p class="lead">Creates new projects from any <code>create-*</code> starter kits.</p>
-
- ##### `yarn create <starter-kit-package> [<args>]` <a class="toc" id="toc-yarn-create" href="#toc-yarn-create"></a>
-
- This command is a shorthand that helps you do two things at once:
-
- - Install `create-<starter-kit-package>` globally, or update the package to the
- latest version if it already exists
- - Run the `create-<starter-kit-package>` executable located in the `bin` field of the starter kit’s `package.json`,
- forwarding any `<args>` to it
-
- For example, `yarn create react-app my-app` is equivalent to:
-
- ```sh
- $ yarn global add create-react-app
- $ create-react-app my-app
- ```
-
- For more information, check out the [relevant blog entry](https://yarnpkg.com/blog/2017/05/12/introducing-yarn/).
|