From 12a7b40ac2020d636fa41be1e4e1af62ccaf6b5f Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sat, 1 Mar 2025 16:35:35 +0800 Subject: [PATCH] docs: mention `--bare` option in README [skip ci] --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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: -- 2.39.5