@vibecloudtr/cli 0.2.0 → 0.4.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 +32 -32
- package/commands.json +157 -32
- package/dist/main.js +241 -223
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Design docs and the decision log are in `../base/docs`.
|
|
|
20
20
|
|
|
21
21
|
## Releasing to npm — the checklist
|
|
22
22
|
|
|
23
|
-
🔴 **`@vibecloudtr/cli` 0.
|
|
23
|
+
🔴 **`@vibecloudtr/cli` 0.4.0 is on npm (2026-10-22)**; 0.0.1 shipped source maps and was
|
|
24
24
|
unpublished. Every page of the site, `llms.txt` and the three agent files instruct
|
|
25
25
|
`npx @vibecloudtr/cli …`, so each publish is the most-repeated promise on the site.
|
|
26
26
|
Publishing is done by hand from the owner's machine with an npm access token. There
|
|
@@ -304,14 +304,15 @@ API) is refused by name before any request is made.
|
|
|
304
304
|
cookie and `authenticate` does read it — from the Cookie header. Deliberately not
|
|
305
305
|
used: it would make the CLI collect the account password, put a long-lived
|
|
306
306
|
console credential on disk, and hand the CLI the `browser` credential kind, which
|
|
307
|
-
is
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
is what `@dangerous` accepts with a 15-minute step-up window. Borrowing a cookie
|
|
308
|
+
would **defeat** that gate rather than satisfy it; the CLI answers each dangerous
|
|
309
|
+
request with its own fresh code instead (dec. 236).
|
|
310
310
|
|
|
311
|
-
**Why a PAT is not
|
|
312
|
-
|
|
313
|
-
`~/.vibecloud/token` still works
|
|
314
|
-
deliberately
|
|
311
|
+
**Why a PAT is not the login either.** `vibe token create` mints one (it asks
|
|
312
|
+
for a two-factor code, dec. 236), and a `vibe_pat_` value pasted into
|
|
313
|
+
`~/.vibecloud/token` still works — the loader accepts that bare form
|
|
314
|
+
deliberately — but a PAT can never run a `@dangerous` command: only the OAuth
|
|
315
|
+
login can answer the per-request code.
|
|
315
316
|
|
|
316
317
|
### 🔴 One value the server publishes nowhere, so it is still required
|
|
317
318
|
|
|
@@ -326,10 +327,9 @@ deliberately.
|
|
|
326
327
|
without it answers `invalid_client`, which the preflight below catches before a
|
|
327
328
|
browser opens and reports by name; that is a louder failure than "client_id not
|
|
328
329
|
set", and it names the fix instead of sending someone to look up a value only
|
|
329
|
-
the deployment's operator knows.
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
out of band.
|
|
330
|
+
the deployment's operator knows. The API can offer RFC 7591 dynamic client registration
|
|
331
|
+
(`OAUTH_DYNAMIC_REGISTRATION`, off by default) for third-party MCP clients, but the
|
|
332
|
+
CLI never uses it: a compiled-in `vibe-cli` entry in `OAUTH_CLIENTS` is the point.
|
|
333
333
|
- **resource — defaulted to `https://api.vibecloud.tr` when `VIBECLOUD_API` is
|
|
334
334
|
unset (VIBEC-322), and NOT defaulted for any other deployment.** The public
|
|
335
335
|
API's audience is its own origin and is the one value this binary can know;
|
|
@@ -513,13 +513,19 @@ keeps the CLI out of it meanwhile.
|
|
|
513
513
|
behaves as it always did: it selects, and the server still refuses a mismatch —
|
|
514
514
|
the CLI just cannot name which org it should have been.
|
|
515
515
|
|
|
516
|
-
###
|
|
516
|
+
### Dangerous commands ask for a two-factor code (dec. 236)
|
|
517
517
|
|
|
518
|
-
The credential is an OAuth access token
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
the
|
|
518
|
+
The credential is an OAuth access token (`CredentialKind: "oauth"`). Since dec. 236
|
|
519
|
+
the API admits it to a `@dangerous` mutation when the token carries `mcp:dangerous`
|
|
520
|
+
**and** the request carries a fresh TOTP code in the `Vibecloud-Otp` header — one
|
|
521
|
+
code per request, no window, TOTP only. `stepup.ts` asks for the code, hidden, when
|
|
522
|
+
the API answers `MFA_REQUIRED`; opens the console's enrolment page
|
|
523
|
+
(`details.enrolUrl`) when the account has no second factor; asks again after a
|
|
524
|
+
refused code (a code works once); and takes `--otp <code>` when nobody can be asked
|
|
525
|
+
(`--json`, `--no-input`, no terminal), refusing at once without it. A login from
|
|
526
|
+
before the scope existed gets `FORBIDDEN_SCOPE` and is told to `vibe login` again.
|
|
527
|
+
A PAT is refused before the code (`CREDENTIAL_KIND_FORBIDDEN`). The dangerous
|
|
528
|
+
request is sent once, never retried: a spent code would read as a wrong one.
|
|
523
529
|
|
|
524
530
|
### Output, flags and language
|
|
525
531
|
|
|
@@ -545,28 +551,22 @@ ISO times. Spec: `base/docs/cli-output-guidelines.md`.
|
|
|
545
551
|
| `vibe app list\|create\|config` | `Project.apps`, `createApp`, `setAppOutputMode` — every nullable field printed as its own "not yet" sentence; `firstLiveAt` is read, never derived from `phase`. `--output-mode static\|standalone` and `--output-dir <dir>` (static only) on `create` and `config` (VIBEC-478); omitted flags are not sent, so the server defaults apply (new app `STANDALONE`, directory `dist`). `config` reports acceptance only: if the app has been built before, the cell rebuilds the current commit with the new mode and the running version serves until that build is live; if it has never been built, nothing is rebuilt and the next `vibe deploy start` uses the new mode. Both cases are printed, since the API cannot tell which applies. An unreported mode prints as `bildirilmedi`, never as standalone |
|
|
546
552
|
| `vibe db connect\|introspect\|security\|migrate` | `Project.endpoints.db`, `Project.schema`, `Project.rlsAdvisor`, `applyMigration` |
|
|
547
553
|
| `vibe deploy start\|upload\|cancel\|rollback` | `deployApp`, `createSourceUpload` + `deployUpload` (`upload`: packs `--dir`, default `.`, and deploys an UPLOAD app, one with no git remote), `cancelBuild`, `rollbackApp`, `App.rollbackTargets` |
|
|
548
|
-
| `vibe domain add\|verify\|list\|release` | `addDomain` (with `--app`, or the project's only app; prints the DCV CNAME **and** the routing record — CNAME to `<app>.vibeapp.tr` for a subdomain, A to the cell's apps address for an apex, VIBEC-373), `verifyDomain`, `Project.domains` (`routingRecord` per row), `removeDomain` |
|
|
554
|
+
| `vibe domain add\|verify\|list\|release` | `addDomain` (with `--app`, or the project's only app; prints the DCV CNAME (none for a `HOSTED` domain inside an active zone) **and** the routing record — CNAME to `<app>.vibeapp.tr` for a subdomain, A to the cell's apps address for an apex, VIBEC-373), `verifyDomain`, `Project.domains` (`routingRecord` per row), `removeDomain` |
|
|
555
|
+
| `vibe zone add\|prove\|list\|verify\|remove`| `addDnsZone` (seeds records from `dnsZoneImport` unless `--no-import`; prints the claim's nameservers, dec. 235), `proveDnsZoneControl` (TXT proof that evicts another org's pending claim), `Project.dnsZones`, `verifyDnsZone`, `removeDnsZone`|
|
|
556
|
+
| `vibe record list\|set\|add\|rm`| `Project.dnsZones` (records), `setDnsRecords` (one zone's record set, upsert and remove; platform-managed rows are refused with `DNS_RECORD_RESERVED`)|
|
|
549
557
|
| `vibe branch create\|list\|extend\|delete` | `createBranch`, `Project.branches`, `extendBranch`, `deleteBranch` — a preview branch (VIBEC-72): its own database (shared pair on Luna/Terra/Sol, isolated instance on Pro), keys and `<slug>--<name>.api` hostname, TTL 3 d default / 5 d max from creation; `--mode clone` copies production rows and needs the org owner's toggle. `--branch <name>` on `deploy start`, `db migrate` and `db connect` targets it |
|
|
550
558
|
| `vibe config set\|secret\|list\|unset` | `setAppConfig`, `App.config` — `config secret --scope BUILD\|RUNTIME` says where the secret is read: `BUILD` mounts it for `next build` only (a `DATABASE_URL` a prerendered page queries at build time, a Sentry token for sourcemap upload) and turns off cache mounts for that build; `RUNTIME` gives it to the running app only. Without `--scope` nothing is sent and the API's documented default applies: `RUNTIME`. Any other value is refused before the secret is read. `config set --value-from projectEndpoint:api\|projectSecret:anonKey` writes a platform-derived source instead of a literal (VIBEC-469); exactly one of `--value`, `--file`, `--value-from` |
|
|
551
559
|
| `vibe backups` | `Project.backups`, `Project.caps` |
|
|
552
560
|
| `vibe token list\|revoke` | `Query.tokens`, `revokeToken` |
|
|
561
|
+
| Two-factor code per request (dec. 236)| `vibe project delete` `deleteProject` · `vibe key reveal\|rotate` `revealServiceRoleKey` + `revealedServiceRoleKey`, `rotateProjectKey` · `vibe db owner-credential` `revealDatabaseOwnerCredential` + `revealedDatabaseOwnerCredential` · `vibe token create` `createToken` · `vibe restore` `createRestore` · `vibe team invite\|remove\|role\|transfer-owner` `inviteMember`, `removeMember`, `changeMemberRole`, `transferOwnership` · `vibe access grant\|revoke` `grantProjectAccess`, `revokeProjectAccess` · `vibe smtp set\|clear` `setProjectSmtp` (password hidden prompt or `--password-stdin`, never a flag value), `clearProjectSmtp` · `vibe project auth-config` `setProjectAuthConfig` · `vibe project egress` `setEgressAllowlist` · `vibe rls guardrail\|exception` `setRowLevelSecurityGuardrail`, `setTableRowLevelSecurityException` · `vibe billing cancel\|payment-method` `cancelSubscription`, `updatePaymentMethod` · `vibe mfa disable` `disableMfa` · `vibe export download` `downloadDataExport`. Destructive ones (`project delete`, `key rotate`, `restore`, `billing cancel`) also take a typed `--confirm <project>`|
|
|
553
562
|
|
|
554
563
|
**Two classes of refusal, both exiting non-zero with the reason named.** Neither
|
|
555
564
|
is an unknown-flag error: someone who types the command deserves to learn why.
|
|
556
565
|
|
|
557
|
-
- **The
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
satisfied step-up. `authenticate` accepts three credentials — the
|
|
562
|
-
`__Host-vc_session` **cookie**, an OAuth access token, and a `vibe_pat_` PAT —
|
|
563
|
-
and only the cookie is a session, never read from an `Authorization` header. So
|
|
564
|
-
no token this CLI can hold clears it, structurally (dec. 81). **Still true now
|
|
565
|
-
that `vibe login` is real**: measured against the running API on 2026-08-14
|
|
566
|
-
with a genuine access token from the flow, every one of these answered
|
|
567
|
-
`CREDENTIAL_KIND_FORBIDDEN`. Closing the gap would mean the CLI holding a real
|
|
568
|
-
session _and_ being able to answer a step-up challenge — and holding a session
|
|
569
|
-
cookie is deliberately not what login does, because that would defeat the gate.
|
|
566
|
+
- **The terminal cannot do it.** `vibe billing card`: `updateSubscriptionCard`
|
|
567
|
+
answers iyzico's hosted form, an HTML fragment that only runs in a browser, so
|
|
568
|
+
the command names the console page instead of calling the API. (Until dec. 236
|
|
569
|
+
the `@dangerous` commands were refusals too; they now ask for a code.)
|
|
570
570
|
- **The API has no field for it.** `vibe deploy force`: there is no cache-invalidating
|
|
571
571
|
field in `DeployAppInput`.
|
|
572
572
|
- **Logs are read, not refused.** `vibe logs` reads an app's runtime logs through
|
package/commands.json
CHANGED
|
@@ -153,6 +153,51 @@
|
|
|
153
153
|
"summary": "Alan adını bırakır ve yönlendirmeyi durdurur",
|
|
154
154
|
"kind": "runs"
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
"name": "zone add",
|
|
158
|
+
"summary": "Alan adını ad sunucularımıza alır",
|
|
159
|
+
"kind": "runs"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "zone prove",
|
|
163
|
+
"summary": "Başka hesapta bekleyen taşımayı TXT kaydıyla devralır",
|
|
164
|
+
"kind": "runs"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "zone list",
|
|
168
|
+
"summary": "Projenin ad sunucularımızdaki alanlarını listeler",
|
|
169
|
+
"kind": "runs"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "zone verify",
|
|
173
|
+
"summary": "Ad sunucusu değişikliğini şimdi kontrol eder",
|
|
174
|
+
"kind": "runs"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "zone remove",
|
|
178
|
+
"summary": "Alanı ad sunucularımızdan kaldırır",
|
|
179
|
+
"kind": "runs"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "record list",
|
|
183
|
+
"summary": "Alanın kayıtlarını listeler",
|
|
184
|
+
"kind": "runs"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "record set",
|
|
188
|
+
"summary": "Bir kaydı tek değerle ayarlar (aynı ad ve türdeki eski değerlerin yerine)",
|
|
189
|
+
"kind": "runs"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "record add",
|
|
193
|
+
"summary": "Aynı ad ve türdeki kayda bir değer daha ekler",
|
|
194
|
+
"kind": "runs"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "record rm",
|
|
198
|
+
"summary": "Bir kaydı siler (--value ile yalnızca o değeri)",
|
|
199
|
+
"kind": "runs"
|
|
200
|
+
},
|
|
156
201
|
{
|
|
157
202
|
"name": "branch create",
|
|
158
203
|
"summary": "Bir önizleme dalı açar",
|
|
@@ -203,6 +248,116 @@
|
|
|
203
248
|
"summary": "Yedekleri listeler",
|
|
204
249
|
"kind": "runs"
|
|
205
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"name": "project delete",
|
|
253
|
+
"summary": "Projeyi siler; iki adımlı doğrulama kodu ister",
|
|
254
|
+
"kind": "runs"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "key reveal",
|
|
258
|
+
"summary": "Projenin service_role anahtarını gösterir; iki adımlı doğrulama kodu ister",
|
|
259
|
+
"kind": "runs"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "token create",
|
|
263
|
+
"summary": "Erişim anahtarı oluşturur; iki adımlı doğrulama kodu ister",
|
|
264
|
+
"kind": "runs"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "key rotate",
|
|
268
|
+
"summary": "Projenin anahtarlarını yeniler; eski anahtarlar hemen geçersiz olur",
|
|
269
|
+
"kind": "runs"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "db owner-credential",
|
|
273
|
+
"summary": "Veritabanı sahibinin (tenant_owner) parolasını gösterir; bir kez okunur",
|
|
274
|
+
"kind": "runs"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "restore",
|
|
278
|
+
"summary": "Bir yedekten geri yükler; HEDEF veritabanının üzerine yazar",
|
|
279
|
+
"kind": "runs"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "access grant",
|
|
283
|
+
"summary": "Bir üyeye projeye yazma izni verir (Kurumsal paket)",
|
|
284
|
+
"kind": "runs"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "access revoke",
|
|
288
|
+
"summary": "Bir üyenin projeye yazma iznini kaldırır",
|
|
289
|
+
"kind": "runs"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "smtp set",
|
|
293
|
+
"summary": "Projenin e-postalarını kendi SMTP sunucunuzdan gönderir",
|
|
294
|
+
"kind": "runs"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "smtp clear",
|
|
298
|
+
"summary": "Projenin e-postalarını yeniden platformun sunucusundan gönderir",
|
|
299
|
+
"kind": "runs"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "project auth-config",
|
|
303
|
+
"summary": "Projenin kimlik doğrulama ayarlarını yazar",
|
|
304
|
+
"kind": "runs"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "project egress",
|
|
308
|
+
"summary": "Uygulamanın dışarıya çıkabileceği alan adlarını yazar",
|
|
309
|
+
"kind": "runs"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "rls guardrail",
|
|
313
|
+
"summary": "Satır düzeyi güvenliğin zorlanmasını açar ya da kapatır",
|
|
314
|
+
"kind": "runs"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "rls exception",
|
|
318
|
+
"summary": "Bir tablo için satır düzeyi güvenlik istisnası yazar",
|
|
319
|
+
"kind": "runs"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "billing cancel",
|
|
323
|
+
"summary": "Projenin aboneliğini iptal eder",
|
|
324
|
+
"kind": "runs"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "team invite",
|
|
328
|
+
"summary": "Takıma üye davet eder",
|
|
329
|
+
"kind": "runs"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "team remove",
|
|
333
|
+
"summary": "Takımdan üye çıkarır; üyenin erişim anahtarları da iptal edilir",
|
|
334
|
+
"kind": "runs"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "team role",
|
|
338
|
+
"summary": "Bir üyenin rolünü değiştirir",
|
|
339
|
+
"kind": "runs"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "team transfer-owner",
|
|
343
|
+
"summary": "Organizasyonun sahipliğini bir üyeye devreder",
|
|
344
|
+
"kind": "runs"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "billing payment-method",
|
|
348
|
+
"summary": "Ödeme yöntemini değiştirmek için iyzico’nun sayfasını açar",
|
|
349
|
+
"kind": "runs"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "mfa disable",
|
|
353
|
+
"summary": "İki adımlı doğrulamayı kapatır; şu anki kodu ister",
|
|
354
|
+
"kind": "runs"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "export download",
|
|
358
|
+
"summary": "Hazır bir veri dışa aktarımının indirme bağlantısını verir",
|
|
359
|
+
"kind": "runs"
|
|
360
|
+
},
|
|
206
361
|
{
|
|
207
362
|
"name": "token list",
|
|
208
363
|
"summary": "Erişim anahtarlarınızı listeler",
|
|
@@ -291,38 +446,8 @@
|
|
|
291
446
|
"kind": "refuses"
|
|
292
447
|
},
|
|
293
448
|
{
|
|
294
|
-
"name": "
|
|
295
|
-
"summary": "
|
|
296
|
-
"kind": "refuses"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "key reveal",
|
|
300
|
-
"summary": "Projenin service_role anahtarını gösterir",
|
|
301
|
-
"kind": "refuses"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "key rotate",
|
|
305
|
-
"summary": "Projenin anahtarını yeniler; eski anahtar hemen geçersiz olur",
|
|
306
|
-
"kind": "refuses"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"name": "token create",
|
|
310
|
-
"summary": "Erişim anahtarı oluşturur",
|
|
311
|
-
"kind": "refuses"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "team invite",
|
|
315
|
-
"summary": "Takıma üye davet eder",
|
|
316
|
-
"kind": "refuses"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"name": "team remove",
|
|
320
|
-
"summary": "Takımdan üye çıkarır; üyenin erişim anahtarları da iptal edilir",
|
|
321
|
-
"kind": "refuses"
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"name": "project delete",
|
|
325
|
-
"summary": "Projeyi siler",
|
|
449
|
+
"name": "billing card",
|
|
450
|
+
"summary": "Abonelik kartını değiştirir (konsolda)",
|
|
326
451
|
"kind": "refuses"
|
|
327
452
|
}
|
|
328
453
|
]
|