Skip to content

Commit 301299c

Browse files
committed
Use @latest in readme commands
1 parent f2af43f commit 301299c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Run `npx create-stackbit-app` in your terminal to create a new Stackbit applicat
77
To create a new Stackbit project from a starter, run the following command:
88

99
```txt
10-
npx create-stackbit-app [dir]
10+
npx create-stackbit-app@latest [dir]
1111
```
1212

1313
To see a full list of options use the `--help` flag:
1414

1515
```txt
16-
> npx create-stackbit-app --help
16+
> npx create-stackbit-app@latest --help
1717
1818
Options:
1919
--version Show version number [boolean]
@@ -31,7 +31,7 @@ Options:
3131
Use the `--starter` option for specifying a starter. Run the command with the `--help` flag to see a full list of available starters.
3232

3333
```txt
34-
npx create-stackbit-app --starter ts-nextjs
34+
npx create-stackbit-app@latest --starter ts-nextjs
3535
```
3636

3737
If no starter option is provided, [the default starter](https://github.com/stackbit-themes/nextjs-starter) is used.
@@ -41,7 +41,7 @@ If no starter option is provided, [the default starter](https://github.com/stack
4141
Use the `--example` option to start a project from an example. Run the command with the `--help` flag to see a full list of available starters.
4242

4343
```txt
44-
npx create-stackbit-app --example algolia-search
44+
npx create-stackbit-app@latest --example algolia-search
4545
```
4646

4747
This will create a new project matching the name of the example, unless overridden (see below). [See here for a full list of starters](https://github.com/stackbit-themes/stackbit-examples).
@@ -53,7 +53,7 @@ _Note: This is an experimental feature. Please [report issues](https://github.co
5353
Pass a directory name as the only argument when running the command. For example, if you wanted your directory to be name `my-site`, the command would look something like this:
5454

5555
```txt
56-
npx create-stackbit-app my-site
56+
npx create-stackbit-app@latest my-site
5757
```
5858

5959
If no name is provided, the directory will be `my-stackbit-site` for starters or will match the name of the example if starting from an example. If the directory already exists, a timestamp value will be appended to the directory name to ensure uniqueness.

0 commit comments

Comments
 (0)