@kuckit/cli 4.0.3 → 5.0.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.
- package/README.md +50 -5
- package/dist/bin.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @kuckit/cli
|
|
2
2
|
|
|
3
|
-
CLI tools for Kuckit SDK module development.
|
|
3
|
+
CLI tools for Kuckit SDK module development and infrastructure deployment.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,29 +8,38 @@ CLI tools for Kuckit SDK module development.
|
|
|
8
8
|
npm install -g @kuckit/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Or use directly with npx:
|
|
11
|
+
Or use directly with npx/bunx:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
npx @kuckit/cli <command>
|
|
15
|
+
bunx kuckit <command>
|
|
15
16
|
```
|
|
16
17
|
|
|
17
18
|
## Prerequisites
|
|
18
19
|
|
|
19
|
-
- Node.js 18+
|
|
20
|
+
- Node.js 18+ or [Bun](https://bun.sh)
|
|
20
21
|
- A Kuckit account at [kuckit.dev](https://kuckit.dev)
|
|
21
22
|
|
|
22
23
|
## Authentication
|
|
23
24
|
|
|
24
|
-
Before using the CLI,
|
|
25
|
+
Before using the CLI, authenticate:
|
|
25
26
|
|
|
26
27
|
```bash
|
|
27
28
|
kuckit auth login
|
|
28
29
|
```
|
|
29
30
|
|
|
30
|
-
This opens your browser to complete authentication.
|
|
31
|
+
This opens your browser to complete authentication. Credentials are stored in `~/.kuckit/config.json`.
|
|
31
32
|
|
|
32
33
|
## Commands
|
|
33
34
|
|
|
35
|
+
### Development
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
kuckit dev # Start development server with hot reload
|
|
39
|
+
kuckit build # Build for production
|
|
40
|
+
kuckit start # Start production server
|
|
41
|
+
```
|
|
42
|
+
|
|
34
43
|
### Generate a new module
|
|
35
44
|
|
|
36
45
|
```bash
|
|
@@ -82,6 +91,36 @@ kuckit db generate # Generate migration files
|
|
|
82
91
|
kuckit db studio # Open Drizzle Studio
|
|
83
92
|
```
|
|
84
93
|
|
|
94
|
+
### Infrastructure commands
|
|
95
|
+
|
|
96
|
+
Deploy to GCP with one command:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
kuckit infra up # Initialize and deploy (one command)
|
|
100
|
+
kuckit infra init # Initialize base infrastructure only
|
|
101
|
+
kuckit infra deploy # Build and deploy application
|
|
102
|
+
kuckit infra deploy --env prod # Deploy to production
|
|
103
|
+
kuckit infra status # Show deployment status
|
|
104
|
+
kuckit infra logs --follow # Stream Cloud Run logs
|
|
105
|
+
kuckit infra destroy # Tear down infrastructure
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Database operations:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
kuckit infra db:push --env dev # Push schema (dev only)
|
|
112
|
+
kuckit infra db:migrate --env prod # Run migrations (prod)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Configuration:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
kuckit infra config set appUrl https://app.example.com --env prod
|
|
119
|
+
kuckit infra config list --env prod
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
See the [Deployment Guide](https://github.com/draphonix/kuckit/blob/main/docs/DEPLOYMENT.md) for details.
|
|
123
|
+
|
|
85
124
|
### Authentication
|
|
86
125
|
|
|
87
126
|
```bash
|
|
@@ -90,6 +129,12 @@ kuckit auth logout # Clear stored credentials
|
|
|
90
129
|
kuckit auth whoami # Show current auth status
|
|
91
130
|
```
|
|
92
131
|
|
|
132
|
+
## Documentation
|
|
133
|
+
|
|
134
|
+
- [kuckit.dev](https://kuckit.dev) - Full documentation
|
|
135
|
+
- [Deployment Guide](https://github.com/draphonix/kuckit/blob/main/docs/DEPLOYMENT.md)
|
|
136
|
+
- [Module Development](https://github.com/draphonix/kuckit/blob/main/packages/sdk/docs/MODULE_DEVELOPMENT.md)
|
|
137
|
+
|
|
93
138
|
## License
|
|
94
139
|
|
|
95
140
|
MIT
|
package/dist/bin.js
CHANGED
|
@@ -643,7 +643,7 @@ async function dbStudio(options) {
|
|
|
643
643
|
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/lib/credentials.ts
|
|
646
|
-
const DEFAULT_SERVER_URL = "https://
|
|
646
|
+
const DEFAULT_SERVER_URL = "https://api.kuckit.dev";
|
|
647
647
|
const CONFIG_DIR = join(homedir(), ".kuckit");
|
|
648
648
|
const CONFIG_PATH = join(CONFIG_DIR, "config.json");
|
|
649
649
|
function loadConfig$7() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuckit/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "CLI tools for Kuckit SDK module development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tsdown": "catalog:"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@kuckit/sdk": ">=
|
|
57
|
+
"@kuckit/sdk": ">=4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"@kuckit/sdk": {
|