@@ -14,11 +14,11 @@ The following command will **create a new directory** and initialize your projec
1414
1515 - With ** npm** :
1616
17- `npm init @ui5/webcomponents-package`
18-
17+ `npm create @ui5/webcomponents-package@latest `
18+
1919 or
20-
21- `npm init @ui5/webcomponents-package <NEW-PACKAGE-NAME>`
20+
21+ `npm create @ui5/webcomponents-package@latest <NEW-PACKAGE-NAME>`
2222
2323
2424 - With ** yarn** :
@@ -31,10 +31,12 @@ The following command will **create a new directory** and initialize your projec
3131
3232** Note:** The ` <NEW-PACKAGE-NAME> ` is the name of the directory/project to be created, but also the NPM package name, used in the ` package.json ` .
3333
34+ ** Note:** Using ` @latest ` with npm ensures you always get the most recent version, bypassing any locally cached versions.
35+
3436For example:
3537
3638``` sh
37- npm init @ui5/webcomponents-package myComponents
39+ npm create @ui5/webcomponents-package@latest myComponents
3840```
3941
4042will create a ` myComponents ` directory and initialize the project inside.
@@ -52,7 +54,7 @@ The initialization script will ask you to choose:
5254
5355For CI/CD pipelines or scripted setups, you can skip the interactive prompts by using command-line options.
5456
55- Run ` npm create @ui5/webcomponents-package -- --help ` to see all available options:
57+ Run ` npm create @ui5/webcomponents-package@latest -- --help ` to see all available options:
5658
5759| Option | Type | Description | Default |
5860| ------------------| ---------| --------------------------------------------------------| --------------|
@@ -66,16 +68,16 @@ Run `npm create @ui5/webcomponents-package -- --help` to see all available optio
6668
6769``` sh
6870# Create package with default settings (non-interactive)
69- npm create @ui5/webcomponents-package -- --skip
71+ npm create @ui5/webcomponents-package@latest -- --skip
7072
7173# Create package with custom name
72- npm create @ui5/webcomponents-package -- --name my-components --skip
74+ npm create @ui5/webcomponents-package@latest -- --name my-components --skip
7375
7476# Create scoped package with Cypress test setup
75- npm create @ui5/webcomponents-package -- --name @myorg/ui5-components --testSetup cypress --skip
77+ npm create @ui5/webcomponents-package@latest -- --name @myorg/ui5-components --testSetup cypress --skip
7678
7779# Create package in current directory (no subfolder)
78- npm create @ui5/webcomponents-package -- --name my-components --skipSubfolder --skip
80+ npm create @ui5/webcomponents-package@latest -- --name my-components --skipSubfolder --skip
7981```
8082
8183### 3. Run the project
0 commit comments