@@ -59,7 +59,7 @@ create an app deployment
59
59
```
60
60
USAGE
61
61
$ hive app:create FILE --name <value> --version <value> [--debug] [--registry.endpoint <value>]
62
- [--registry.accessToken <value>]
62
+ [--registry.accessToken <value>] [--target <value>]
63
63
64
64
ARGUMENTS
65
65
FILE Path to the persisted operations mapping.
@@ -69,46 +69,54 @@ FLAGS
69
69
--name=<value> (required) app name
70
70
--registry.accessToken=<value> registry access token
71
71
--registry.endpoint=<value> registry endpoint
72
+ --target=<value> The target in which the app deployment will be created. This can either be a slug
73
+ following the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
74
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
75
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
72
76
--version=<value> (required) app version
73
77
74
78
DESCRIPTION
75
79
create an app deployment
76
80
```
77
81
78
82
_ See code:
79
- [ dist /commands/app/create.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/app/create.js ) _
83
+ [ src /commands/app/create.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/app/create.ts ) _
80
84
81
85
## ` hive app:publish `
82
86
83
87
publish an app deployment
84
88
85
89
```
86
90
USAGE
87
- $ hive app:publish --name <value> --version <value> [--registry.endpoint <value>] [--registry.accessToken
88
- <value>]
91
+ $ hive app:publish --name <value> --version <value> [--debug] [-- registry.endpoint <value>]
92
+ [--registry.accessToken <value>] [--target <value>]
89
93
90
94
FLAGS
91
95
--debug Whether debug output for HTTP calls and similar should be enabled.
92
96
--name=<value> (required) app name
93
97
--registry.accessToken=<value> registry access token
94
98
--registry.endpoint=<value> registry endpoint
99
+ --target=<value> The target in which the app deployment will be published (slug or ID). This can either
100
+ be a slug following the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
101
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
102
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
95
103
--version=<value> (required) app version
96
104
97
105
DESCRIPTION
98
106
publish an app deployment
99
107
```
100
108
101
109
_ See code:
102
- [ dist /commands/app/publish.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/app/publish.js ) _
110
+ [ src /commands/app/publish.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/app/publish.ts ) _
103
111
104
112
## ` hive artifact:fetch `
105
113
106
114
fetch artifacts from the CDN
107
115
108
116
```
109
117
USAGE
110
- $ hive artifact:fetch --artifact sdl|supergraph|metadata|services|sdl.graphql|sdl.graphqls [--cdn.endpoint
111
- <value>] [--cdn.accessToken <value>] [--outputFile <value>]
118
+ $ hive artifact:fetch --artifact sdl|supergraph|metadata|services|sdl.graphql|sdl.graphqls [--debug]
119
+ [--cdn.endpoint <value>] [--cdn.accessToken <value>] [--outputFile <value>]
112
120
113
121
FLAGS
114
122
--artifact=<option> (required) artifact to fetch (Note: supergraph is only available for federation projects)
@@ -123,7 +131,7 @@ DESCRIPTION
123
131
```
124
132
125
133
_ See code:
126
- [ dist /commands/artifact/fetch.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/artifact/fetch.js ) _
134
+ [ src /commands/artifact/fetch.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/artifact/fetch.ts ) _
127
135
128
136
## ` hive dev `
129
137
@@ -133,7 +141,7 @@ Develop and compose Supergraph with your local services.
133
141
USAGE
134
142
$ hive dev (--url <address>... --service <string>...) [--debug] [--registry.endpoint <value> --remote]
135
143
[--registry <value> ] [--registry.accessToken <value> ] [--token <value> ] [--schema <filepath>... ] [--watch]
136
- [--watchInterval <value>] [--write <value>]
144
+ [--watchInterval <value>] [--write <value>] [--target <value>]
137
145
138
146
FLAGS
139
147
--debug Whether debug output for HTTP calls and similar should be enabled.
@@ -143,6 +151,10 @@ FLAGS
143
151
--remote Compose provided services remotely
144
152
--schema=<filepath>... Service sdl. If not provided, will be introspected from the service
145
153
--service=<string>... (required) Service name
154
+ --target=<value> The target to use for composition (slug or ID). This can either be a slug following
155
+ the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
156
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
157
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
146
158
--token=<value> api token (deprecated in favor of --registry.accessToken)
147
159
--url=<address>... (required) Service url
148
160
--watch Watch mode
@@ -162,7 +174,7 @@ DESCRIPTION
162
174
```
163
175
164
176
_ See code:
165
- [ dist /commands/dev.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/dev.js ) _
177
+ [ src /commands/dev.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/dev.ts ) _
166
178
167
179
## ` hive help [COMMAND] `
168
180
@@ -206,7 +218,7 @@ DESCRIPTION
206
218
```
207
219
208
220
_ See code:
209
- [ dist /commands/introspect.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/introspect.js ) _
221
+ [ src /commands/introspect.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/introspect.ts ) _
210
222
211
223
## ` hive operations:check FILE `
212
224
@@ -216,7 +228,7 @@ checks operations against a published schema
216
228
USAGE
217
229
$ hive operations:check FILE [--debug] [--registry.endpoint <value>] [--registry <value>] [--registry.accessToken
218
230
<value>] [--token <value>] [--require <value>...] [--graphqlTag <value>...] [--globalGraphqlTag <value>...]
219
- [--apolloClient]
231
+ [--apolloClient] [--target <value>]
220
232
221
233
ARGUMENTS
222
234
FILE Glob pattern to find the operations
@@ -252,6 +264,11 @@ FLAGS
252
264
--require=<value>...
253
265
[default: ] Loads specific require.extensions before running the command
254
266
267
+ --target=<value>
268
+ The target to which to check agains (slug or ID). This can either be a slug following the format
269
+ "$organizationSlug/$projectSlug/$targetSlug" (e.g "the-guild/graphql-hive/staging") or an UUID (e.g.
270
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
271
+
255
272
--token=<value>
256
273
api token
257
274
@@ -260,7 +277,7 @@ DESCRIPTION
260
277
```
261
278
262
279
_ See code:
263
- [ dist /commands/operations/check.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/operations/check.js ) _
280
+ [ src /commands/operations/check.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/operations/check.ts ) _
264
281
265
282
## ` hive schema:check FILE `
266
283
@@ -269,8 +286,9 @@ checks schema
269
286
```
270
287
USAGE
271
288
$ hive schema:check FILE [--debug] [--service <value>] [--registry.endpoint <value>] [--registry <value>]
272
- [--registry.accessToken <value>] [--token <value>] [--forceSafe] [--github] [--require <value>...] [--author
273
- <value>] [--commit <value>] [--contextId <value>]
289
+ [--registry.accessToken <value>] [--token <value>] [--experimentalJsonFile <value>] [--forceSafe] [--github]
290
+ [--require <value>...] [--author <value>] [--commit <value>] [--contextId <value>] [--target <value>] [--url
291
+ <value>]
274
292
275
293
ARGUMENTS
276
294
FILE Path to the schema file(s)
@@ -280,6 +298,8 @@ FLAGS
280
298
--commit=<value> Associated commit sha
281
299
--contextId=<value> Context ID for grouping the schema check.
282
300
--debug Whether debug output for HTTP calls and similar should be enabled.
301
+ --experimentalJsonFile=<value> File path to output a JSON file containing the command's result. Useful for e.g. CI
302
+ scripting with `jq`.
283
303
--forceSafe mark the check as safe, breaking changes are expected
284
304
--github Connect with GitHub Application
285
305
--registry=<value> registry address
@@ -288,14 +308,20 @@ FLAGS
288
308
--require=<value>... [default: ] Loads specific require.extensions before running the codegen and reading
289
309
the configuration
290
310
--service=<value> service name (only for distributed schemas)
311
+ --target=<value> The target against which to check the schema (slug or ID). This can either be a slug
312
+ following the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
313
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
314
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
291
315
--token=<value> api token
316
+ --url=<value> If checking a service, then you can optionally provide the service URL to see the
317
+ difference in the supergraph during the check.
292
318
293
319
DESCRIPTION
294
320
checks schema
295
321
```
296
322
297
323
_ See code:
298
- [ dist /commands/schema/check.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/schema/check.js ) _
324
+ [ src /commands/schema/check.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/schema/check.ts ) _
299
325
300
326
## ` hive schema:delete SERVICE `
301
327
@@ -304,7 +330,7 @@ deletes a schema
304
330
```
305
331
USAGE
306
332
$ hive schema:delete SERVICE [--debug] [--registry.endpoint <value>] [--registry <value>] [--registry.accessToken
307
- <value>] [--token <value>] [--dryRun] [--confirm]
333
+ <value>] [--token <value>] [--dryRun] [--confirm] [--target <value>]
308
334
309
335
ARGUMENTS
310
336
SERVICE name of the service
@@ -316,24 +342,27 @@ FLAGS
316
342
--registry=<value> registry address
317
343
--registry.accessToken=<value> registry access token
318
344
--registry.endpoint=<value> registry endpoint
345
+ --target=<value> The target to which to publish to (slug or ID). This can either be a slug following
346
+ the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
347
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
348
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
319
349
--token=<value> api token
320
350
321
351
DESCRIPTION
322
352
deletes a schema
323
353
```
324
354
325
355
_ See code:
326
- [ dist /commands/schema/delete.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/schema/delete.js ) _
356
+ [ src /commands/schema/delete.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/schema/delete.ts ) _
327
357
328
358
## ` hive schema:fetch [ACTIONID] `
329
359
330
- fetch a schema, supergraph, or list of subgraphs from the Hive API. Uses the latest if no ACTIONID
331
- is provided.
360
+ fetch a schema, supergraph, or list of subgraphs from the Hive API
332
361
333
362
```
334
363
USAGE
335
364
$ hive schema:fetch [ACTIONID] [--debug] [--registry <value>] [--token <value>] [--registry.endpoint <value>]
336
- [--registry.accessToken <value>] [--type <value>] [--write <value>] [--outputFile <value>]
365
+ [--registry.accessToken <value>] [--type <value>] [--write <value>] [--outputFile <value>] [--target <value>]
337
366
338
367
ARGUMENTS
339
368
ACTIONID action id (e.g. commit sha)
@@ -344,6 +373,10 @@ FLAGS
344
373
--registry=<value> registry address
345
374
--registry.accessToken=<value> registry access token
346
375
--registry.endpoint=<value> registry endpoint
376
+ --target=<value> The target from which to fetch the schema (slug or ID). This can either be a slug
377
+ following the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
378
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
379
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
347
380
--token=<value> api token
348
381
--type=<value> Type to fetch (possible types: sdl, supergraph, subgraphs)
349
382
--write=<value> Write to a file (possible extensions: .graphql, .gql, .gqls, .graphqls)
@@ -353,7 +386,7 @@ DESCRIPTION
353
386
```
354
387
355
388
_ See code:
356
- [ dist /commands/schema/fetch.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/schema/fetch.js ) _
389
+ [ src /commands/schema/fetch.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/schema/fetch.ts ) _
357
390
358
391
## ` hive schema:publish FILE `
359
392
@@ -363,7 +396,7 @@ publishes schema
363
396
USAGE
364
397
$ hive schema:publish FILE [--debug] [--service <value>] [--url <value>] [--metadata <value>] [--registry.endpoint
365
398
<value>] [--registry <value>] [--registry.accessToken <value>] [--token <value>] [--author <value>] [--commit
366
- <value>] [--github] [--force] [--experimental_acceptBreakingChanges] [--require <value>...]
399
+ <value>] [--github] [--force] [--experimental_acceptBreakingChanges] [--require <value>...] [--target <value>]
367
400
368
401
ARGUMENTS
369
402
FILE Path to the schema file(s)
@@ -384,6 +417,10 @@ FLAGS
384
417
--require=<value>... [default: ] Loads specific require.extensions before running the codegen and
385
418
reading the configuration
386
419
--service=<value> service name (only for distributed schemas)
420
+ --target=<value> The target to which to publish to (slug or ID). This can either be a slug
421
+ following the format "$organizationSlug/$projectSlug/$targetSlug" (e.g
422
+ "the-guild/graphql-hive/staging") or an UUID (e.g.
423
+ "a0f4c605-6541-4350-8cfe-b31f21a4bf80").
387
424
--token=<value> api token
388
425
--url=<value> service url (only for distributed schemas)
389
426
@@ -392,7 +429,7 @@ DESCRIPTION
392
429
```
393
430
394
431
_ See code:
395
- [ dist /commands/schema/publish.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/schema/publish.js ) _
432
+ [ src /commands/schema/publish.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/schema/publish.ts ) _
396
433
397
434
## ` hive update [CHANNEL] `
398
435
@@ -453,7 +490,7 @@ DESCRIPTION
453
490
```
454
491
455
492
_ See code:
456
- [ dist /commands/whoami.js ] ( https://github.com/graphql-hive/platform/blob/v0.37.0/dist /commands/whoami.js ) _
493
+ [ src /commands/whoami.ts ] ( https://github.com/graphql-hive/platform/blob/v0.50.2/src /commands/whoami.ts ) _
457
494
458
495
<!-- commandsstop -->
459
496
0 commit comments