Skip to content

Commit 9b6558b

Browse files
committed
Updated examples for CLI install and usage
1 parent ffa36f8 commit 9b6558b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/spfx/release-1.23.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ SPFx CLI and templates are available in [GitHub](https://github.com/SharePoint/s
5050

5151
We are in progress of publishing first version of the CLI to NPMjs in upcoming days and we will share more documentation on the usage at this time. Current schedule for General Availability of SPFx CLI is June 2026.
5252

53+
Install the preview version of the SPFx CLI using following command.
54+
55+
```console
56+
npm install @microsoft/spfx-cli --global
57+
```
58+
59+
and you can scaffold your first solution with following command.
60+
61+
```console
62+
spfx create \
63+
--template webpart-react \
64+
--library-name my-spfx-library \
65+
--component-name "Hello World"
66+
```
67+
68+
See more details and other options from the CLI [documentation](https://github.com/SharePoint/spfx/blob/main/apps/spfx-cli/README.md).
69+
5370
Your feedback is welcome. Let us know your first impressions and provide suggestions.
5471

5572
### Addressing npm audit issues

0 commit comments

Comments
 (0)