@sanity/runtime-cli 13.0.2 → 13.0.3

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 CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @sanity/runtime-cli
20
20
  $ sanity-run COMMAND
21
21
  running command...
22
22
  $ sanity-run (--version)
23
- @sanity/runtime-cli/13.0.2 linux-x64 node-v24.12.0
23
+ @sanity/runtime-cli/13.0.3 linux-x64 node-v24.12.0
24
24
  $ sanity-run --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity-run COMMAND
@@ -98,7 +98,7 @@ EXAMPLES
98
98
  $ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
99
99
  ```
100
100
 
101
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/add.ts)_
101
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/add.ts)_
102
102
 
103
103
  ## `sanity-run blueprints config`
104
104
 
@@ -106,13 +106,12 @@ View or edit the local Blueprint configuration
106
106
 
107
107
  ```
108
108
  USAGE
109
- $ sanity-run blueprints config [--project-id <value> -e] [--organization-id <value> ] [--stack-id <value> ]
109
+ $ sanity-run blueprints config [--project-id <value> -e] [--stack-id <value> ]
110
110
 
111
111
  FLAGS
112
- -e, --edit Modify the configuration interactively, or directly when combined with ID flags.
113
- --organization-id=<value> Directly set the organization ID in the configuration. Requires --edit flag
114
- --project-id=<value> Directly set the project ID in the configuration. Requires --edit flag
115
- --stack-id=<value> Directly set the Stack ID in the configuration. Requires --edit flag
112
+ -e, --edit Modify the configuration interactively, or directly when combined with ID flags.
113
+ --project-id=<value> Directly set the project ID in the configuration. Requires --edit flag
114
+ --stack-id=<value> Directly set the Stack ID in the configuration. Requires --edit flag
116
115
 
117
116
  DESCRIPTION
118
117
  View or edit the local Blueprint configuration
@@ -134,7 +133,7 @@ EXAMPLES
134
133
  $ sanity-run blueprints config --edit --project-id <projectId> --stack-id <stackId>
135
134
  ```
136
135
 
137
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/config.ts)_
136
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/config.ts)_
138
137
 
139
138
  ## `sanity-run blueprints deploy`
140
139
 
@@ -164,7 +163,7 @@ EXAMPLES
164
163
  $ sanity-run blueprints deploy --no-wait
165
164
  ```
166
165
 
167
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/deploy.ts)_
166
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/deploy.ts)_
168
167
 
169
168
  ## `sanity-run blueprints destroy`
170
169
 
@@ -172,15 +171,13 @@ Destroy the remote Stack deployment and its resources (will not delete local fil
172
171
 
173
172
  ```
174
173
  USAGE
175
- $ sanity-run blueprints destroy [--project-id <value> --stack-id <value> --force] [--organization-id <value> ]
176
- [--no-wait]
174
+ $ sanity-run blueprints destroy [--project-id <value> --stack-id <value> --force] [--no-wait]
177
175
 
178
176
  FLAGS
179
- --force Force Stack destruction (skip confirmation)
180
- --no-wait Do not wait for Stack destruction to complete
181
- --organization-id=<value> Organization associated with the Stack
182
- --project-id=<value> Project associated with the Stack
183
- --stack-id=<value> Stack ID to destroy (defaults to current Stack)
177
+ --force Force Stack destruction (skip confirmation)
178
+ --no-wait Do not wait for Stack destruction to complete
179
+ --project-id=<value> Project associated with the Stack
180
+ --stack-id=<value> Stack ID to destroy (defaults to current Stack)
184
181
 
185
182
  DESCRIPTION
186
183
  Destroy the remote Stack deployment and its resources (will not delete local files)
@@ -198,7 +195,7 @@ EXAMPLES
198
195
  $ sanity-run blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
199
196
  ```
200
197
 
201
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/destroy.ts)_
198
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/destroy.ts)_
202
199
 
203
200
  ## `sanity-run blueprints doctor`
204
201
 
@@ -224,7 +221,7 @@ DESCRIPTION
224
221
  issues.
225
222
  ```
226
223
 
227
- _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/doctor.ts)_
224
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/doctor.ts)_
228
225
 
229
226
  ## `sanity-run blueprints info`
230
227
 
@@ -254,7 +251,7 @@ EXAMPLES
254
251
  $ sanity-run blueprints info --id <stackId>
255
252
  ```
256
253
 
257
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/info.ts)_
254
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/info.ts)_
258
255
 
259
256
  ## `sanity-run blueprints init [DIR]`
260
257
 
@@ -263,7 +260,7 @@ Initialize a local Blueprint and optionally provision a remote Stack deployment
263
260
  ```
264
261
  USAGE
265
262
  $ sanity-run blueprints init [DIR] [--verbose] [--dir <value>] [--example <value> | --blueprint-type json|js|ts |
266
- --stack-id <value> | --stack-name <value>] [--project-id <value>] [--organization-id <value>]
263
+ --stack-id <value> | --stack-name <value>] [--project-id <value>]
267
264
 
268
265
  ARGUMENTS
269
266
  [DIR] Directory to create the local Blueprint in
@@ -273,7 +270,6 @@ FLAGS
273
270
  <options: json|js|ts>
274
271
  --dir=<value> Directory to create the local Blueprint in
275
272
  --example=<value> Example to use for the local Blueprint
276
- --organization-id=<value> Sanity organization ID used to scope local Blueprint and remote Stack
277
273
  --project-id=<value> Sanity project ID used to scope local Blueprint and remote Stack
278
274
  --stack-id=<value> Existing Stack ID used to scope local Blueprint
279
275
  --stack-name=<value> Name to use for a new Stack provisioned during initialization
@@ -305,7 +301,7 @@ EXAMPLES
305
301
  $ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
306
302
  ```
307
303
 
308
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/init.ts)_
304
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/init.ts)_
309
305
 
310
306
  ## `sanity-run blueprints logs`
311
307
 
@@ -333,7 +329,7 @@ EXAMPLES
333
329
  $ sanity-run blueprints logs --watch
334
330
  ```
335
331
 
336
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/logs.ts)_
332
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/logs.ts)_
337
333
 
338
334
  ## `sanity-run blueprints plan`
339
335
 
@@ -356,7 +352,7 @@ EXAMPLES
356
352
  $ sanity-run blueprints plan
357
353
  ```
358
354
 
359
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/plan.ts)_
355
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/plan.ts)_
360
356
 
361
357
  ## `sanity-run blueprints stacks`
362
358
 
@@ -364,11 +360,10 @@ List all remote Stack deployments (defaults to the current Blueprint's project s
364
360
 
365
361
  ```
366
362
  USAGE
367
- $ sanity-run blueprints stacks [--project-id <value> | --organization-id <value>]
363
+ $ sanity-run blueprints stacks [--project-id <value> | ]
368
364
 
369
365
  FLAGS
370
- --organization-id=<value> Organization ID to show Stack deployments for
371
- --project-id=<value> Project ID to show Stack deployments for
366
+ --project-id=<value> Project ID to show Stack deployments for
372
367
 
373
368
  DESCRIPTION
374
369
  List all remote Stack deployments (defaults to the current Blueprint's project scope)
@@ -386,7 +381,7 @@ EXAMPLES
386
381
  $ sanity-run blueprints stacks --organization-id <organizationId>
387
382
  ```
388
383
 
389
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/blueprints/stacks.ts)_
384
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/blueprints/stacks.ts)_
390
385
 
391
386
  ## `sanity-run functions add`
392
387
 
@@ -435,7 +430,7 @@ EXAMPLES
435
430
  $ sanity-run functions add --name my-function --type document-create --type document-update --lang js
436
431
  ```
437
432
 
438
- _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/add.ts)_
433
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/add.ts)_
439
434
 
440
435
  ## `sanity-run functions dev`
441
436
 
@@ -469,7 +464,7 @@ EXAMPLES
469
464
  $ sanity-run functions dev --timeout 60
470
465
  ```
471
466
 
472
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/dev.ts)_
467
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/dev.ts)_
473
468
 
474
469
  ## `sanity-run functions env add NAME KEY VALUE`
475
470
 
@@ -496,7 +491,7 @@ EXAMPLES
496
491
  $ sanity-run functions env add MyFunction API_URL https://api.example.com/
497
492
  ```
498
493
 
499
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/env/add.ts)_
494
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/env/add.ts)_
500
495
 
501
496
  ## `sanity-run functions env list NAME`
502
497
 
@@ -520,7 +515,7 @@ EXAMPLES
520
515
  $ sanity-run functions env list MyFunction
521
516
  ```
522
517
 
523
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/env/list.ts)_
518
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/env/list.ts)_
524
519
 
525
520
  ## `sanity-run functions env remove NAME KEY`
526
521
 
@@ -546,7 +541,7 @@ EXAMPLES
546
541
  $ sanity-run functions env remove MyFunction API_URL
547
542
  ```
548
543
 
549
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/env/remove.ts)_
544
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/env/remove.ts)_
550
545
 
551
546
  ## `sanity-run functions logs [NAME]`
552
547
 
@@ -585,7 +580,7 @@ EXAMPLES
585
580
  $ sanity-run functions logs <name> --delete
586
581
  ```
587
582
 
588
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/logs.ts)_
583
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/logs.ts)_
589
584
 
590
585
  ## `sanity-run functions test [NAME]`
591
586
 
@@ -595,8 +590,8 @@ Invoke a local Sanity Function
595
590
  USAGE
596
591
  $ sanity-run functions test [NAME] [--data-before <value> | [-d <value> | -f <value> | --document-id <value>] | |
597
592
  | --file-before <value> | --file-after <value> | --document-id-before <value> | --document-id-after <value>]
598
- [--data-after <value> | | | | | | | ] [-e create|update|delete] [-t <value>] [-a <value>] [--organization-id
599
- <value>] [--with-user-token] [--media-library-id <value> | --project-id <value> | --dataset <value>]
593
+ [--data-after <value> | | | | | | | ] [-e create|update|delete] [-t <value>] [-a <value>] [--with-user-token]
594
+ [--media-library-id <value> | --project-id <value> | --dataset <value>]
600
595
 
601
596
  ARGUMENTS
602
597
  [NAME] The name of the Sanity Function
@@ -617,7 +612,6 @@ FLAGS
617
612
  --file-after=<value> Current document
618
613
  --file-before=<value> Original document
619
614
  --media-library-id=<value> Sanity Media Library ID to use
620
- --organization-id=<value> Sanity Organization ID to use
621
615
  --project-id=<value> Sanity Project ID to use
622
616
  --with-user-token Prime access token from CLI config
623
617
 
@@ -640,7 +634,7 @@ EXAMPLES
640
634
  $ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
641
635
  ```
642
636
 
643
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/src/commands/functions/test.ts)_
637
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.3/src/commands/functions/test.ts)_
644
638
 
645
639
  ## `sanity-run help [COMMAND]`
646
640
 
@@ -30,6 +30,7 @@ If you need to switch your Blueprint to a different Stack, use --edit --stack-id
30
30
  description: 'Directly set the organization ID in the configuration. Requires --edit flag',
31
31
  aliases: ['organization', 'organizationId', 'org'],
32
32
  dependsOn: ['edit'],
33
+ hidden: true,
33
34
  }),
34
35
  'stack-id': Flags.string({
35
36
  description: 'Directly set the Stack ID in the configuration. Requires --edit flag',
@@ -30,6 +30,7 @@ Use this to clean up test environments or decommission a Stack you no longer nee
30
30
  aliases: ['organizationId', 'organization', 'org'],
31
31
  dependsOn: ['stack-id', 'force'],
32
32
  exclusive: ['project-id'],
33
+ hidden: true,
33
34
  }),
34
35
  'stack-id': Flags.string({
35
36
  description: 'Stack ID to destroy (defaults to current Stack)',
@@ -45,6 +45,7 @@ After initialization, use 'blueprints plan' to preview changes, then 'blueprints
45
45
  'organization-id': Flags.string({
46
46
  description: 'Sanity organization ID used to scope local Blueprint and remote Stack',
47
47
  aliases: ['organization', 'organizationId', 'org'],
48
+ hidden: true,
48
49
  }),
49
50
  'stack-id': Flags.string({
50
51
  description: 'Existing Stack ID used to scope local Blueprint',
@@ -22,6 +22,7 @@ Use this to discover existing Stacks you can scope a local Blueprint to (using '
22
22
  description: 'Organization ID to show Stack deployments for',
23
23
  aliases: ['organizationId', 'organization', 'org'],
24
24
  exclusive: ['project-id'],
25
+ hidden: true,
25
26
  }),
26
27
  };
27
28
  async run() {
@@ -110,6 +110,7 @@ Provide test data via --data (inline JSON), --file (JSON file), or --document-id
110
110
  description: 'Sanity Organization ID to use',
111
111
  aliases: ['organization', 'organizationId', 'org'],
112
112
  required: false,
113
+ hidden: true,
113
114
  }),
114
115
  'document-id': Flags.string({
115
116
  description: 'Document to fetch and send to function',
@@ -253,6 +253,7 @@
253
253
  "edit"
254
254
  ],
255
255
  "description": "Directly set the organization ID in the configuration. Requires --edit flag",
256
+ "hidden": true,
256
257
  "name": "organization-id",
257
258
  "hasDynamicHelp": false,
258
259
  "multiple": false,
@@ -431,6 +432,7 @@
431
432
  "exclusive": [
432
433
  "project-id"
433
434
  ],
435
+ "hidden": true,
434
436
  "name": "organization-id",
435
437
  "hasDynamicHelp": false,
436
438
  "multiple": false,
@@ -694,6 +696,7 @@
694
696
  "org"
695
697
  ],
696
698
  "description": "Sanity organization ID used to scope local Blueprint and remote Stack",
699
+ "hidden": true,
697
700
  "name": "organization-id",
698
701
  "hasDynamicHelp": false,
699
702
  "multiple": false,
@@ -931,6 +934,7 @@
931
934
  "exclusive": [
932
935
  "project-id"
933
936
  ],
937
+ "hidden": true,
934
938
  "name": "organization-id",
935
939
  "hasDynamicHelp": false,
936
940
  "multiple": false,
@@ -1512,6 +1516,7 @@
1512
1516
  "org"
1513
1517
  ],
1514
1518
  "description": "Sanity Organization ID to use",
1519
+ "hidden": true,
1515
1520
  "name": "organization-id",
1516
1521
  "required": false,
1517
1522
  "hasDynamicHelp": false,
@@ -1809,5 +1814,5 @@
1809
1814
  ]
1810
1815
  }
1811
1816
  },
1812
- "version": "13.0.2"
1817
+ "version": "13.0.3"
1813
1818
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sanity/runtime-cli",
3
3
  "description": "Sanity's Runtime CLI for Blueprints and Functions",
4
- "version": "13.0.2",
4
+ "version": "13.0.3",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",