From: Haoqun Jiang Date: Sat, 1 Mar 2025 08:35:35 +0000 (+0800) Subject: docs: mention `--bare` option in README [skip ci] X-Git-Tag: v3.15.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a7b40ac2020d636fa41be1e4e1af62ccaf6b5f;p=thirdparty%2Fvuejs%2Fcreate-vue.git docs: mention `--bare` option in README [skip ci] --- diff --git a/README.md b/README.md index 7e4131c4..56cebbc4 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,20 @@ To create a new Vue project using `create-vue`, simply run the following command npm create vue@latest ``` -> [!NOTE] +> [!IMPORTANT] > (`@latest` or `@legacy`) MUST NOT be omitted, otherwise `npm` may resolve to a cached and outdated version of the package. -By default the command will run in interactive mode, but you can also provide feature flags in the CLI arguments to skip the prompts. Run `npm create vue@latest -- --help` to see all available options. +By default, the command runs in interactive mode with prompts. You can skip these prompts by providing feature flags as CLI arguments. To see all available feature flags and options: -> [!NOTE] -> If you're using PowerShell, you'll need to quote the `--`, that is, run `npm create vue@latest '--' --help`. +```sh +npm create vue@latest -- --help +``` + +This will show you various feature flags (like `--typescript`, `--router`) and options (like `--bare` for creating a project with minimal boilerplate). + +**PowerShell users:** You'll need to quote the double dashes: `npm create vue@latest '--' --help` + +### Creating Vue 2 Projects If you need to support IE11, you can create a Vue 2 project with: