@scalar/cli 2.7.1 → 2.8.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 (47) hide show
  1. package/README.md +209 -30
  2. package/chunks/{action-T5XMJXPO.js → action-354TUG4H.js} +3 -3
  3. package/chunks/{action-OX2566BE.js → action-43YBNBDR.js} +7 -7
  4. package/chunks/{action-4NGK5XMD.js → action-6BYGBXRC.js} +9 -9
  5. package/chunks/{action-HJYZCPUN.js → action-FCAYFPVR.js} +1 -1
  6. package/chunks/{action-LPVITMWA.js → action-GWXLHL2Z.js} +3 -3
  7. package/chunks/{action-ATGZOWSH.js → action-HT2DJ34Z.js} +3 -3
  8. package/chunks/{action-N7BA5I3E.js → action-KTYOCA2V.js} +2 -2
  9. package/chunks/{action-SCOXTCPR.js → action-LEUD5P2U.js} +8 -8
  10. package/chunks/{action-E4YSRFGT.js → action-LLH4QPXM.js} +4 -4
  11. package/chunks/{action-SNPOOW6S.js → action-LXGXKXZZ.js} +4 -4
  12. package/chunks/{action-CPLH2CQ5.js → action-QQZLPI42.js} +7 -7
  13. package/chunks/{action-BAQYJ6UE.js → action-UIKH4SZX.js} +7 -7
  14. package/chunks/{action-BRSSC2SR.js → action-W3C53GPH.js} +3 -3
  15. package/chunks/{action-LVDU6YOI.js → action-WFDNRA7D.js} +4 -4
  16. package/chunks/{action-SRBN7N3R.js → action-XIUO64C7.js} +4 -4
  17. package/chunks/{action-BOZNBCNZ.js → action-Y6NXJQ4H.js} +2 -2
  18. package/chunks/{action-RBOLLIGX.js → action-Y7OUGD56.js} +4 -4
  19. package/chunks/{action-QYGOPSTY.js → action-YLF2G4G5.js} +4 -4
  20. package/chunks/actions-OGIVBQC7.js +158 -0
  21. package/chunks/{asyncapi-H4FU6GPC.js → asyncapi-QNFKXHEI.js} +2 -2
  22. package/chunks/{build.action-6V6GXI3X.js → build.action-NM6CAE5F.js} +8 -8
  23. package/chunks/{chunk-2DSVF5AD.js → chunk-22HYZ7LE.js} +2 -2
  24. package/chunks/{chunk-LG7IFACX.js → chunk-2OCWX42S.js} +1 -1
  25. package/chunks/{chunk-4X47MN6Q.js → chunk-5DEU2DVL.js} +2 -2
  26. package/chunks/{chunk-2PPRO2QB.js → chunk-BPGFSSUH.js} +1 -1
  27. package/chunks/{chunk-ISXH6Q7I.js → chunk-EXY3ZTV4.js} +12 -3
  28. package/chunks/{chunk-ZJVYOZFB.js → chunk-GTV2BVXV.js} +1 -1
  29. package/chunks/{chunk-BIKOD3SG.js → chunk-KKRGBXCE.js} +3 -0
  30. package/chunks/{chunk-QXQZVEDC.js → chunk-L3UXDCBI.js} +2 -2
  31. package/chunks/{chunk-BDEPNGTO.js → chunk-PH3WFNXJ.js} +1 -1
  32. package/chunks/{chunk-CWCETP6H.js → chunk-QVQ4PNVL.js} +1 -1
  33. package/chunks/{chunk-GPNB7ISG.js → chunk-UXJ753NV.js} +1 -1
  34. package/chunks/{create.action-P6DLCK4W.js → create.action-FUQ2BVJA.js} +8 -8
  35. package/chunks/{delete.action-Z3GAA4ZN.js → delete.action-47E66R3I.js} +8 -8
  36. package/chunks/{delete.action-HJKRRHE2.js → delete.action-BTDFH7WY.js} +8 -8
  37. package/chunks/{get.action-IT4EHAV4.js → get.action-XC7KC2JO.js} +4 -4
  38. package/chunks/{list.action-WLIAO5UW.js → list.action-LXKEUYKO.js} +5 -5
  39. package/chunks/{list.action-2FU5UZNH.js → list.action-OFGLMRE7.js} +8 -8
  40. package/chunks/{publish.action-T4J4DRXR.js → publish.action-OS27XOX4.js} +9 -9
  41. package/chunks/{update.action-MY7QPSSU.js → update.action-AEIBLCWD.js} +8 -8
  42. package/chunks/{update.action-3OVS3HWC.js → update.action-ZMS4CQ3T.js} +8 -8
  43. package/docs.html +470 -159
  44. package/index.js +164 -113
  45. package/package.json +1 -1
  46. package/skills/scalar-cli/SKILL.md +7 -1
  47. package/template.md +20 -0
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
3
3
  import {
4
4
  DownloadIsolateCommand
5
- } from "./chunks/chunk-2PPRO2QB.js";
5
+ } from "./chunks/chunk-BPGFSSUH.js";
6
6
  import {
7
7
  openBrowser
8
8
  } from "./chunks/chunk-JFIXNSPP.js";
@@ -24,12 +24,12 @@ import {
24
24
  getAuthData,
25
25
  getMetadata,
26
26
  setMetadata
27
- } from "./chunks/chunk-CWCETP6H.js";
27
+ } from "./chunks/chunk-QVQ4PNVL.js";
28
28
  import {
29
29
  bin,
30
30
  name,
31
31
  version
32
- } from "./chunks/chunk-GPNB7ISG.js";
32
+ } from "./chunks/chunk-UXJ753NV.js";
33
33
  import "./chunks/chunk-5UHLAJQD.js";
34
34
  import "./chunks/chunk-5JLVQVKO.js";
35
35
  import {
@@ -51,7 +51,7 @@ import "./chunks/chunk-3MZYUBJ6.js";
51
51
  import { Agent, setGlobalDispatcher } from "undici";
52
52
 
53
53
  // src/program.ts
54
- import { Command as Command53 } from "commander";
54
+ import { Command as Command54 } from "commander";
55
55
 
56
56
  // src/domains/schema/index.ts
57
57
  import { Command as Command6 } from "commander";
@@ -64,7 +64,7 @@ var DeleteSchemaCommand = () => {
64
64
  cmd3.option("-s, --slug <slug>", "Schema slug");
65
65
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
66
66
  cmd3.action(async (...args) => {
67
- const { deleteAction } = await import("./chunks/delete.action-Z3GAA4ZN.js");
67
+ const { deleteAction } = await import("./chunks/delete.action-47E66R3I.js");
68
68
  return deleteAction(...args);
69
69
  });
70
70
  return cmd3;
@@ -81,7 +81,7 @@ var GetSchemaCommand = () => {
81
81
  cmd3.option("--format <format>", "Output format (json or yaml)", "json");
82
82
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
83
83
  cmd3.action(async (...args) => {
84
- const { getAction } = await import("./chunks/get.action-IT4EHAV4.js");
84
+ const { getAction } = await import("./chunks/get.action-XC7KC2JO.js");
85
85
  return getAction(...args);
86
86
  });
87
87
  return cmd3;
@@ -94,7 +94,7 @@ var ListSchemaCommand = () => {
94
94
  cmd3.description("List all schemas for a team namespace");
95
95
  cmd3.option("--namespace <namespace>", "Team namespace");
96
96
  cmd3.action(async (...args) => {
97
- const { listAction } = await import("./chunks/list.action-2FU5UZNH.js");
97
+ const { listAction } = await import("./chunks/list.action-OFGLMRE7.js");
98
98
  return listAction(...args);
99
99
  });
100
100
  return cmd3;
@@ -130,7 +130,7 @@ var PublishSchemaCommand = () => {
130
130
  parseFetchLimit
131
131
  );
132
132
  cmd3.action(async (...args) => {
133
- const { publishAction } = await import("./chunks/publish.action-T4J4DRXR.js");
133
+ const { publishAction } = await import("./chunks/publish.action-OS27XOX4.js");
134
134
  return publishAction(...args);
135
135
  });
136
136
  return cmd3;
@@ -150,7 +150,7 @@ var UpdateSchemaCommand = () => {
150
150
  "Privacy (true/false or public/private)"
151
151
  );
152
152
  cmd3.action(async (...args) => {
153
- const { updateAction } = await import("./chunks/update.action-MY7QPSSU.js");
153
+ const { updateAction } = await import("./chunks/update.action-AEIBLCWD.js");
154
154
  return updateAction(...args);
155
155
  });
156
156
  return cmd3;
@@ -180,7 +180,7 @@ var BuildSdkCommand = () => {
180
180
  cmd3.option("-s, --slug <slug>", "SDK slug");
181
181
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
182
182
  cmd3.action(async (...args) => {
183
- const { buildAction } = await import("./chunks/build.action-6V6GXI3X.js");
183
+ const { buildAction } = await import("./chunks/build.action-NM6CAE5F.js");
184
184
  return buildAction(...args);
185
185
  });
186
186
  return cmd3;
@@ -204,7 +204,7 @@ var CreateSdkCommand = () => {
204
204
  )
205
205
  );
206
206
  cmd3.action(async (...args) => {
207
- const { createAction } = await import("./chunks/create.action-P6DLCK4W.js");
207
+ const { createAction } = await import("./chunks/create.action-FUQ2BVJA.js");
208
208
  return createAction(...args);
209
209
  });
210
210
  return cmd3;
@@ -218,7 +218,7 @@ var DeleteSdkCommand = () => {
218
218
  cmd3.option("-s, --slug <slug>", "SDK slug");
219
219
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
220
220
  cmd3.action(async (...args) => {
221
- const { deleteAction } = await import("./chunks/delete.action-HJKRRHE2.js");
221
+ const { deleteAction } = await import("./chunks/delete.action-BTDFH7WY.js");
222
222
  return deleteAction(...args);
223
223
  });
224
224
  return cmd3;
@@ -237,7 +237,7 @@ var UpdateSdkCommand = () => {
237
237
  "Privacy (true/false or public/private)"
238
238
  );
239
239
  cmd3.action(async (...args) => {
240
- const { updateAction } = await import("./chunks/update.action-3OVS3HWC.js");
240
+ const { updateAction } = await import("./chunks/update.action-ZMS4CQ3T.js");
241
241
  return updateAction(...args);
242
242
  });
243
243
  return cmd3;
@@ -250,7 +250,7 @@ var ListSdkCommand = () => {
250
250
  cmd3.description("List all SDKs for a team namespace");
251
251
  cmd3.option("--namespace <namespace>", "Team namespace");
252
252
  cmd3.action(async (...args) => {
253
- const { listAction } = await import("./chunks/list.action-WLIAO5UW.js");
253
+ const { listAction } = await import("./chunks/list.action-LXKEUYKO.js");
254
254
  return listAction(...args);
255
255
  });
256
256
  return cmd3;
@@ -269,28 +269,78 @@ sdkDomain.description("Manage your Scalar SDKs (Enterprise Only)");
269
269
  sdkCommands.forEach((command) => sdkDomain.addCommand(command()));
270
270
  var sdk_default = sdkDomain;
271
271
 
272
+ // src/domains/access-group/index.ts
273
+ import { Command as Command13 } from "commander";
274
+ function createAccessGroupCommand() {
275
+ const command = new Command13("access-group").description(
276
+ "Manage access groups and allowed email domains for the current team"
277
+ );
278
+ command.command("create").description("Create an access group (Pro or above)").argument("<slug>", "New access group slug").option("--name <name>", "Display name").option("--domain <domains...>", "Allowed email domains").option("--json", "Print the result as JSON").action(
279
+ async (slug, options) => {
280
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
281
+ await runAction({ operation: "create", slug, ...options });
282
+ }
283
+ );
284
+ command.command("get").description("Get an access group and its allowlists").argument("<slug>", "Access group slug").option("--json", "Print the result as JSON").action(async (slug, options) => {
285
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
286
+ await runAction({ operation: "get", slug, ...options });
287
+ });
288
+ command.command("update").description("Update access group metadata").argument("<slug>", "Current access group slug").option("--name <name>", "New display name").option("--new-slug <slug>", "New access group slug").option("--json", "Print the result as JSON").action(
289
+ async (slug, options) => {
290
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
291
+ await runAction({ operation: "update", slug, ...options });
292
+ }
293
+ );
294
+ command.command("delete").description("Delete an access group and remove its project assignments").argument("<slug>", "Access group slug").option("-y, --yes", "Confirm deletion without prompting").option("--json", "Print the result as JSON (requires --yes)").action(
295
+ async (slug, options) => {
296
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
297
+ await runAction({ operation: "delete", slug, ...options });
298
+ }
299
+ );
300
+ const domain = command.command("domain").description("Manage allowed email domains");
301
+ domain.command("add").description("Add an exact email domain to an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
302
+ async (slug, domain2, options) => {
303
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
304
+ await runAction({ operation: "add-domain", slug, domain: domain2, ...options });
305
+ }
306
+ );
307
+ domain.command("remove").description("Remove an exact email domain from an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
308
+ async (slug, domain2, options) => {
309
+ const { runAction } = await import("./chunks/actions-OGIVBQC7.js");
310
+ await runAction({
311
+ operation: "remove-domain",
312
+ slug,
313
+ domain: domain2,
314
+ ...options
315
+ });
316
+ }
317
+ );
318
+ return command;
319
+ }
320
+ var access_group_default = createAccessGroupCommand();
321
+
272
322
  // src/domains/auth/index.ts
273
- import { Command as Command16 } from "commander";
323
+ import { Command as Command17 } from "commander";
274
324
 
275
325
  // src/domains/auth/login/index.ts
276
- import { Command as Command13 } from "commander";
326
+ import { Command as Command14 } from "commander";
277
327
  var LoginCommand = () => {
278
- const cmd3 = new Command13("login");
328
+ const cmd3 = new Command14("login");
279
329
  cmd3.description("Login to scalar");
280
330
  cmd3.option("--email <email>", "Email");
281
331
  cmd3.option("--password <password>", "Password");
282
332
  cmd3.option("--token <token>", "Personal token");
283
333
  cmd3.action(async (...args) => {
284
- const { loginAction } = await import("./chunks/action-N7BA5I3E.js");
334
+ const { loginAction } = await import("./chunks/action-KTYOCA2V.js");
285
335
  return loginAction(...args);
286
336
  });
287
337
  return cmd3;
288
338
  };
289
339
 
290
340
  // src/domains/auth/logout/index.ts
291
- import { Command as Command14 } from "commander";
341
+ import { Command as Command15 } from "commander";
292
342
  var LogoutCommand = () => {
293
- const cmd3 = new Command14("logout");
343
+ const cmd3 = new Command15("logout");
294
344
  cmd3.description("Logout from scalar");
295
345
  cmd3.action(async () => {
296
346
  await clearAuthData();
@@ -301,9 +351,9 @@ var LogoutCommand = () => {
301
351
 
302
352
  // src/domains/auth/whoami/index.ts
303
353
  import as from "ansis";
304
- import { Command as Command15 } from "commander";
354
+ import { Command as Command16 } from "commander";
305
355
  var WhoAmICommand = () => {
306
- const cmd3 = new Command15("whoami");
356
+ const cmd3 = new Command16("whoami");
307
357
  cmd3.description("Display the current user");
308
358
  cmd3.action(async () => {
309
359
  const auth = await getAuthData();
@@ -316,14 +366,14 @@ var WhoAmICommand = () => {
316
366
 
317
367
  // src/domains/auth/index.ts
318
368
  var authCommands = [LoginCommand, WhoAmICommand, LogoutCommand];
319
- var authDomain = new Command16("auth");
369
+ var authDomain = new Command17("auth");
320
370
  authDomain.description("Manage authorization on scalar platform");
321
371
  authCommands.forEach((command) => authDomain.addCommand(command()));
322
372
  var auth_default = authDomain;
323
373
 
324
374
  // src/domains/context/index.ts
325
- import { Command as Command17 } from "commander";
326
- var cmd = new Command17("context");
375
+ import { Command as Command18 } from "commander";
376
+ var cmd = new Command18("context");
327
377
  cmd.description(
328
378
  "Print every command, argument, and option as JSON for AI agents"
329
379
  );
@@ -334,12 +384,12 @@ cmd.action(async () => {
334
384
  var context_default = cmd;
335
385
 
336
386
  // src/domains/document/index.ts
337
- import { Command as Command30 } from "commander";
387
+ import { Command as Command31 } from "commander";
338
388
 
339
389
  // src/domains/document/join/index.ts
340
- import { Command as Command18 } from "commander";
390
+ import { Command as Command19 } from "commander";
341
391
  function JoinCommand() {
342
- const cmd3 = new Command18("join");
392
+ const cmd3 = new Command19("join");
343
393
  cmd3.description(
344
394
  "Merge multiple OpenAPI or AsyncAPI documents into a single unified document"
345
395
  );
@@ -357,9 +407,9 @@ function JoinCommand() {
357
407
  }
358
408
 
359
409
  // src/domains/document/split/index.ts
360
- import { Command as Command19 } from "commander";
410
+ import { Command as Command20 } from "commander";
361
411
  function SplitCommand() {
362
- const cmd3 = new Command19("split");
412
+ const cmd3 = new Command20("split");
363
413
  cmd3.description("Split OpenAPI or AsyncAPI documents into small chunks");
364
414
  cmd3.argument("[file|url]", "Path to OpenAPI or AsyncAPI file or URL to split");
365
415
  cmd3.option("-o, --output <path>", "Path to save the chunks");
@@ -375,9 +425,9 @@ function SplitCommand() {
375
425
  }
376
426
 
377
427
  // src/domains/document/format/index.ts
378
- import { Command as Command20 } from "commander";
428
+ import { Command as Command21 } from "commander";
379
429
  function FormatCommand() {
380
- const cmd3 = new Command20("format");
430
+ const cmd3 = new Command21("format");
381
431
  cmd3.description("Format an OpenAPI or AsyncAPI file");
382
432
  cmd3.argument("[file|url]", "File or URL to format");
383
433
  cmd3.option("-o, --output <file>", "Output file");
@@ -389,9 +439,9 @@ function FormatCommand() {
389
439
  }
390
440
 
391
441
  // src/domains/document/lint/index.ts
392
- import { Command as Command21 } from "commander";
442
+ import { Command as Command22 } from "commander";
393
443
  function LintCommand() {
394
- const cmd3 = new Command21("lint");
444
+ const cmd3 = new Command22("lint");
395
445
  cmd3.description("Lint your OpenAPI or AsyncAPI file using spectral rules");
396
446
  cmd3.argument("[file|url]", "OpenAPI or AsyncAPI file path or url");
397
447
  cmd3.option("-r, --rule <file|url>", "Rule path or url");
@@ -403,9 +453,9 @@ function LintCommand() {
403
453
  }
404
454
 
405
455
  // src/domains/document/markdown/index.ts
406
- import { Command as Command22 } from "commander";
456
+ import { Command as Command23 } from "commander";
407
457
  function MarkdownCommand() {
408
- const cmd3 = new Command22("markdown");
458
+ const cmd3 = new Command23("markdown");
409
459
  cmd3.description("Generate Markdown from an OpenAPI file");
410
460
  cmd3.argument("[file|url]", "OpenAPI file path or URL to convert");
411
461
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
@@ -417,9 +467,9 @@ function MarkdownCommand() {
417
467
  }
418
468
 
419
469
  // src/domains/document/mock/index.ts
420
- import { Command as Command23 } from "commander";
470
+ import { Command as Command24 } from "commander";
421
471
  function MockCommand() {
422
- const cmd3 = new Command23("mock");
472
+ const cmd3 = new Command24("mock");
423
473
  cmd3.description("Mock an OpenAPI API or AsyncAPI WebSocket and SSE channels");
424
474
  cmd3.argument("[file|url]", "OpenAPI or AsyncAPI file or URL to mock");
425
475
  cmd3.option("-w, --watch", "watch the file for changes");
@@ -430,16 +480,16 @@ function MockCommand() {
430
480
  parsePort
431
481
  );
432
482
  cmd3.action(async (...args) => {
433
- const { mockAction } = await import("./chunks/action-ATGZOWSH.js");
483
+ const { mockAction } = await import("./chunks/action-HT2DJ34Z.js");
434
484
  return mockAction(...args);
435
485
  });
436
486
  return cmd3;
437
487
  }
438
488
 
439
489
  // src/domains/document/postman/index.ts
440
- import { Command as Command24 } from "commander";
490
+ import { Command as Command25 } from "commander";
441
491
  function ConvertCommand() {
442
- const cmd3 = new Command24("convert");
492
+ const cmd3 = new Command25("convert");
443
493
  cmd3.description("Convert a Postman collection to an OpenAPI document");
444
494
  cmd3.argument("[file|url]", "Postman collection file path or URL to convert");
445
495
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
@@ -455,9 +505,9 @@ function ConvertCommand() {
455
505
  }
456
506
 
457
507
  // src/domains/document/serve/index.ts
458
- import { Command as Command25 } from "commander";
508
+ import { Command as Command26 } from "commander";
459
509
  function ServeCommand() {
460
- const cmd3 = new Command25("serve");
510
+ const cmd3 = new Command26("serve");
461
511
  cmd3.description("Serve an API Reference from an OpenAPI or AsyncAPI file");
462
512
  cmd3.argument(
463
513
  "[file|url]",
@@ -475,16 +525,16 @@ function ServeCommand() {
475
525
  parsePort
476
526
  );
477
527
  cmd3.action(async (...args) => {
478
- const { serveAction } = await import("./chunks/action-BOZNBCNZ.js");
528
+ const { serveAction } = await import("./chunks/action-Y6NXJQ4H.js");
479
529
  return serveAction(...args);
480
530
  });
481
531
  return cmd3;
482
532
  }
483
533
 
484
534
  // src/domains/document/share/index.ts
485
- import { Command as Command26 } from "commander";
535
+ import { Command as Command27 } from "commander";
486
536
  function ShareCommand() {
487
- const cmd3 = new Command26("share");
537
+ const cmd3 = new Command27("share");
488
538
  cmd3.description("Share an OpenAPI or AsyncAPI file");
489
539
  cmd3.argument("[file]", "file to share");
490
540
  cmd3.option(
@@ -492,16 +542,16 @@ function ShareCommand() {
492
542
  "pass a token to update an existing sandbox"
493
543
  );
494
544
  cmd3.action(async (...args) => {
495
- const { shareAction } = await import("./chunks/action-HJYZCPUN.js");
545
+ const { shareAction } = await import("./chunks/action-FCAYFPVR.js");
496
546
  return shareAction(...args);
497
547
  });
498
548
  return cmd3;
499
549
  }
500
550
 
501
551
  // src/domains/document/upgrade/index.ts
502
- import { Command as Command27 } from "commander";
552
+ import { Command as Command28 } from "commander";
503
553
  function UpgradeCommand() {
504
- const cmd3 = new Command27("upgrade");
554
+ const cmd3 = new Command28("upgrade");
505
555
  cmd3.description("Upgrade an OpenAPI or AsyncAPI document to version 3.1");
506
556
  cmd3.argument("[file|url]", "File or URL to upgrade");
507
557
  cmd3.option("-o, --output <file>", "Path to save the upgraded output file");
@@ -513,9 +563,9 @@ function UpgradeCommand() {
513
563
  }
514
564
 
515
565
  // src/domains/document/validate/index.ts
516
- import { Command as Command28 } from "commander";
566
+ import { Command as Command29 } from "commander";
517
567
  function ValidateCommand() {
518
- const cmd3 = new Command28("validate");
568
+ const cmd3 = new Command29("validate");
519
569
  cmd3.description("Validate an OpenAPI or AsyncAPI file");
520
570
  cmd3.argument("[file|url]", "File or URL to validate");
521
571
  cmd3.action(async (...args) => {
@@ -526,9 +576,9 @@ function ValidateCommand() {
526
576
  }
527
577
 
528
578
  // src/domains/document/void/index.ts
529
- import { Command as Command29 } from "commander";
579
+ import { Command as Command30 } from "commander";
530
580
  function VoidCommand() {
531
- const cmd3 = new Command29("void");
581
+ const cmd3 = new Command30("void");
532
582
  cmd3.description("Boot a server to mirror HTTP requests");
533
583
  cmd3.option("-o, --once", "run the server only once and exit after that");
534
584
  cmd3.option(
@@ -559,18 +609,18 @@ var documentCommands = [
559
609
  LintCommand,
560
610
  UpgradeCommand
561
611
  ];
562
- var documentDomain = new Command30("document");
612
+ var documentDomain = new Command31("document");
563
613
  documentDomain.description("Manage local openapi file");
564
614
  documentCommands.forEach((command) => documentDomain.addCommand(command()));
565
615
  var document_default = documentDomain;
566
616
 
567
617
  // src/domains/project/index.ts
568
- import { Command as Command40 } from "commander";
618
+ import { Command as Command41 } from "commander";
569
619
 
570
620
  // src/domains/project/preview/index.ts
571
- import { Command as Command31, Option as Option2 } from "commander";
621
+ import { Command as Command32, Option as Option2 } from "commander";
572
622
  var PreviewCommand = () => {
573
- const cmd3 = new Command31("preview");
623
+ const cmd3 = new Command32("preview");
574
624
  cmd3.description("Preview scalar guides");
575
625
  cmd3.argument(
576
626
  "[config]",
@@ -590,16 +640,16 @@ var PreviewCommand = () => {
590
640
  );
591
641
  cmd3.option("-N, --no-open", "Do not open the browser automatically", true);
592
642
  cmd3.action(async (...args) => {
593
- const { previewAction } = await import("./chunks/action-E4YSRFGT.js");
643
+ const { previewAction } = await import("./chunks/action-LLH4QPXM.js");
594
644
  return previewAction(...args);
595
645
  });
596
646
  return cmd3;
597
647
  };
598
648
 
599
649
  // src/domains/project/check-config/index.ts
600
- import { Command as Command32 } from "commander";
650
+ import { Command as Command33 } from "commander";
601
651
  function CheckConfigCommand() {
602
- const cmd3 = new Command32("check-config");
652
+ const cmd3 = new Command33("check-config");
603
653
  cmd3.description("Check a Scalar Configuration file");
604
654
  cmd3.argument("[file]", "File to check");
605
655
  cmd3.action(async (...args) => {
@@ -610,32 +660,32 @@ function CheckConfigCommand() {
610
660
  }
611
661
 
612
662
  // src/domains/project/create/index.ts
613
- import { Command as Command33 } from "commander";
663
+ import { Command as Command34 } from "commander";
614
664
  var CreateCommand = () => {
615
- const cmd3 = new Command33("create");
665
+ const cmd3 = new Command34("create");
616
666
  cmd3.description(
617
667
  "Create a new project that is not linked to a github project."
618
668
  );
619
669
  cmd3.option("-n, --name <name>", "name of your project");
620
670
  cmd3.option("-s, --slug <slug>", "project slug");
621
671
  cmd3.action(async (...args) => {
622
- const { createAction } = await import("./chunks/action-LVDU6YOI.js");
672
+ const { createAction } = await import("./chunks/action-WFDNRA7D.js");
623
673
  return createAction(...args);
624
674
  });
625
675
  return cmd3;
626
676
  };
627
677
 
628
678
  // src/domains/project/deployments/index.ts
629
- import { Command as Command35 } from "commander";
679
+ import { Command as Command36 } from "commander";
630
680
 
631
681
  // src/domains/project/deployments/list/index.ts
632
- import { Command as Command34 } from "commander";
682
+ import { Command as Command35 } from "commander";
633
683
  var ListCommand = () => {
634
- const cmd3 = new Command34("list");
684
+ const cmd3 = new Command35("list");
635
685
  cmd3.description("List the production deployment history for a project.");
636
686
  cmd3.option("-s, --slug [slug]", "Project slug found in Scalar Dashboard");
637
687
  cmd3.action(async (...args) => {
638
- const { listAction } = await import("./chunks/action-CPLH2CQ5.js");
688
+ const { listAction } = await import("./chunks/action-QQZLPI42.js");
639
689
  return listAction(...args);
640
690
  });
641
691
  return cmd3;
@@ -643,30 +693,30 @@ var ListCommand = () => {
643
693
 
644
694
  // src/domains/project/deployments/index.ts
645
695
  var DeploymentsCommand = () => {
646
- const cmd3 = new Command35("deployments");
696
+ const cmd3 = new Command36("deployments");
647
697
  cmd3.description("Inspect a project deployment history.");
648
698
  cmd3.addCommand(ListCommand());
649
699
  return cmd3;
650
700
  };
651
701
 
652
702
  // src/domains/project/init/index.ts
653
- import { Command as Command36 } from "commander";
703
+ import { Command as Command37 } from "commander";
654
704
  var InitCommand = () => {
655
- const cmd3 = new Command36("init");
705
+ const cmd3 = new Command37("init");
656
706
  cmd3.description("Create a new Scalar Docs project.");
657
707
  cmd3.option("-s, --subdomain [url]", "subdomain to publish on");
658
708
  cmd3.option("--force", "override existing configuration");
659
709
  cmd3.action(async (...args) => {
660
- const { initAction } = await import("./chunks/action-RBOLLIGX.js");
710
+ const { initAction } = await import("./chunks/action-Y7OUGD56.js");
661
711
  return initAction(...args);
662
712
  });
663
713
  return cmd3;
664
714
  };
665
715
 
666
716
  // src/domains/project/publish/index.ts
667
- import { Command as Command37 } from "commander";
717
+ import { Command as Command38 } from "commander";
668
718
  var PublishCommand = () => {
669
- const cmd3 = new Command37("publish");
719
+ const cmd3 = new Command38("publish");
670
720
  cmd3.description(
671
721
  "Publish new build for a github sync project that is not linked."
672
722
  );
@@ -678,16 +728,16 @@ var PublishCommand = () => {
678
728
  "Publish from your linked remote GitHub repository"
679
729
  );
680
730
  cmd3.action(async (...args) => {
681
- const { publishAction } = await import("./chunks/action-OX2566BE.js");
731
+ const { publishAction } = await import("./chunks/action-43YBNBDR.js");
682
732
  return publishAction(...args);
683
733
  });
684
734
  return cmd3;
685
735
  };
686
736
 
687
737
  // src/domains/project/rollback/index.ts
688
- import { Command as Command38 } from "commander";
738
+ import { Command as Command39 } from "commander";
689
739
  var RollbackCommand = () => {
690
- const cmd3 = new Command38("rollback");
740
+ const cmd3 = new Command39("rollback");
691
741
  cmd3.description(
692
742
  "Roll the live deployment back to a previously deployed build."
693
743
  );
@@ -698,16 +748,16 @@ var RollbackCommand = () => {
698
748
  );
699
749
  cmd3.option("-y, --yes", "Skip the confirmation prompt");
700
750
  cmd3.action(async (...args) => {
701
- const { rollbackAction } = await import("./chunks/action-BAQYJ6UE.js");
751
+ const { rollbackAction } = await import("./chunks/action-UIKH4SZX.js");
702
752
  return rollbackAction(...args);
703
753
  });
704
754
  return cmd3;
705
755
  };
706
756
 
707
757
  // src/domains/project/upgrade/index.ts
708
- import { Command as Command39 } from "commander";
758
+ import { Command as Command40 } from "commander";
709
759
  var UpgradeCommand2 = () => {
710
- const cmd3 = new Command39("upgrade");
760
+ const cmd3 = new Command40("upgrade");
711
761
  cmd3.description("Upgrade scalar project");
712
762
  cmd3.argument(
713
763
  "[config]",
@@ -731,19 +781,19 @@ var projectCommands = [
731
781
  DeploymentsCommand,
732
782
  UpgradeCommand2
733
783
  ];
734
- var projectDomain = new Command40("project");
784
+ var projectDomain = new Command41("project");
735
785
  projectDomain.description("Manage scalar project");
736
786
  projectCommands.forEach((command) => projectDomain.addCommand(command()));
737
787
  projectDomain.addCommand(DownloadIsolateCommand(), { hidden: true });
738
788
  var project_default = projectDomain;
739
789
 
740
790
  // src/domains/readme/index.ts
741
- import { Command as Command42 } from "commander";
791
+ import { Command as Command43 } from "commander";
742
792
 
743
793
  // src/domains/readme/generate.ts
744
794
  import { text } from "@clack/prompts";
745
795
  import as2 from "ansis";
746
- import { Command as Command41 } from "commander";
796
+ import { Command as Command42 } from "commander";
747
797
 
748
798
  // src/helpers/documentation/index.ts
749
799
  import fs from "node:fs/promises";
@@ -790,7 +840,7 @@ var generateDocumentationFile = async (outputPath) => {
790
840
 
791
841
  // src/domains/readme/generate.ts
792
842
  function GenerateReadmeCommand() {
793
- const cmd3 = new Command41("generate");
843
+ const cmd3 = new Command42("generate");
794
844
  cmd3.description("Self generate documentation for the cli");
795
845
  cmd3.option(
796
846
  "-o, --output [file]",
@@ -856,18 +906,18 @@ function ServeReadmeCommand(cmd3) {
856
906
  }
857
907
 
858
908
  // src/domains/readme/index.ts
859
- var readmeDomain = new Command42("readme");
909
+ var readmeDomain = new Command43("readme");
860
910
  readmeDomain.addCommand(GenerateReadmeCommand());
861
911
  ServeReadmeCommand(readmeDomain);
862
912
  var readme_default = readmeDomain;
863
913
 
864
914
  // src/domains/registry/index.ts
865
- import { Command as Command48 } from "commander";
915
+ import { Command as Command49 } from "commander";
866
916
 
867
917
  // src/domains/registry/publish/index.ts
868
- import { Command as Command43 } from "commander";
918
+ import { Command as Command44 } from "commander";
869
919
  var PublishCommand2 = () => {
870
- const cmd3 = new Command43("publish");
920
+ const cmd3 = new Command44("publish");
871
921
  cmd3.description("Publish an OpenAPI document to the Scalar registry");
872
922
  cmd3.argument("[file]", "OpenAPI file to upload");
873
923
  cmd3.option(
@@ -894,30 +944,30 @@ var PublishCommand2 = () => {
894
944
  parseFetchLimit
895
945
  );
896
946
  cmd3.action(async (...args) => {
897
- const { publishAction } = await import("./chunks/action-4NGK5XMD.js");
947
+ const { publishAction } = await import("./chunks/action-6BYGBXRC.js");
898
948
  return publishAction(...args);
899
949
  });
900
950
  return cmd3;
901
951
  };
902
952
 
903
953
  // src/domains/registry/delete/index.ts
904
- import { Command as Command44 } from "commander";
954
+ import { Command as Command45 } from "commander";
905
955
  var DeleteCommand = () => {
906
- const cmd3 = new Command44("delete");
956
+ const cmd3 = new Command45("delete");
907
957
  cmd3.description("Delete a document from scalar registry");
908
958
  cmd3.argument("[namespace]", "Team namespace");
909
959
  cmd3.argument("[slug]", "Managed doc slug");
910
960
  cmd3.action(async (...args) => {
911
- const { deleteAction } = await import("./chunks/action-QYGOPSTY.js");
961
+ const { deleteAction } = await import("./chunks/action-YLF2G4G5.js");
912
962
  return deleteAction(...args);
913
963
  });
914
964
  return cmd3;
915
965
  };
916
966
 
917
967
  // src/domains/registry/get/index.ts
918
- import { Command as Command45 } from "commander";
968
+ import { Command as Command46 } from "commander";
919
969
  var GetCommand = () => {
920
- const cmd3 = new Command45("get");
970
+ const cmd3 = new Command46("get");
921
971
  cmd3.description("Get a document version from scalar registry");
922
972
  cmd3.argument("[namespace]", "Team namespace");
923
973
  cmd3.argument("[slug]", "Managed doc slug");
@@ -925,36 +975,36 @@ var GetCommand = () => {
925
975
  cmd3.option("--format <format>", "Output format (json or yaml)", "json");
926
976
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
927
977
  cmd3.action(async (...args) => {
928
- const { getAction } = await import("./chunks/action-SRBN7N3R.js");
978
+ const { getAction } = await import("./chunks/action-XIUO64C7.js");
929
979
  return getAction(...args);
930
980
  });
931
981
  return cmd3;
932
982
  };
933
983
 
934
984
  // src/domains/registry/list/index.ts
935
- import { Command as Command46 } from "commander";
985
+ import { Command as Command47 } from "commander";
936
986
  var ListCommand2 = () => {
937
- const cmd3 = new Command46("list");
987
+ const cmd3 = new Command47("list");
938
988
  cmd3.description("List all registry APIs for a team namespace");
939
989
  cmd3.option("--namespace <namespace>", "Team namespace");
940
990
  cmd3.action(async (...args) => {
941
- const { listAction } = await import("./chunks/action-SCOXTCPR.js");
991
+ const { listAction } = await import("./chunks/action-LEUD5P2U.js");
942
992
  return listAction(...args);
943
993
  });
944
994
  return cmd3;
945
995
  };
946
996
 
947
997
  // src/domains/registry/update/index.ts
948
- import { Command as Command47 } from "commander";
998
+ import { Command as Command48 } from "commander";
949
999
  var UpdateCommand = () => {
950
- const cmd3 = new Command47("update");
1000
+ const cmd3 = new Command48("update");
951
1001
  cmd3.description("Update document metadata on scalar registry");
952
1002
  cmd3.argument("[namespace]", "namespace of document you want to update");
953
1003
  cmd3.argument("[slug]", "slug of document you want to update");
954
1004
  cmd3.option("--title <title>", "Document title");
955
1005
  cmd3.option("--description <description>", "Document description");
956
1006
  cmd3.action(async (...args) => {
957
- const { updateAction } = await import("./chunks/action-SNPOOW6S.js");
1007
+ const { updateAction } = await import("./chunks/action-LXGXKXZZ.js");
958
1008
  return updateAction(...args);
959
1009
  });
960
1010
  return cmd3;
@@ -968,34 +1018,34 @@ var registryCommands = [
968
1018
  ListCommand2,
969
1019
  GetCommand
970
1020
  ];
971
- var registryDomain = new Command48("registry");
1021
+ var registryDomain = new Command49("registry");
972
1022
  registryDomain.description("Manage your scalar registry");
973
1023
  registryCommands.forEach((command) => registryDomain.addCommand(command()));
974
1024
  var registry_default = registryDomain;
975
1025
 
976
1026
  // src/domains/team/index.ts
977
- import { Command as Command51 } from "commander";
1027
+ import { Command as Command52 } from "commander";
978
1028
 
979
1029
  // src/domains/team/list/index.ts
980
- import { Command as Command49 } from "commander";
1030
+ import { Command as Command50 } from "commander";
981
1031
  var ListCommand3 = () => {
982
- const cmd3 = new Command49("list");
1032
+ const cmd3 = new Command50("list");
983
1033
  cmd3.description("List all teams current user is part of");
984
1034
  cmd3.action(async (...args) => {
985
- const { listAction } = await import("./chunks/action-BRSSC2SR.js");
1035
+ const { listAction } = await import("./chunks/action-W3C53GPH.js");
986
1036
  return listAction(...args);
987
1037
  });
988
1038
  return cmd3;
989
1039
  };
990
1040
 
991
1041
  // src/domains/team/set/index.ts
992
- import { Command as Command50 } from "commander";
1042
+ import { Command as Command51 } from "commander";
993
1043
  var SetCommand = () => {
994
- const cmd3 = new Command50("set");
1044
+ const cmd3 = new Command51("set");
995
1045
  cmd3.description("Set current active team for the user");
996
1046
  cmd3.option("--team <team>", "Team uid");
997
1047
  cmd3.action(async (...args) => {
998
- const { setAction } = await import("./chunks/action-T5XMJXPO.js");
1048
+ const { setAction } = await import("./chunks/action-354TUG4H.js");
999
1049
  return setAction(...args);
1000
1050
  });
1001
1051
  return cmd3;
@@ -1003,7 +1053,7 @@ var SetCommand = () => {
1003
1053
 
1004
1054
  // src/domains/team/index.ts
1005
1055
  var teamCommands = [ListCommand3, SetCommand];
1006
- var teamDomain = new Command51("team");
1056
+ var teamDomain = new Command52("team");
1007
1057
  teamDomain.description("Manage user teams");
1008
1058
  teamCommands.forEach((command) => teamDomain.addCommand(command()));
1009
1059
  var team_default = teamDomain;
@@ -1011,7 +1061,7 @@ var team_default = teamDomain;
1011
1061
  // src/domains/upgrade/index.ts
1012
1062
  import { execSync } from "node:child_process";
1013
1063
  import as5 from "ansis";
1014
- import { Command as Command52 } from "commander";
1064
+ import { Command as Command53 } from "commander";
1015
1065
 
1016
1066
  // src/helpers/upgrade.ts
1017
1067
  import as4 from "ansis";
@@ -1078,7 +1128,7 @@ async function checkUpgrade() {
1078
1128
  }
1079
1129
 
1080
1130
  // src/domains/upgrade/index.ts
1081
- var cmd2 = new Command52("upgrade");
1131
+ var cmd2 = new Command53("upgrade");
1082
1132
  cmd2.description("Upgrade current version of your cli");
1083
1133
  cmd2.action(async () => {
1084
1134
  if (process.env.SCALAR_CLI_DISTRIBUTION === "portable") {
@@ -1112,6 +1162,7 @@ var domains = [
1112
1162
  upgrade_default,
1113
1163
  context_default,
1114
1164
  auth_default,
1165
+ access_group_default,
1115
1166
  document_default,
1116
1167
  project_default,
1117
1168
  registry_default,
@@ -1123,7 +1174,7 @@ var domains_default = domains;
1123
1174
 
1124
1175
  // src/program.ts
1125
1176
  var getProgram = () => {
1126
- const program2 = new Command53();
1177
+ const program2 = new Command54();
1127
1178
  program2.enablePositionalOptions().name(Object.keys(bin)[0]).description("CLI to work with your OpenAPI files").version(version, "-v, --version");
1128
1179
  program2.showHelpAfterError();
1129
1180
  domains_default.forEach((domain) => program2.addCommand(domain));
@@ -1141,7 +1192,7 @@ var program = getProgram();
1141
1192
  if (process.argv.length === 2) {
1142
1193
  program.help();
1143
1194
  }
1144
- if (process.argv[2] !== "upgrade" && process.argv[2] !== "context" && process.env.SCALAR_CLI_DISTRIBUTION !== "portable") {
1195
+ if (process.argv[2] !== "upgrade" && process.argv[2] !== "context" && !(process.argv[2] === "access-group" && process.argv.includes("--json")) && process.env.SCALAR_CLI_DISTRIBUTION !== "portable") {
1145
1196
  checkUpgrade().catch(() => {
1146
1197
  });
1147
1198
  }