@flaredev/cli 0.5.1 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,47 +1,59 @@
1
- # @flaredev/cli
2
-
3
- The `flare` command for [Flare](https://flare-docs.codetotech.com), a
4
- batteries-included fullstack framework on Cloudflare Workers (vinext, D1,
5
- Drizzle, Better Auth, R2). It scaffolds apps, generates resources with an admin
6
- dashboard and REST API, runs migrations and deploys.
7
-
8
- ## Install
9
-
10
- ```sh
11
- npm install -g @flaredev/cli # or: pnpm add -g @flaredev/cli
12
- ```
13
-
14
- Or with the install scripts (they check for Node.js 22+ and use npm or pnpm):
15
-
16
- ```sh
17
- # macOS / Linux
18
- curl -fsSL https://flare-docs.codetotech.com/install.sh | bash
19
- ```
20
-
21
- ```powershell
22
- # Windows PowerShell
23
- irm https://flare-docs.codetotech.com/install.ps1 | iex
24
- ```
25
-
26
- Or skip the install entirely:
27
-
28
- ```sh
29
- npm create flare-framework@latest my-app
30
- npx @flaredev/cli create my-app
31
- ```
32
-
33
- ## Use
34
-
35
- ```sh
36
- flare create shop
37
- cd shop
38
- flare gen resource Product --fields 'name:string, price:int, sku:string!'
39
- flare migrate
40
- flare dev
41
- flare deploy
42
- ```
43
-
44
- Run `flare --help` for every command, or read the
45
- [CLI reference](https://flare-docs.codetotech.com/reference/cli/).
46
-
47
- Requires Node.js 22 or later.
1
+ <p align="center">
2
+ <img src="https://flare-docs.codetotech.com/banner.png" alt="Flare — the full-stack framework for Cloudflare and Next.js" width="100%">
3
+ </p>
4
+
5
+ # @flaredev/cli
6
+
7
+ The `flare` command for [Flare](https://flare-docs.codetotech.com), a
8
+ batteries-included fullstack framework. It scaffolds apps, generates resources
9
+ with an admin dashboard and REST API, runs migrations and deploys.
10
+
11
+ Apps run on one of two stacks, chosen once at `flare create`:
12
+
13
+ - **Cloudflare** — vinext on Workers, D1 and Drizzle, Better Auth, R2.
14
+ - **Next.js** — Next.js 16 on Vercel, Postgres and Prisma, Better Auth, R2.
15
+
16
+ The descriptors, validators, policies, REST API and dashboard are the same on
17
+ both. [Choosing a stack](https://flare-docs.codetotech.com/start/stacks/) is the
18
+ comparison, including what each one can't do.
19
+
20
+ ## Install
21
+
22
+ ```sh
23
+ npm install -g @flaredev/cli # or: pnpm add -g @flaredev/cli
24
+ ```
25
+
26
+ Or with the install scripts (they check for Node.js 22+ and use npm or pnpm):
27
+
28
+ ```sh
29
+ # macOS / Linux
30
+ curl -fsSL https://flare-docs.codetotech.com/install.sh | bash
31
+ ```
32
+
33
+ ```powershell
34
+ # Windows PowerShell
35
+ irm https://flare-docs.codetotech.com/install.ps1 | iex
36
+ ```
37
+
38
+ Or skip the install entirely:
39
+
40
+ ```sh
41
+ npm create flare-framework@latest my-app
42
+ npx @flaredev/cli create my-app
43
+ ```
44
+
45
+ ## Use
46
+
47
+ ```sh
48
+ flare create shop
49
+ cd shop
50
+ flare gen resource Product --fields 'name:string, price:int, sku:string!'
51
+ flare migrate
52
+ flare dev
53
+ flare deploy
54
+ ```
55
+
56
+ Run `flare --help` for every command, or read the
57
+ [CLI reference](https://flare-docs.codetotech.com/reference/cli/).
58
+
59
+ Requires Node.js 22 or later.