You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no starter option is provided, [the default starter](https://github.com/stackbit-themes/nextjs-starter) is used.
33
35
36
+
### Starting from an Example (🧪 Experimental)
37
+
38
+
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.
39
+
40
+
```txt
41
+
npx create-stackbit-app --example algolia-search
42
+
```
43
+
44
+
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).
45
+
46
+
_Note: This is an experimental feature. Please [report issues](https://github.com/stackbit/create-stackbit-app/issues/new)._
47
+
34
48
### Setting Project Directory
35
49
36
50
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:
@@ -39,7 +53,7 @@ Pass a directory name as the only argument when running the command. For example
39
53
npx create-stackbit-app my-site
40
54
```
41
55
42
-
If no name is provided, the directory will be `my-stackbit-site-[id]`, where `[id]` is a randomly-generated string used to avoid directory conflicts.
56
+
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