@vibecodemax/cli 0.1.1 → 0.1.2
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 +25 -99
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,156 +1,82 @@
|
|
|
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:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npm install
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Build the CLI:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm run build
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Type-check without emitting files:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm run typecheck
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Run the built CLI help command:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
node dist/cli.js help
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Local Execution
|
|
47
|
-
|
|
48
|
-
Use an exact package version when invoking the published package.
|
|
49
|
-
|
|
50
|
-
npm:
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
npx @vibecodemax/cli@0.1.0 help
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
pnpm:
|
|
16
|
+
## Usage
|
|
57
17
|
|
|
58
18
|
```bash
|
|
59
|
-
|
|
19
|
+
npx @vibecodemax/cli <command> [options]
|
|
60
20
|
```
|
|
61
21
|
|
|
62
|
-
|
|
22
|
+
Package manager variants:
|
|
63
23
|
|
|
64
24
|
```bash
|
|
65
|
-
|
|
25
|
+
pnpm dlx @vibecodemax/cli <command> [options]
|
|
26
|
+
yarn dlx @vibecodemax/cli <command> [options]
|
|
66
27
|
```
|
|
67
28
|
|
|
68
29
|
## Commands
|
|
69
30
|
|
|
70
31
|
### `configure-site-redirects`
|
|
71
32
|
|
|
72
|
-
Configures
|
|
73
|
-
|
|
74
|
-
Example:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
node dist/cli.js configure-site-redirects --mode test
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Production example:
|
|
33
|
+
Configures site URL and redirect allow-list for the project's auth provider.
|
|
81
34
|
|
|
82
35
|
```bash
|
|
83
|
-
|
|
36
|
+
npx @vibecodemax/cli configure-site-redirects --mode test
|
|
37
|
+
npx @vibecodemax/cli configure-site-redirects --mode production --production-domain https://yourdomain.com
|
|
84
38
|
```
|
|
85
39
|
|
|
86
40
|
### `configure-email-password`
|
|
87
41
|
|
|
88
|
-
Configures email/password signup behavior
|
|
89
|
-
|
|
90
|
-
Example:
|
|
42
|
+
Configures email/password signup behavior.
|
|
91
43
|
|
|
92
44
|
```bash
|
|
93
|
-
|
|
45
|
+
npx @vibecodemax/cli configure-email-password --email-confirmation yes
|
|
94
46
|
```
|
|
95
47
|
|
|
96
48
|
### `enable-google-provider`
|
|
97
49
|
|
|
98
|
-
Enables Google
|
|
99
|
-
|
|
100
|
-
Example:
|
|
50
|
+
Enables Google OAuth using credentials from `.env.bootstrap.local`.
|
|
101
51
|
|
|
102
52
|
```bash
|
|
103
|
-
|
|
53
|
+
npx @vibecodemax/cli enable-google-provider
|
|
104
54
|
```
|
|
105
55
|
|
|
106
56
|
### `apply-auth-templates`
|
|
107
57
|
|
|
108
|
-
Applies custom auth email
|
|
109
|
-
|
|
110
|
-
Example:
|
|
58
|
+
Applies custom auth email templates from local project files.
|
|
111
59
|
|
|
112
60
|
```bash
|
|
113
|
-
|
|
61
|
+
npx @vibecodemax/cli apply-auth-templates \
|
|
114
62
|
--confirm-email-enabled true \
|
|
115
63
|
--confirm-email-path src/email/confirm-email.html \
|
|
116
64
|
--reset-password-enabled true \
|
|
117
65
|
--reset-password-path src/email/reset-password.html
|
|
118
66
|
```
|
|
119
67
|
|
|
120
|
-
## Output
|
|
68
|
+
## Output
|
|
121
69
|
|
|
122
|
-
|
|
70
|
+
All commands print structured JSON to stdout and exit with code 0 on success, non-zero on failure.
|
|
123
71
|
|
|
124
72
|
```json
|
|
125
|
-
{
|
|
126
|
-
"ok": true,
|
|
127
|
-
"command": "configure-site-redirects",
|
|
128
|
-
"applied": ["site_url", "uri_allow_list", "NEXT_PUBLIC_SITE_URL"]
|
|
129
|
-
}
|
|
73
|
+
{ "ok": true, "command": "configure-site-redirects", "applied": ["site_url", "uri_allow_list"] }
|
|
130
74
|
```
|
|
131
75
|
|
|
132
|
-
Failure example:
|
|
133
|
-
|
|
134
76
|
```json
|
|
135
|
-
{
|
|
136
|
-
"ok": false,
|
|
137
|
-
"code": "MISSING_ENV",
|
|
138
|
-
"message": "SUPABASE_MANAGEMENT_TOKEN is missing. Add it to .env.bootstrap.local."
|
|
139
|
-
}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
Error output must reference file names and environment variable names, not secret values.
|
|
143
|
-
|
|
144
|
-
## Publishing
|
|
145
|
-
|
|
146
|
-
Verify the package contents:
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
npm pack --dry-run
|
|
77
|
+
{ "ok": false, "code": "MISSING_ENV", "message": "SUPABASE_ACCESS_TOKEN is missing. Add it to .env.bootstrap.local." }
|
|
150
78
|
```
|
|
151
79
|
|
|
152
|
-
|
|
80
|
+
## Security
|
|
153
81
|
|
|
154
|
-
|
|
155
|
-
npm publish --access public
|
|
156
|
-
```
|
|
82
|
+
Credentials are read from local env files and sent only to the relevant provider APIs. No secret values appear in CLI output.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibecodemax/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "VibeCodeMax CLI — local provider setup for bootstrap and project configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"vibecodemax-cli": "dist/cli.js"
|