@sanity/runtime-cli 10.11.2 → 10.11.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/10.11.
|
|
23
|
+
@sanity/runtime-cli/10.11.3 linux-x64 node-v22.20.0
|
|
24
24
|
$ sanity-run --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ sanity-run COMMAND
|
|
@@ -89,7 +89,7 @@ EXAMPLES
|
|
|
89
89
|
$ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
92
|
+
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/add.ts)_
|
|
93
93
|
|
|
94
94
|
## `sanity-run blueprints config`
|
|
95
95
|
|
|
@@ -120,7 +120,7 @@ EXAMPLES
|
|
|
120
120
|
$ sanity-run blueprints config --edit --project-id <projectId> --stack-id <stackId>
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
123
|
+
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/config.ts)_
|
|
124
124
|
|
|
125
125
|
## `sanity-run blueprints deploy`
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ EXAMPLES
|
|
|
142
142
|
$ sanity-run blueprints deploy --no-wait
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
145
|
+
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/deploy.ts)_
|
|
146
146
|
|
|
147
147
|
## `sanity-run blueprints destroy`
|
|
148
148
|
|
|
@@ -167,7 +167,7 @@ EXAMPLES
|
|
|
167
167
|
$ sanity-run blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
_See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
170
|
+
_See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/destroy.ts)_
|
|
171
171
|
|
|
172
172
|
## `sanity-run blueprints doctor`
|
|
173
173
|
|
|
@@ -185,7 +185,7 @@ DESCRIPTION
|
|
|
185
185
|
Diagnose potential issues with Blueprint configuration
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
_See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
188
|
+
_See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/doctor.ts)_
|
|
189
189
|
|
|
190
190
|
## `sanity-run blueprints info`
|
|
191
191
|
|
|
@@ -207,7 +207,7 @@ EXAMPLES
|
|
|
207
207
|
$ sanity-run blueprints info --stack-id <stackId>
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
210
|
+
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/info.ts)_
|
|
211
211
|
|
|
212
212
|
## `sanity-run blueprints init [DIR]`
|
|
213
213
|
|
|
@@ -245,7 +245,7 @@ EXAMPLES
|
|
|
245
245
|
$ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
248
|
+
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/init.ts)_
|
|
249
249
|
|
|
250
250
|
## `sanity-run blueprints logs`
|
|
251
251
|
|
|
@@ -267,7 +267,7 @@ EXAMPLES
|
|
|
267
267
|
$ sanity-run blueprints logs --watch
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
-
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
270
|
+
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/logs.ts)_
|
|
271
271
|
|
|
272
272
|
## `sanity-run blueprints plan`
|
|
273
273
|
|
|
@@ -284,7 +284,7 @@ EXAMPLES
|
|
|
284
284
|
$ sanity-run blueprints plan
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
287
|
+
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/plan.ts)_
|
|
288
288
|
|
|
289
289
|
## `sanity-run blueprints stacks`
|
|
290
290
|
|
|
@@ -306,7 +306,7 @@ EXAMPLES
|
|
|
306
306
|
$ sanity-run blueprints stacks --project-id <projectId>
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
-
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
309
|
+
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/blueprints/stacks.ts)_
|
|
310
310
|
|
|
311
311
|
## `sanity-run functions dev`
|
|
312
312
|
|
|
@@ -328,7 +328,7 @@ EXAMPLES
|
|
|
328
328
|
$ sanity-run functions dev --port 8974
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
-
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
331
|
+
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/dev.ts)_
|
|
332
332
|
|
|
333
333
|
## `sanity-run functions env add NAME KEY VALUE`
|
|
334
334
|
|
|
@@ -350,7 +350,7 @@ EXAMPLES
|
|
|
350
350
|
$ sanity-run functions env add MyFunction API_URL https://api.example.com/
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
353
|
+
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/env/add.ts)_
|
|
354
354
|
|
|
355
355
|
## `sanity-run functions env list NAME`
|
|
356
356
|
|
|
@@ -370,7 +370,7 @@ EXAMPLES
|
|
|
370
370
|
$ sanity-run functions env list MyFunction
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
_See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
373
|
+
_See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/env/list.ts)_
|
|
374
374
|
|
|
375
375
|
## `sanity-run functions env remove NAME KEY`
|
|
376
376
|
|
|
@@ -391,7 +391,7 @@ EXAMPLES
|
|
|
391
391
|
$ sanity-run functions env remove MyFunction API_URL
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
394
|
+
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/env/remove.ts)_
|
|
395
395
|
|
|
396
396
|
## `sanity-run functions logs NAME`
|
|
397
397
|
|
|
@@ -425,7 +425,7 @@ EXAMPLES
|
|
|
425
425
|
$ sanity-run functions logs <name> --delete
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
-
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
428
|
+
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/logs.ts)_
|
|
429
429
|
|
|
430
430
|
## `sanity-run functions test NAME`
|
|
431
431
|
|
|
@@ -472,7 +472,7 @@ EXAMPLES
|
|
|
472
472
|
$ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
|
|
473
473
|
```
|
|
474
474
|
|
|
475
|
-
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.
|
|
475
|
+
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v10.11.3/src/commands/functions/test.ts)_
|
|
476
476
|
|
|
477
477
|
## `sanity-run help [COMMAND]`
|
|
478
478
|
|
|
@@ -33,6 +33,10 @@ export async function blueprintConfigCore(options) {
|
|
|
33
33
|
// no edit or test: return success
|
|
34
34
|
if (!editConfig && !testConfig)
|
|
35
35
|
return { success: true };
|
|
36
|
+
// warn about deprecated test-config flag
|
|
37
|
+
if (testConfig) {
|
|
38
|
+
log(warn(`The "test" flag is deprecated. Use "${bin} blueprints doctor" instead.`));
|
|
39
|
+
}
|
|
36
40
|
// testing without editing
|
|
37
41
|
if (testConfig && !editConfig) {
|
|
38
42
|
if (configStackId && configProjectId) {
|
package/oclif.manifest.json
CHANGED
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
"validate"
|
|
182
182
|
],
|
|
183
183
|
"char": "t",
|
|
184
|
+
"deprecated": true,
|
|
184
185
|
"description": "Validate the configuration",
|
|
185
186
|
"name": "test-config",
|
|
186
187
|
"allowNo": false,
|
|
@@ -1177,5 +1178,5 @@
|
|
|
1177
1178
|
]
|
|
1178
1179
|
}
|
|
1179
1180
|
},
|
|
1180
|
-
"version": "10.11.
|
|
1181
|
+
"version": "10.11.3"
|
|
1181
1182
|
}
|