@zveltio/cli 1.2.0

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.
Files changed (3) hide show
  1. package/README.md +117 -0
  2. package/dist/index.js +3619 -0
  3. package/package.json +24 -0
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # @zveltio/cli
2
+
3
+ Official CLI for [Zveltio](https://zveltio.com) — manage your Zveltio instance from the terminal.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @zveltio/cli
9
+ # or
10
+ bun add -g @zveltio/cli
11
+ ```
12
+
13
+ Or run without installing:
14
+
15
+ ```bash
16
+ bunx @zveltio/cli init
17
+ ```
18
+
19
+ ## Commands
20
+
21
+ ### `zveltio init`
22
+
23
+ Scaffold a new Zveltio project with a `docker-compose.yml` and `.env`:
24
+
25
+ ```bash
26
+ zveltio init
27
+ ```
28
+
29
+ ### `zveltio dev`
30
+
31
+ Start the engine in development mode with hot reload:
32
+
33
+ ```bash
34
+ zveltio dev
35
+ ```
36
+
37
+ ### `zveltio start`
38
+
39
+ Start the engine in production mode:
40
+
41
+ ```bash
42
+ zveltio start
43
+ ```
44
+
45
+ ### `zveltio deploy`
46
+
47
+ Build a Docker image and push it to your registry:
48
+
49
+ ```bash
50
+ zveltio deploy --registry ghcr.io/your-org/your-app --tag latest
51
+ ```
52
+
53
+ ### `zveltio status`
54
+
55
+ Check the health of your running instance:
56
+
57
+ ```bash
58
+ zveltio status
59
+ # Engine: running v1.0.0
60
+ # Database: connected
61
+ # Cache: connected
62
+ # Uptime: 3d 14h 22m
63
+ ```
64
+
65
+ ### `zveltio migrate`
66
+
67
+ Run pending database migrations:
68
+
69
+ ```bash
70
+ zveltio migrate
71
+ ```
72
+
73
+ ### `zveltio rollback`
74
+
75
+ Rollback the last migration batch:
76
+
77
+ ```bash
78
+ zveltio rollback
79
+ ```
80
+
81
+ ### `zveltio update`
82
+
83
+ Update Zveltio to the latest version:
84
+
85
+ ```bash
86
+ zveltio update
87
+ ```
88
+
89
+ ### `zveltio generate-types`
90
+
91
+ Generate TypeScript types from your collections schema:
92
+
93
+ ```bash
94
+ zveltio generate-types --output ./types/zveltio.d.ts
95
+ ```
96
+
97
+ ### `zveltio extension install <id>`
98
+
99
+ Install an extension from the Zveltio marketplace:
100
+
101
+ ```bash
102
+ zveltio extension install @zveltio/ai
103
+ zveltio extension install @zveltio/crm
104
+ ```
105
+
106
+ ### `zveltio version`
107
+
108
+ Print the current CLI and engine version:
109
+
110
+ ```bash
111
+ zveltio version
112
+ ```
113
+
114
+ ## Links
115
+
116
+ - [Documentation](https://zveltio.com/docs/cli)
117
+ - [GitHub](https://github.com/zveltio/zveltio)