]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
docs: mention `--bare` option in README [skip ci]
authorHaoqun Jiang <haoqunjiang@gmail.com>
Sat, 1 Mar 2025 08:35:35 +0000 (16:35 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Sat, 1 Mar 2025 08:36:03 +0000 (16:36 +0800)
README.md

index 7e4131c40a20cc6b824d2ae269cbf526a519e8f9..56cebbc4e7501e644e8a795a5d53266ca1927630 100644 (file)
--- 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: