@fragment-dev/cli 2026.6.29 → 2026.6.30-1

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 (77) hide show
  1. package/README.md +42 -2
  2. package/dist/{chunk-I5JFFWZM.js → chunk-2VYJABNZ.js} +2 -2
  3. package/dist/{chunk-BBZDU3B4.js → chunk-34NLRFFT.js} +1 -1
  4. package/dist/{chunk-T5GGVB7Q.js → chunk-46HQGYHT.js} +32 -28
  5. package/dist/{chunk-7O5S6DOP.js → chunk-4H2VTNQ3.js} +3 -3
  6. package/dist/{chunk-UMAUSCLS.js → chunk-5A52AXRT.js} +3 -3
  7. package/dist/{chunk-LNYDUY5F.js → chunk-5HH4NNSE.js} +2 -2
  8. package/dist/{chunk-CMB5L4GJ.js → chunk-B2BG7TCY.js} +5 -5
  9. package/dist/{chunk-ECSXGVPP.js → chunk-C7ROAUIM.js} +1 -1
  10. package/dist/{chunk-Q25QYAZ7.js → chunk-FELYEHSZ.js} +1 -1
  11. package/dist/{chunk-6BF2IGEK.js → chunk-HCTAYKGL.js} +2 -2
  12. package/dist/{chunk-VKFC45KB.js → chunk-J6GQWO4E.js} +2 -2
  13. package/dist/{chunk-QI5VSJMP.js → chunk-J73JTDHN.js} +4 -4
  14. package/dist/{chunk-UGKG4UKY.js → chunk-KLPHEBPJ.js} +3 -3
  15. package/dist/{chunk-A43XU7QS.js → chunk-LB3C4WTL.js} +1 -1
  16. package/dist/{chunk-JN7B4RNC.js → chunk-LDDNVG3E.js} +3 -0
  17. package/dist/{chunk-BPA2ZDP4.js → chunk-MOZRABR6.js} +2 -2
  18. package/dist/{chunk-PCAB73GF.js → chunk-NWPJRN3W.js} +1 -1
  19. package/dist/{chunk-2BXFOBDR.js → chunk-NYTFP5AV.js} +1 -1
  20. package/dist/{chunk-L3XNEX33.js → chunk-OZQUYOQH.js} +2 -2
  21. package/dist/{chunk-TRYLEOKB.js → chunk-PILLZB3E.js} +8 -8
  22. package/dist/{chunk-NM7ENVG2.js → chunk-QDA5BIHP.js} +2 -2
  23. package/dist/{chunk-IJBNTQ7H.js → chunk-QJOWCJUB.js} +1 -1
  24. package/dist/{chunk-IO6HR226.js → chunk-QRP56DLY.js} +2 -2
  25. package/dist/chunk-RRQXUXAS.js +108 -0
  26. package/dist/{chunk-XKTOP23Z.js → chunk-SQL643PS.js} +1 -1
  27. package/dist/{chunk-WS2PJBP6.js → chunk-TLM4VKIC.js} +2 -0
  28. package/dist/{chunk-PFGF27Z7.js → chunk-UHVWN34X.js} +2 -2
  29. package/dist/{chunk-G5N2UVKQ.js → chunk-UMIUGX6O.js} +2 -2
  30. package/dist/{chunk-3QZ3TI7I.js → chunk-UOXPSGVC.js} +1 -1
  31. package/dist/{chunk-OVTTESEV.js → chunk-VGBDSE7K.js} +2 -2
  32. package/dist/{chunk-GT4DQ3S5.js → chunk-VIVSBPCD.js} +2 -2
  33. package/dist/{chunk-7X2QSWZ4.js → chunk-VJS4Z4XI.js} +4 -4
  34. package/dist/{chunk-YKRLZ565.js → chunk-WMBVWK2M.js} +1 -1
  35. package/dist/{chunk-DTKNXMNB.js → chunk-XDGKUJ32.js} +2 -2
  36. package/dist/{chunk-ESEZRPTU.js → chunk-YYTKYSJW.js} +73 -10
  37. package/dist/{chunk-F4X6QF3A.js → chunk-ZCK2KXOV.js} +1 -1
  38. package/dist/{chunk-NTVQKBTC.js → chunk-ZMSR4Z3E.js} +2 -2
  39. package/dist/chunk-ZQUZATVE.js +185 -0
  40. package/dist/commands/add-ledger-entry.js +7 -7
  41. package/dist/commands/api-client/create.js +18 -0
  42. package/dist/commands/create-custom-link.js +7 -7
  43. package/dist/commands/create-ledger.js +7 -7
  44. package/dist/commands/delete-custom-txs.js +7 -7
  45. package/dist/commands/delete-ledger.js +7 -7
  46. package/dist/commands/delete-schema.js +7 -7
  47. package/dist/commands/gen-graphql.js +11 -11
  48. package/dist/commands/get-schema.js +8 -8
  49. package/dist/commands/init.js +6 -6
  50. package/dist/commands/login.js +8 -7
  51. package/dist/commands/migrate-ledger-entry.js +7 -7
  52. package/dist/commands/query/ledgerAccounts.js +7 -7
  53. package/dist/commands/query/ledgers.js +7 -7
  54. package/dist/commands/query/schema.js +7 -7
  55. package/dist/commands/query/schemas.js +7 -7
  56. package/dist/commands/reverse-ledger-entry.js +7 -7
  57. package/dist/commands/start.js +6 -6
  58. package/dist/commands/store-schema.js +7 -7
  59. package/dist/commands/token.js +7 -7
  60. package/dist/commands/update-ledger-account.js +7 -7
  61. package/dist/commands/update.js +7 -7
  62. package/dist/commands/verify-schema.js +11 -11
  63. package/dist/commands/workspace.js +7 -7
  64. package/dist/commands.js +40 -38
  65. package/dist/graphql.js +4 -4
  66. package/dist/index.js +40 -38
  67. package/dist/lib/auth.js +2 -2
  68. package/dist/lib/authenticatedCommand.js +6 -6
  69. package/dist/lib/baseCommand.js +5 -5
  70. package/dist/lib/browserAuth.js +13 -0
  71. package/dist/lib/constants.js +5 -3
  72. package/dist/open-SJMVVA3H.js +551 -0
  73. package/dist/utils/formatValidationErrors.js +3 -3
  74. package/dist/utils/schemaValidation.js +6 -6
  75. package/dist/version.js +2 -2
  76. package/oclif.manifest.json +101 -1
  77. package/package.json +4 -1
@@ -79,9 +79,33 @@
79
79
  "description": "Authentication is scoped to one FRAGMENT Workspace.\n If you want to authenticate with another Workspace, you must create another API Client and follow the authentication flow again.\n Credentials will be written to ~/.fragment/auth.json.",
80
80
  "examples": [
81
81
  "<%= config.bin %> <%= command.id %>",
82
+ "<%= config.bin %> <%= command.id %> --browser --workspace <workspace-id>",
82
83
  "<%= config.bin %> <%= command.id %> --client-id <client-id> --client-secret <client-secret> --api-url <api-url> --oauth-url <oauth-url>"
83
84
  ],
84
85
  "flags": {
86
+ "browser": {
87
+ "description": "Authenticate in the browser and provision an API client automatically.",
88
+ "name": "browser",
89
+ "required": false,
90
+ "allowNo": false,
91
+ "type": "boolean"
92
+ },
93
+ "workspace": {
94
+ "description": "The Workspace id to authenticate against (required with --browser).",
95
+ "name": "workspace",
96
+ "required": false,
97
+ "hasDynamicHelp": false,
98
+ "multiple": false,
99
+ "type": "option"
100
+ },
101
+ "mcp-url": {
102
+ "description": "The Workspace MCP server origin (ex: https://mcp.us-west-2.fragment.dev). Used with --browser.",
103
+ "name": "mcp-url",
104
+ "required": false,
105
+ "hasDynamicHelp": false,
106
+ "multiple": false,
107
+ "type": "option"
108
+ },
85
109
  "client-id": {
86
110
  "description": "The API Client ID for your FRAGMENT Workspace.",
87
111
  "name": "client-id",
@@ -164,6 +188,82 @@
164
188
  "summary": "Get a FRAGMENT Authentication Token.",
165
189
  "help": "Create an API client at dashboard.fragment.dev/api-clients"
166
190
  },
191
+ "api-client:create": {
192
+ "aliases": [],
193
+ "args": {},
194
+ "description": "Authenticates in the browser and provisions a new API client for the\n given Workspace, then writes the credentials to a file or stdout. The\n authorizing user must have permission to create API clients.",
195
+ "examples": [
196
+ "<%= config.bin %> <%= command.id %> --workspace <workspace-id> --name \"Billing service\" --role reader",
197
+ "<%= config.bin %> <%= command.id %> --workspace <workspace-id> --name CI --output ./fragment-client.json"
198
+ ],
199
+ "flags": {
200
+ "workspace": {
201
+ "description": "The Workspace id to create the API client in.",
202
+ "name": "workspace",
203
+ "required": true,
204
+ "hasDynamicHelp": false,
205
+ "multiple": false,
206
+ "type": "option"
207
+ },
208
+ "name": {
209
+ "description": "A display name for the API client.",
210
+ "name": "name",
211
+ "required": true,
212
+ "hasDynamicHelp": false,
213
+ "multiple": false,
214
+ "type": "option"
215
+ },
216
+ "role": {
217
+ "description": "Role to assign the API client (defaults to your own role, capped at it).",
218
+ "name": "role",
219
+ "required": false,
220
+ "hasDynamicHelp": false,
221
+ "multiple": false,
222
+ "options": [
223
+ "admin",
224
+ "reader"
225
+ ],
226
+ "type": "option"
227
+ },
228
+ "mcp-url": {
229
+ "description": "The Workspace MCP server origin (ex: https://mcp.us-west-2.fragment.dev). Falls back to FRAGMENT_MCP_URL.",
230
+ "name": "mcp-url",
231
+ "required": false,
232
+ "hasDynamicHelp": false,
233
+ "multiple": false,
234
+ "type": "option"
235
+ },
236
+ "output": {
237
+ "description": "Write the credentials to this file instead of stdout.",
238
+ "name": "output",
239
+ "required": false,
240
+ "hasDynamicHelp": false,
241
+ "multiple": false,
242
+ "type": "option"
243
+ },
244
+ "format": {
245
+ "description": "Output format (applies to both stdout and --output).",
246
+ "name": "format",
247
+ "required": false,
248
+ "default": "json",
249
+ "hasDynamicHelp": false,
250
+ "multiple": false,
251
+ "options": [
252
+ "json",
253
+ "env"
254
+ ],
255
+ "type": "option"
256
+ }
257
+ },
258
+ "hasDynamicHelp": false,
259
+ "hiddenAliases": [],
260
+ "id": "api-client:create",
261
+ "pluginAlias": "@fragment-dev/cli",
262
+ "pluginName": "@fragment-dev/cli",
263
+ "pluginType": "core",
264
+ "strict": true,
265
+ "summary": "Create an API client for an integration."
266
+ },
167
267
  "workspace": {
168
268
  "aliases": [],
169
269
  "args": {},
@@ -980,5 +1080,5 @@
980
1080
  "help": "Generate GraphQL queries from your Schema for your SDK."
981
1081
  }
982
1082
  },
983
- "version": "2026.6.29"
1083
+ "version": "2026.6.30-1"
984
1084
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragment-dev/cli",
3
- "version": "2026.6.29",
3
+ "version": "2026.6.30-1",
4
4
  "description": "FRAGMENT CLI",
5
5
  "author": "hello@fragment.dev",
6
6
  "bin": {
@@ -66,6 +66,9 @@
66
66
  "topics": {
67
67
  "query": {
68
68
  "description": "Query for entities (Ledgers, Schemas, etc) in your Workspace."
69
+ },
70
+ "api-client": {
71
+ "description": "Manage API clients for your Workspace."
69
72
  }
70
73
  },
71
74
  "plugins": [