@vibecodemax/cli 0.1.1 → 0.1.3
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 +34 -88
- package/dist/cli.js +617 -10
- package/dist/storageS3.js +630 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,156 +1,102 @@
|
|
|
1
1
|
# @vibecodemax/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI for VibeCodeMax projects. Runs bootstrap provider configuration locally from your project root — credentials never leave your machine.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## What it does
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
During bootstrap, the MCP orchestrates your project setup step by step. When a step requires provider configuration (setting up auth, applying API settings, enabling integrations), this CLI handles the actual provider calls locally using credentials stored in your env files.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- No secret values are passed through MCP payloads
|
|
11
|
-
- No secret values are printed to stdout
|
|
12
|
-
- Commands return structured JSON only
|
|
13
|
-
- Exit code `0` means success; non-zero means failure
|
|
9
|
+
You don't run this CLI manually in most cases — the MCP tells your coding agent which command to execute and the agent runs it from your project root.
|
|
14
10
|
|
|
15
11
|
## Requirements
|
|
16
12
|
|
|
17
13
|
- Node.js 20+
|
|
18
|
-
-
|
|
14
|
+
- A VibeCodeMax project with `.env.local` and/or `.env.bootstrap.local` configured
|
|
19
15
|
|
|
20
|
-
##
|
|
21
|
-
|
|
22
|
-
Install dependencies:
|
|
16
|
+
## Usage
|
|
23
17
|
|
|
24
18
|
```bash
|
|
25
|
-
|
|
19
|
+
npx @vibecodemax/cli <command> [options]
|
|
26
20
|
```
|
|
27
21
|
|
|
28
|
-
|
|
22
|
+
Package manager variants:
|
|
29
23
|
|
|
30
24
|
```bash
|
|
31
|
-
|
|
25
|
+
pnpm dlx @vibecodemax/cli <command> [options]
|
|
26
|
+
yarn dlx @vibecodemax/cli <command> [options]
|
|
32
27
|
```
|
|
33
28
|
|
|
34
|
-
|
|
29
|
+
## Commands
|
|
35
30
|
|
|
36
|
-
|
|
37
|
-
npm run typecheck
|
|
38
|
-
```
|
|
31
|
+
### `read-setup-state`
|
|
39
32
|
|
|
40
|
-
|
|
33
|
+
Reads `.vibecodemax/setup-state.json` from the current project and prints a JSON `setupState` object for bootstrap prerequisite hydration.
|
|
41
34
|
|
|
42
35
|
```bash
|
|
43
|
-
|
|
36
|
+
npx @vibecodemax/cli read-setup-state
|
|
44
37
|
```
|
|
45
38
|
|
|
46
|
-
|
|
39
|
+
### `admin ensure-admin`
|
|
47
40
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
npm:
|
|
41
|
+
Ensures the target user exists in Supabase Auth and has the `admin` role in the default `profiles` table.
|
|
51
42
|
|
|
52
43
|
```bash
|
|
53
|
-
npx @vibecodemax/cli@
|
|
44
|
+
npx @vibecodemax/cli admin ensure-admin --email admin@example.com
|
|
54
45
|
```
|
|
55
46
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
pnpm dlx @vibecodemax/cli@0.1.0 help
|
|
60
|
-
```
|
|
47
|
+
This command reads `SUPABASE_SERVICE_ROLE_KEY` and `SUPABASE_URL` or `NEXT_PUBLIC_SUPABASE_URL` from local env files, performs lookup/create/promote/verify locally, and prints JSON only.
|
|
61
48
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
yarn dlx @vibecodemax/cli@0.1.0 help
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Commands
|
|
49
|
+
If a new user is created, the CLI output includes `temporaryPassword`. Show that password to the user directly and do not forward it into MCP payloads.
|
|
69
50
|
|
|
70
51
|
### `configure-site-redirects`
|
|
71
52
|
|
|
72
|
-
Configures
|
|
73
|
-
|
|
74
|
-
Example:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
node dist/cli.js configure-site-redirects --mode test
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Production example:
|
|
53
|
+
Configures site URL and redirect allow-list for the project's auth provider.
|
|
81
54
|
|
|
82
55
|
```bash
|
|
83
|
-
|
|
56
|
+
npx @vibecodemax/cli configure-site-redirects --mode test
|
|
57
|
+
npx @vibecodemax/cli configure-site-redirects --mode production --production-domain https://yourdomain.com
|
|
84
58
|
```
|
|
85
59
|
|
|
86
60
|
### `configure-email-password`
|
|
87
61
|
|
|
88
|
-
Configures email/password signup behavior
|
|
89
|
-
|
|
90
|
-
Example:
|
|
62
|
+
Configures email/password signup behavior.
|
|
91
63
|
|
|
92
64
|
```bash
|
|
93
|
-
|
|
65
|
+
npx @vibecodemax/cli configure-email-password --email-confirmation yes
|
|
94
66
|
```
|
|
95
67
|
|
|
96
68
|
### `enable-google-provider`
|
|
97
69
|
|
|
98
|
-
Enables Google
|
|
99
|
-
|
|
100
|
-
Example:
|
|
70
|
+
Enables Google OAuth using credentials from `.env.bootstrap.local`. The Supabase personal access token must be stored as `SUPABASE_ACCESS_TOKEN`.
|
|
101
71
|
|
|
102
72
|
```bash
|
|
103
|
-
|
|
73
|
+
npx @vibecodemax/cli enable-google-provider
|
|
104
74
|
```
|
|
105
75
|
|
|
106
76
|
### `apply-auth-templates`
|
|
107
77
|
|
|
108
|
-
Applies custom auth email
|
|
109
|
-
|
|
110
|
-
Example:
|
|
78
|
+
Applies custom auth email templates from local project files. The Supabase personal access token must be stored as `SUPABASE_ACCESS_TOKEN`.
|
|
111
79
|
|
|
112
80
|
```bash
|
|
113
|
-
|
|
81
|
+
npx @vibecodemax/cli apply-auth-templates \
|
|
114
82
|
--confirm-email-enabled true \
|
|
115
83
|
--confirm-email-path src/email/confirm-email.html \
|
|
116
84
|
--reset-password-enabled true \
|
|
117
85
|
--reset-password-path src/email/reset-password.html
|
|
118
86
|
```
|
|
119
87
|
|
|
120
|
-
## Output
|
|
88
|
+
## Output
|
|
121
89
|
|
|
122
|
-
|
|
90
|
+
All commands print structured JSON to stdout and exit with code 0 on success, non-zero on failure.
|
|
123
91
|
|
|
124
92
|
```json
|
|
125
|
-
{
|
|
126
|
-
"ok": true,
|
|
127
|
-
"command": "configure-site-redirects",
|
|
128
|
-
"applied": ["site_url", "uri_allow_list", "NEXT_PUBLIC_SITE_URL"]
|
|
129
|
-
}
|
|
93
|
+
{ "ok": true, "command": "configure-site-redirects", "applied": ["site_url", "uri_allow_list"] }
|
|
130
94
|
```
|
|
131
95
|
|
|
132
|
-
Failure example:
|
|
133
|
-
|
|
134
96
|
```json
|
|
135
|
-
{
|
|
136
|
-
"ok": false,
|
|
137
|
-
"code": "MISSING_ENV",
|
|
138
|
-
"message": "SUPABASE_MANAGEMENT_TOKEN is missing. Add it to .env.bootstrap.local."
|
|
139
|
-
}
|
|
97
|
+
{ "ok": false, "code": "MISSING_ENV", "message": "SUPABASE_ACCESS_TOKEN is missing. Add it to .env.bootstrap.local." }
|
|
140
98
|
```
|
|
141
99
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
## Publishing
|
|
100
|
+
## Security
|
|
145
101
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
npm pack --dry-run
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Publish publicly:
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
npm publish --access public
|
|
156
|
-
```
|
|
102
|
+
Credentials are read from local env files and sent only to the relevant provider APIs. No secret values appear in CLI output.
|