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
Rstack CLI brings the Rstack toolchain together with one CLI and one configuration file. This guide adds Rstack to an existing project and introduces the available workflows.
9
+
Rstack CLI brings the Rstack toolchain together with one CLI and one configuration file. This guide shows how to create a new Rstack project or add Rstack to an existing project, and introduces the available workflows.
10
10
11
11
## Environment preparation
12
12
@@ -24,6 +24,95 @@ Rstack requires Node.js 22.12.0 or higher when using Node.js as the runtime.
24
24
25
25
:::
26
26
27
+
## Create a Rstack project
28
+
29
+
[create-rstack](https://www.npmjs.com/package/create-rstack) lets you quickly create an application, library, or documentation site with Rstack configured. We recommend using [pnpm](https://pnpm.io/) as your package manager.
30
+
31
+
<PackageManagerTabs
32
+
command={{
33
+
pnpm: 'pnpm create rstack@latest',
34
+
npm: 'npm create rstack@latest',
35
+
yarn: 'yarn create rstack',
36
+
bun: 'bun create rstack@latest',
37
+
deno: 'deno init --npm rstack@latest',
38
+
}}
39
+
/>
40
+
41
+
Follow the prompts to complete the setup.
42
+
43
+
After creating the project, do the following:
44
+
45
+
- Run `pnpm install` (or your package manager's install command) to install dependencies.
46
+
- Run `pnpm run dev` to start the development server or watch mode.
47
+
48
+
### Templates
49
+
50
+
When creating a project, choose from the following templates provided by `create-rstack`:
| Documentation site | Single language, multilingual |
57
+
58
+
All application and library templates are available in both JavaScript and TypeScript.
59
+
60
+
### Current directory
61
+
62
+
To create a project in the current directory, set the project name or path to `.`:
63
+
64
+
```
65
+
◆ Create Rstack Project
66
+
│
67
+
◇ Project name or path
68
+
│ .
69
+
│
70
+
◇ "." is not empty, please choose:
71
+
│ Continue and override files
72
+
```
73
+
74
+
### Non-interactive mode
75
+
76
+
[create-rstack](https://www.npmjs.com/package/create-rstack) supports a non-interactive mode via command-line options. This mode skips prompts and creates the project directly, which is useful for scripts, CI, and automation.
77
+
78
+
For example, the following command creates a TypeScript React application in the `my-project` directory:
0 commit comments