@sanity/cli 8.31.0 → 8.32.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.
- package/README.md +179 -103
- package/bin/run.js +1 -1
- package/dist/actions/context/waitForSourceSync.js +1 -1
- package/dist/actions/context/waitForSourceSync.js.map +1 -1
- package/dist/actions/cors/filterAndValidateOrigin.js +1 -1
- package/dist/actions/cors/filterAndValidateOrigin.js.map +1 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js +13 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +2 -1
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/graphql/extractFromSanitySchema.js +1 -1
- package/dist/actions/graphql/extractFromSanitySchema.js.map +1 -1
- package/dist/actions/init/initStudio.js +1 -1
- package/dist/actions/init/initStudio.js.map +1 -1
- package/dist/actions/init/processTemplate.js +1 -1
- package/dist/actions/init/processTemplate.js.map +1 -1
- package/dist/actions/init/remoteTemplate.js +1 -1
- package/dist/actions/init/remoteTemplate.js.map +1 -1
- package/dist/actions/media/pullAspects.js +1 -1
- package/dist/actions/media/pullAspects.js.map +1 -1
- package/dist/actions/organizations/readOrganizationLogo.js +49 -0
- package/dist/actions/organizations/readOrganizationLogo.js.map +1 -0
- package/dist/actions/preview/previewAction.js +1 -1
- package/dist/actions/preview/previewAction.js.map +1 -1
- package/dist/actions/skills/readSkillState.js +1 -1
- package/dist/actions/skills/readSkillState.js.map +1 -1
- package/dist/actions/skills/setupSkills.js +1 -1
- package/dist/actions/skills/setupSkills.js.map +1 -1
- package/dist/commands/organizations/create.js +43 -3
- package/dist/commands/organizations/create.js.map +1 -1
- package/dist/commands/organizations/update.js +67 -14
- package/dist/commands/organizations/update.js.map +1 -1
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js +7 -2
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js.map +1 -1
- package/dist/generated/contextOperations.js +2 -2
- package/dist/generated/contextOperations.js.map +1 -1
- package/dist/hooks/commandNotFound/topicAliases.js +1 -1
- package/dist/hooks/commandNotFound/topicAliases.js.map +1 -1
- package/dist/server/devServer.js +8 -10
- package/dist/server/devServer.js.map +1 -1
- package/dist/services/organizations.js +30 -0
- package/dist/services/organizations.js.map +1 -1
- package/dist/util/telemetry/cliCommandIdentity.js +3 -2
- package/dist/util/telemetry/cliCommandIdentity.js.map +1 -1
- package/dist/util/update/updateChecker.js +1 -1
- package/dist/util/update/updateChecker.js.map +1 -1
- package/oclif.config.js +1 -1
- package/oclif.manifest.json +874 -832
- package/package.json +26 -27
package/oclif.manifest.json
CHANGED
|
@@ -1967,179 +1967,6 @@
|
|
|
1967
1967
|
"list.js"
|
|
1968
1968
|
]
|
|
1969
1969
|
},
|
|
1970
|
-
"cors:add": {
|
|
1971
|
-
"aliases": [],
|
|
1972
|
-
"args": {
|
|
1973
|
-
"origin": {
|
|
1974
|
-
"description": "Origin to allow (e.g., https://example.com)",
|
|
1975
|
-
"name": "origin",
|
|
1976
|
-
"required": true
|
|
1977
|
-
}
|
|
1978
|
-
},
|
|
1979
|
-
"description": "Add a CORS origin to the project",
|
|
1980
|
-
"examples": [
|
|
1981
|
-
{
|
|
1982
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1983
|
-
"description": "Interactively add a CORS origin"
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1987
|
-
"description": "Add a localhost origin without credentials"
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1991
|
-
"description": "Add a production origin with credentials allowed"
|
|
1992
|
-
},
|
|
1993
|
-
{
|
|
1994
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
1995
|
-
"description": "Add a CORS origin for a specific project"
|
|
1996
|
-
}
|
|
1997
|
-
],
|
|
1998
|
-
"flags": {
|
|
1999
|
-
"project": {
|
|
2000
|
-
"aliases": [
|
|
2001
|
-
"project-id"
|
|
2002
|
-
],
|
|
2003
|
-
"char": "p",
|
|
2004
|
-
"deprecateAliases": true,
|
|
2005
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2006
|
-
"helpGroup": "OVERRIDE",
|
|
2007
|
-
"name": "project",
|
|
2008
|
-
"hasDynamicHelp": false,
|
|
2009
|
-
"helpValue": "<id>",
|
|
2010
|
-
"multiple": false,
|
|
2011
|
-
"type": "option"
|
|
2012
|
-
},
|
|
2013
|
-
"credentials": {
|
|
2014
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2015
|
-
"name": "credentials",
|
|
2016
|
-
"required": false,
|
|
2017
|
-
"allowNo": true,
|
|
2018
|
-
"type": "boolean"
|
|
2019
|
-
},
|
|
2020
|
-
"yes": {
|
|
2021
|
-
"char": "y",
|
|
2022
|
-
"description": "Confirm risky wildcard origins without prompting",
|
|
2023
|
-
"name": "yes",
|
|
2024
|
-
"allowNo": false,
|
|
2025
|
-
"type": "boolean"
|
|
2026
|
-
}
|
|
2027
|
-
},
|
|
2028
|
-
"hasDynamicHelp": false,
|
|
2029
|
-
"hiddenAliases": [],
|
|
2030
|
-
"id": "cors:add",
|
|
2031
|
-
"pluginAlias": "@sanity/cli",
|
|
2032
|
-
"pluginName": "@sanity/cli",
|
|
2033
|
-
"pluginType": "core",
|
|
2034
|
-
"strict": true,
|
|
2035
|
-
"isESM": true,
|
|
2036
|
-
"relativePath": [
|
|
2037
|
-
"dist",
|
|
2038
|
-
"commands",
|
|
2039
|
-
"cors",
|
|
2040
|
-
"add.js"
|
|
2041
|
-
]
|
|
2042
|
-
},
|
|
2043
|
-
"cors:delete": {
|
|
2044
|
-
"aliases": [],
|
|
2045
|
-
"args": {
|
|
2046
|
-
"origin": {
|
|
2047
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2048
|
-
"name": "origin",
|
|
2049
|
-
"required": false
|
|
2050
|
-
}
|
|
2051
|
-
},
|
|
2052
|
-
"description": "Delete a CORS origin from the project",
|
|
2053
|
-
"examples": [
|
|
2054
|
-
{
|
|
2055
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2056
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2057
|
-
},
|
|
2058
|
-
{
|
|
2059
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2060
|
-
"description": "Delete a specific CORS origin"
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2064
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2065
|
-
}
|
|
2066
|
-
],
|
|
2067
|
-
"flags": {
|
|
2068
|
-
"project": {
|
|
2069
|
-
"aliases": [
|
|
2070
|
-
"project-id"
|
|
2071
|
-
],
|
|
2072
|
-
"char": "p",
|
|
2073
|
-
"deprecateAliases": true,
|
|
2074
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2075
|
-
"helpGroup": "OVERRIDE",
|
|
2076
|
-
"name": "project",
|
|
2077
|
-
"hasDynamicHelp": false,
|
|
2078
|
-
"helpValue": "<id>",
|
|
2079
|
-
"multiple": false,
|
|
2080
|
-
"type": "option"
|
|
2081
|
-
}
|
|
2082
|
-
},
|
|
2083
|
-
"hasDynamicHelp": false,
|
|
2084
|
-
"hiddenAliases": [],
|
|
2085
|
-
"id": "cors:delete",
|
|
2086
|
-
"pluginAlias": "@sanity/cli",
|
|
2087
|
-
"pluginName": "@sanity/cli",
|
|
2088
|
-
"pluginType": "core",
|
|
2089
|
-
"strict": true,
|
|
2090
|
-
"isESM": true,
|
|
2091
|
-
"relativePath": [
|
|
2092
|
-
"dist",
|
|
2093
|
-
"commands",
|
|
2094
|
-
"cors",
|
|
2095
|
-
"delete.js"
|
|
2096
|
-
]
|
|
2097
|
-
},
|
|
2098
|
-
"cors:list": {
|
|
2099
|
-
"aliases": [],
|
|
2100
|
-
"args": {},
|
|
2101
|
-
"description": "List CORS origins for the project",
|
|
2102
|
-
"examples": [
|
|
2103
|
-
{
|
|
2104
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2105
|
-
"description": "List CORS origins for the project"
|
|
2106
|
-
},
|
|
2107
|
-
{
|
|
2108
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2109
|
-
"description": "List CORS origins for a specific project"
|
|
2110
|
-
}
|
|
2111
|
-
],
|
|
2112
|
-
"flags": {
|
|
2113
|
-
"project": {
|
|
2114
|
-
"aliases": [
|
|
2115
|
-
"project-id"
|
|
2116
|
-
],
|
|
2117
|
-
"char": "p",
|
|
2118
|
-
"deprecateAliases": true,
|
|
2119
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2120
|
-
"helpGroup": "OVERRIDE",
|
|
2121
|
-
"name": "project",
|
|
2122
|
-
"hasDynamicHelp": false,
|
|
2123
|
-
"helpValue": "<id>",
|
|
2124
|
-
"multiple": false,
|
|
2125
|
-
"type": "option"
|
|
2126
|
-
}
|
|
2127
|
-
},
|
|
2128
|
-
"hasDynamicHelp": false,
|
|
2129
|
-
"hiddenAliases": [],
|
|
2130
|
-
"id": "cors:list",
|
|
2131
|
-
"pluginAlias": "@sanity/cli",
|
|
2132
|
-
"pluginName": "@sanity/cli",
|
|
2133
|
-
"pluginType": "core",
|
|
2134
|
-
"strict": true,
|
|
2135
|
-
"isESM": true,
|
|
2136
|
-
"relativePath": [
|
|
2137
|
-
"dist",
|
|
2138
|
-
"commands",
|
|
2139
|
-
"cors",
|
|
2140
|
-
"list.js"
|
|
2141
|
-
]
|
|
2142
|
-
},
|
|
2143
1970
|
"context:build": {
|
|
2144
1971
|
"aliases": [],
|
|
2145
1972
|
"args": {
|
|
@@ -2543,7 +2370,7 @@
|
|
|
2543
2370
|
"required": true
|
|
2544
2371
|
}
|
|
2545
2372
|
},
|
|
2546
|
-
"description": "Queues a sync of every website and dataset source, which starts once any sync of the source that is running ends. `files` sources sync when you upload a file.",
|
|
2373
|
+
"description": "Queues a sync of every website and dataset source, which starts once any sync of the source that is running ends. `files` sources sync when you upload a file. New documents, from these syncs or waiting from earlier ones, are then placed in the knowledge base right away instead of waiting to be placed together with the documents that follow them. This covers the documents that arrive within an hour of the request. A refresh writes a limited number of entries, so a large batch is placed over several refreshes.",
|
|
2547
2374
|
"examples": [
|
|
2548
2375
|
{
|
|
2549
2376
|
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
@@ -2665,57 +2492,32 @@
|
|
|
2665
2492
|
"update.js"
|
|
2666
2493
|
]
|
|
2667
2494
|
},
|
|
2668
|
-
"
|
|
2495
|
+
"cors:add": {
|
|
2669
2496
|
"aliases": [],
|
|
2670
2497
|
"args": {
|
|
2671
|
-
"
|
|
2672
|
-
"description": "
|
|
2673
|
-
"name": "
|
|
2674
|
-
"required":
|
|
2675
|
-
},
|
|
2676
|
-
"target": {
|
|
2677
|
-
"description": "Name of the dataset to copy to",
|
|
2678
|
-
"name": "target",
|
|
2679
|
-
"required": false
|
|
2498
|
+
"origin": {
|
|
2499
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
2500
|
+
"name": "origin",
|
|
2501
|
+
"required": true
|
|
2680
2502
|
}
|
|
2681
2503
|
},
|
|
2682
|
-
"description": "
|
|
2504
|
+
"description": "Add a CORS origin to the project",
|
|
2683
2505
|
"examples": [
|
|
2684
2506
|
{
|
|
2685
2507
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2686
|
-
"description": "Interactively
|
|
2687
|
-
},
|
|
2688
|
-
{
|
|
2689
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2690
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2691
|
-
},
|
|
2692
|
-
{
|
|
2693
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2694
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2698
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2699
|
-
},
|
|
2700
|
-
{
|
|
2701
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2702
|
-
"description": "Copy without content release documents"
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2706
|
-
"description": "Start copy job without waiting for completion"
|
|
2508
|
+
"description": "Interactively add a CORS origin"
|
|
2707
2509
|
},
|
|
2708
2510
|
{
|
|
2709
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2710
|
-
"description": "
|
|
2511
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2512
|
+
"description": "Add a localhost origin without credentials"
|
|
2711
2513
|
},
|
|
2712
2514
|
{
|
|
2713
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2714
|
-
"description": "
|
|
2515
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2516
|
+
"description": "Add a production origin with credentials allowed"
|
|
2715
2517
|
},
|
|
2716
2518
|
{
|
|
2717
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2718
|
-
"description": "
|
|
2519
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
2520
|
+
"description": "Add a CORS origin for a specific project"
|
|
2719
2521
|
}
|
|
2720
2522
|
],
|
|
2721
2523
|
"flags": {
|
|
@@ -2725,7 +2527,7 @@
|
|
|
2725
2527
|
],
|
|
2726
2528
|
"char": "p",
|
|
2727
2529
|
"deprecateAliases": true,
|
|
2728
|
-
"description": "Project ID to
|
|
2530
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2729
2531
|
"helpGroup": "OVERRIDE",
|
|
2730
2532
|
"name": "project",
|
|
2731
2533
|
"hasDynamicHelp": false,
|
|
@@ -2733,31 +2535,229 @@
|
|
|
2733
2535
|
"multiple": false,
|
|
2734
2536
|
"type": "option"
|
|
2735
2537
|
},
|
|
2736
|
-
"
|
|
2737
|
-
"description": "
|
|
2738
|
-
"
|
|
2739
|
-
"list",
|
|
2740
|
-
"detach",
|
|
2741
|
-
"skip-history"
|
|
2742
|
-
],
|
|
2743
|
-
"name": "attach",
|
|
2538
|
+
"credentials": {
|
|
2539
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2540
|
+
"name": "credentials",
|
|
2744
2541
|
"required": false,
|
|
2745
|
-
"
|
|
2746
|
-
"
|
|
2747
|
-
"type": "option"
|
|
2542
|
+
"allowNo": true,
|
|
2543
|
+
"type": "boolean"
|
|
2748
2544
|
},
|
|
2749
|
-
"
|
|
2750
|
-
"
|
|
2751
|
-
"
|
|
2752
|
-
|
|
2753
|
-
"attach"
|
|
2754
|
-
],
|
|
2755
|
-
"name": "detach",
|
|
2756
|
-
"required": false,
|
|
2545
|
+
"yes": {
|
|
2546
|
+
"char": "y",
|
|
2547
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
2548
|
+
"name": "yes",
|
|
2757
2549
|
"allowNo": false,
|
|
2758
2550
|
"type": "boolean"
|
|
2759
|
-
}
|
|
2760
|
-
|
|
2551
|
+
}
|
|
2552
|
+
},
|
|
2553
|
+
"hasDynamicHelp": false,
|
|
2554
|
+
"hiddenAliases": [],
|
|
2555
|
+
"id": "cors:add",
|
|
2556
|
+
"pluginAlias": "@sanity/cli",
|
|
2557
|
+
"pluginName": "@sanity/cli",
|
|
2558
|
+
"pluginType": "core",
|
|
2559
|
+
"strict": true,
|
|
2560
|
+
"isESM": true,
|
|
2561
|
+
"relativePath": [
|
|
2562
|
+
"dist",
|
|
2563
|
+
"commands",
|
|
2564
|
+
"cors",
|
|
2565
|
+
"add.js"
|
|
2566
|
+
]
|
|
2567
|
+
},
|
|
2568
|
+
"cors:delete": {
|
|
2569
|
+
"aliases": [],
|
|
2570
|
+
"args": {
|
|
2571
|
+
"origin": {
|
|
2572
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
2573
|
+
"name": "origin",
|
|
2574
|
+
"required": false
|
|
2575
|
+
}
|
|
2576
|
+
},
|
|
2577
|
+
"description": "Delete a CORS origin from the project",
|
|
2578
|
+
"examples": [
|
|
2579
|
+
{
|
|
2580
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2581
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2582
|
+
},
|
|
2583
|
+
{
|
|
2584
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2585
|
+
"description": "Delete a specific CORS origin"
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2589
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2590
|
+
}
|
|
2591
|
+
],
|
|
2592
|
+
"flags": {
|
|
2593
|
+
"project": {
|
|
2594
|
+
"aliases": [
|
|
2595
|
+
"project-id"
|
|
2596
|
+
],
|
|
2597
|
+
"char": "p",
|
|
2598
|
+
"deprecateAliases": true,
|
|
2599
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2600
|
+
"helpGroup": "OVERRIDE",
|
|
2601
|
+
"name": "project",
|
|
2602
|
+
"hasDynamicHelp": false,
|
|
2603
|
+
"helpValue": "<id>",
|
|
2604
|
+
"multiple": false,
|
|
2605
|
+
"type": "option"
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
"hasDynamicHelp": false,
|
|
2609
|
+
"hiddenAliases": [],
|
|
2610
|
+
"id": "cors:delete",
|
|
2611
|
+
"pluginAlias": "@sanity/cli",
|
|
2612
|
+
"pluginName": "@sanity/cli",
|
|
2613
|
+
"pluginType": "core",
|
|
2614
|
+
"strict": true,
|
|
2615
|
+
"isESM": true,
|
|
2616
|
+
"relativePath": [
|
|
2617
|
+
"dist",
|
|
2618
|
+
"commands",
|
|
2619
|
+
"cors",
|
|
2620
|
+
"delete.js"
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2623
|
+
"cors:list": {
|
|
2624
|
+
"aliases": [],
|
|
2625
|
+
"args": {},
|
|
2626
|
+
"description": "List CORS origins for the project",
|
|
2627
|
+
"examples": [
|
|
2628
|
+
{
|
|
2629
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2630
|
+
"description": "List CORS origins for the project"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2634
|
+
"description": "List CORS origins for a specific project"
|
|
2635
|
+
}
|
|
2636
|
+
],
|
|
2637
|
+
"flags": {
|
|
2638
|
+
"project": {
|
|
2639
|
+
"aliases": [
|
|
2640
|
+
"project-id"
|
|
2641
|
+
],
|
|
2642
|
+
"char": "p",
|
|
2643
|
+
"deprecateAliases": true,
|
|
2644
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2645
|
+
"helpGroup": "OVERRIDE",
|
|
2646
|
+
"name": "project",
|
|
2647
|
+
"hasDynamicHelp": false,
|
|
2648
|
+
"helpValue": "<id>",
|
|
2649
|
+
"multiple": false,
|
|
2650
|
+
"type": "option"
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
"hasDynamicHelp": false,
|
|
2654
|
+
"hiddenAliases": [],
|
|
2655
|
+
"id": "cors:list",
|
|
2656
|
+
"pluginAlias": "@sanity/cli",
|
|
2657
|
+
"pluginName": "@sanity/cli",
|
|
2658
|
+
"pluginType": "core",
|
|
2659
|
+
"strict": true,
|
|
2660
|
+
"isESM": true,
|
|
2661
|
+
"relativePath": [
|
|
2662
|
+
"dist",
|
|
2663
|
+
"commands",
|
|
2664
|
+
"cors",
|
|
2665
|
+
"list.js"
|
|
2666
|
+
]
|
|
2667
|
+
},
|
|
2668
|
+
"datasets:copy": {
|
|
2669
|
+
"aliases": [],
|
|
2670
|
+
"args": {
|
|
2671
|
+
"source": {
|
|
2672
|
+
"description": "Name of the dataset to copy from",
|
|
2673
|
+
"name": "source",
|
|
2674
|
+
"required": false
|
|
2675
|
+
},
|
|
2676
|
+
"target": {
|
|
2677
|
+
"description": "Name of the dataset to copy to",
|
|
2678
|
+
"name": "target",
|
|
2679
|
+
"required": false
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2683
|
+
"examples": [
|
|
2684
|
+
{
|
|
2685
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2686
|
+
"description": "Interactively copy a dataset"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2690
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2694
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2698
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2702
|
+
"description": "Copy without content release documents"
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2706
|
+
"description": "Start copy job without waiting for completion"
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2710
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2714
|
+
"description": "List all dataset copy jobs"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2718
|
+
"description": "List copy jobs with pagination"
|
|
2719
|
+
}
|
|
2720
|
+
],
|
|
2721
|
+
"flags": {
|
|
2722
|
+
"project": {
|
|
2723
|
+
"aliases": [
|
|
2724
|
+
"project-id"
|
|
2725
|
+
],
|
|
2726
|
+
"char": "p",
|
|
2727
|
+
"deprecateAliases": true,
|
|
2728
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2729
|
+
"helpGroup": "OVERRIDE",
|
|
2730
|
+
"name": "project",
|
|
2731
|
+
"hasDynamicHelp": false,
|
|
2732
|
+
"helpValue": "<id>",
|
|
2733
|
+
"multiple": false,
|
|
2734
|
+
"type": "option"
|
|
2735
|
+
},
|
|
2736
|
+
"attach": {
|
|
2737
|
+
"description": "Attach to the running copy process to show progress",
|
|
2738
|
+
"exclusive": [
|
|
2739
|
+
"list",
|
|
2740
|
+
"detach",
|
|
2741
|
+
"skip-history"
|
|
2742
|
+
],
|
|
2743
|
+
"name": "attach",
|
|
2744
|
+
"required": false,
|
|
2745
|
+
"hasDynamicHelp": false,
|
|
2746
|
+
"multiple": false,
|
|
2747
|
+
"type": "option"
|
|
2748
|
+
},
|
|
2749
|
+
"detach": {
|
|
2750
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2751
|
+
"exclusive": [
|
|
2752
|
+
"list",
|
|
2753
|
+
"attach"
|
|
2754
|
+
],
|
|
2755
|
+
"name": "detach",
|
|
2756
|
+
"required": false,
|
|
2757
|
+
"allowNo": false,
|
|
2758
|
+
"type": "boolean"
|
|
2759
|
+
},
|
|
2760
|
+
"limit": {
|
|
2761
2761
|
"dependsOn": [
|
|
2762
2762
|
"list"
|
|
2763
2763
|
],
|
|
@@ -3321,31 +3321,155 @@
|
|
|
3321
3321
|
"list.js"
|
|
3322
3322
|
]
|
|
3323
3323
|
},
|
|
3324
|
-
"
|
|
3324
|
+
"docs:browse": {
|
|
3325
|
+
"aliases": [],
|
|
3326
|
+
"args": {},
|
|
3327
|
+
"description": "Open Sanity docs in your browser",
|
|
3328
|
+
"flags": {},
|
|
3329
|
+
"hasDynamicHelp": false,
|
|
3330
|
+
"hiddenAliases": [],
|
|
3331
|
+
"id": "docs:browse",
|
|
3332
|
+
"pluginAlias": "@sanity/cli",
|
|
3333
|
+
"pluginName": "@sanity/cli",
|
|
3334
|
+
"pluginType": "core",
|
|
3335
|
+
"strict": true,
|
|
3336
|
+
"enableJsonFlag": false,
|
|
3337
|
+
"isESM": true,
|
|
3338
|
+
"relativePath": [
|
|
3339
|
+
"dist",
|
|
3340
|
+
"commands",
|
|
3341
|
+
"docs",
|
|
3342
|
+
"browse.js"
|
|
3343
|
+
]
|
|
3344
|
+
},
|
|
3345
|
+
"docs:read": {
|
|
3325
3346
|
"aliases": [],
|
|
3326
3347
|
"args": {
|
|
3327
|
-
"
|
|
3328
|
-
"description": "
|
|
3329
|
-
"name": "
|
|
3330
|
-
"required":
|
|
3348
|
+
"path": {
|
|
3349
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3350
|
+
"name": "path",
|
|
3351
|
+
"required": true
|
|
3331
3352
|
}
|
|
3332
3353
|
},
|
|
3333
|
-
"description": "
|
|
3354
|
+
"description": "Read an article in terminal",
|
|
3334
3355
|
"examples": [
|
|
3335
3356
|
{
|
|
3336
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3337
|
-
"description": "
|
|
3357
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
3358
|
+
"description": "Read as markdown in terminal"
|
|
3338
3359
|
},
|
|
3339
3360
|
{
|
|
3340
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3341
|
-
"description": "
|
|
3361
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3362
|
+
"description": "Read using full URL"
|
|
3342
3363
|
},
|
|
3343
3364
|
{
|
|
3344
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3345
|
-
"description": "
|
|
3365
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3366
|
+
"description": "Open in web browser"
|
|
3346
3367
|
},
|
|
3347
3368
|
{
|
|
3348
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3369
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3370
|
+
"description": "Open using full URL in web browser"
|
|
3371
|
+
}
|
|
3372
|
+
],
|
|
3373
|
+
"flags": {
|
|
3374
|
+
"web": {
|
|
3375
|
+
"aliases": [
|
|
3376
|
+
"w"
|
|
3377
|
+
],
|
|
3378
|
+
"description": "Open in a web browser",
|
|
3379
|
+
"name": "web",
|
|
3380
|
+
"allowNo": false,
|
|
3381
|
+
"type": "boolean"
|
|
3382
|
+
}
|
|
3383
|
+
},
|
|
3384
|
+
"hasDynamicHelp": false,
|
|
3385
|
+
"hiddenAliases": [],
|
|
3386
|
+
"id": "docs:read",
|
|
3387
|
+
"pluginAlias": "@sanity/cli",
|
|
3388
|
+
"pluginName": "@sanity/cli",
|
|
3389
|
+
"pluginType": "core",
|
|
3390
|
+
"strict": true,
|
|
3391
|
+
"isESM": true,
|
|
3392
|
+
"relativePath": [
|
|
3393
|
+
"dist",
|
|
3394
|
+
"commands",
|
|
3395
|
+
"docs",
|
|
3396
|
+
"read.js"
|
|
3397
|
+
]
|
|
3398
|
+
},
|
|
3399
|
+
"docs:search": {
|
|
3400
|
+
"aliases": [],
|
|
3401
|
+
"args": {
|
|
3402
|
+
"query": {
|
|
3403
|
+
"description": "Search query for documentation",
|
|
3404
|
+
"name": "query",
|
|
3405
|
+
"required": true
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
"description": "Search Sanity docs",
|
|
3409
|
+
"examples": [
|
|
3410
|
+
{
|
|
3411
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3412
|
+
"description": "Search for documentation about schemas"
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3416
|
+
"description": "Search with phrase"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3420
|
+
"description": "Limit search results"
|
|
3421
|
+
}
|
|
3422
|
+
],
|
|
3423
|
+
"flags": {
|
|
3424
|
+
"limit": {
|
|
3425
|
+
"description": "Maximum number of results to return",
|
|
3426
|
+
"name": "limit",
|
|
3427
|
+
"default": 10,
|
|
3428
|
+
"hasDynamicHelp": false,
|
|
3429
|
+
"multiple": false,
|
|
3430
|
+
"type": "option"
|
|
3431
|
+
}
|
|
3432
|
+
},
|
|
3433
|
+
"hasDynamicHelp": false,
|
|
3434
|
+
"hiddenAliases": [],
|
|
3435
|
+
"id": "docs:search",
|
|
3436
|
+
"pluginAlias": "@sanity/cli",
|
|
3437
|
+
"pluginName": "@sanity/cli",
|
|
3438
|
+
"pluginType": "core",
|
|
3439
|
+
"strict": true,
|
|
3440
|
+
"isESM": true,
|
|
3441
|
+
"relativePath": [
|
|
3442
|
+
"dist",
|
|
3443
|
+
"commands",
|
|
3444
|
+
"docs",
|
|
3445
|
+
"search.js"
|
|
3446
|
+
]
|
|
3447
|
+
},
|
|
3448
|
+
"documents:create": {
|
|
3449
|
+
"aliases": [],
|
|
3450
|
+
"args": {
|
|
3451
|
+
"file": {
|
|
3452
|
+
"description": "JSON file to create document(s) from",
|
|
3453
|
+
"name": "file",
|
|
3454
|
+
"required": false
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
"description": "Create one or more documents",
|
|
3458
|
+
"examples": [
|
|
3459
|
+
{
|
|
3460
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3461
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3465
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3469
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
3349
3473
|
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
3350
3474
|
},
|
|
3351
3475
|
{
|
|
@@ -3813,130 +3937,6 @@
|
|
|
3813
3937
|
"validate.js"
|
|
3814
3938
|
]
|
|
3815
3939
|
},
|
|
3816
|
-
"docs:browse": {
|
|
3817
|
-
"aliases": [],
|
|
3818
|
-
"args": {},
|
|
3819
|
-
"description": "Open Sanity docs in your browser",
|
|
3820
|
-
"flags": {},
|
|
3821
|
-
"hasDynamicHelp": false,
|
|
3822
|
-
"hiddenAliases": [],
|
|
3823
|
-
"id": "docs:browse",
|
|
3824
|
-
"pluginAlias": "@sanity/cli",
|
|
3825
|
-
"pluginName": "@sanity/cli",
|
|
3826
|
-
"pluginType": "core",
|
|
3827
|
-
"strict": true,
|
|
3828
|
-
"enableJsonFlag": false,
|
|
3829
|
-
"isESM": true,
|
|
3830
|
-
"relativePath": [
|
|
3831
|
-
"dist",
|
|
3832
|
-
"commands",
|
|
3833
|
-
"docs",
|
|
3834
|
-
"browse.js"
|
|
3835
|
-
]
|
|
3836
|
-
},
|
|
3837
|
-
"docs:read": {
|
|
3838
|
-
"aliases": [],
|
|
3839
|
-
"args": {
|
|
3840
|
-
"path": {
|
|
3841
|
-
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3842
|
-
"name": "path",
|
|
3843
|
-
"required": true
|
|
3844
|
-
}
|
|
3845
|
-
},
|
|
3846
|
-
"description": "Read an article in terminal",
|
|
3847
|
-
"examples": [
|
|
3848
|
-
{
|
|
3849
|
-
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
3850
|
-
"description": "Read as markdown in terminal"
|
|
3851
|
-
},
|
|
3852
|
-
{
|
|
3853
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3854
|
-
"description": "Read using full URL"
|
|
3855
|
-
},
|
|
3856
|
-
{
|
|
3857
|
-
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3858
|
-
"description": "Open in web browser"
|
|
3859
|
-
},
|
|
3860
|
-
{
|
|
3861
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3862
|
-
"description": "Open using full URL in web browser"
|
|
3863
|
-
}
|
|
3864
|
-
],
|
|
3865
|
-
"flags": {
|
|
3866
|
-
"web": {
|
|
3867
|
-
"aliases": [
|
|
3868
|
-
"w"
|
|
3869
|
-
],
|
|
3870
|
-
"description": "Open in a web browser",
|
|
3871
|
-
"name": "web",
|
|
3872
|
-
"allowNo": false,
|
|
3873
|
-
"type": "boolean"
|
|
3874
|
-
}
|
|
3875
|
-
},
|
|
3876
|
-
"hasDynamicHelp": false,
|
|
3877
|
-
"hiddenAliases": [],
|
|
3878
|
-
"id": "docs:read",
|
|
3879
|
-
"pluginAlias": "@sanity/cli",
|
|
3880
|
-
"pluginName": "@sanity/cli",
|
|
3881
|
-
"pluginType": "core",
|
|
3882
|
-
"strict": true,
|
|
3883
|
-
"isESM": true,
|
|
3884
|
-
"relativePath": [
|
|
3885
|
-
"dist",
|
|
3886
|
-
"commands",
|
|
3887
|
-
"docs",
|
|
3888
|
-
"read.js"
|
|
3889
|
-
]
|
|
3890
|
-
},
|
|
3891
|
-
"docs:search": {
|
|
3892
|
-
"aliases": [],
|
|
3893
|
-
"args": {
|
|
3894
|
-
"query": {
|
|
3895
|
-
"description": "Search query for documentation",
|
|
3896
|
-
"name": "query",
|
|
3897
|
-
"required": true
|
|
3898
|
-
}
|
|
3899
|
-
},
|
|
3900
|
-
"description": "Search Sanity docs",
|
|
3901
|
-
"examples": [
|
|
3902
|
-
{
|
|
3903
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3904
|
-
"description": "Search for documentation about schemas"
|
|
3905
|
-
},
|
|
3906
|
-
{
|
|
3907
|
-
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3908
|
-
"description": "Search with phrase"
|
|
3909
|
-
},
|
|
3910
|
-
{
|
|
3911
|
-
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3912
|
-
"description": "Limit search results"
|
|
3913
|
-
}
|
|
3914
|
-
],
|
|
3915
|
-
"flags": {
|
|
3916
|
-
"limit": {
|
|
3917
|
-
"description": "Maximum number of results to return",
|
|
3918
|
-
"name": "limit",
|
|
3919
|
-
"default": 10,
|
|
3920
|
-
"hasDynamicHelp": false,
|
|
3921
|
-
"multiple": false,
|
|
3922
|
-
"type": "option"
|
|
3923
|
-
}
|
|
3924
|
-
},
|
|
3925
|
-
"hasDynamicHelp": false,
|
|
3926
|
-
"hiddenAliases": [],
|
|
3927
|
-
"id": "docs:search",
|
|
3928
|
-
"pluginAlias": "@sanity/cli",
|
|
3929
|
-
"pluginName": "@sanity/cli",
|
|
3930
|
-
"pluginType": "core",
|
|
3931
|
-
"strict": true,
|
|
3932
|
-
"isESM": true,
|
|
3933
|
-
"relativePath": [
|
|
3934
|
-
"dist",
|
|
3935
|
-
"commands",
|
|
3936
|
-
"docs",
|
|
3937
|
-
"search.js"
|
|
3938
|
-
]
|
|
3939
|
-
},
|
|
3940
3940
|
"graphql:deploy": {
|
|
3941
3941
|
"aliases": [],
|
|
3942
3942
|
"args": {},
|
|
@@ -5329,6 +5329,10 @@
|
|
|
5329
5329
|
{
|
|
5330
5330
|
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
5331
5331
|
"description": "Create an organization with a default member role"
|
|
5332
|
+
},
|
|
5333
|
+
{
|
|
5334
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --logo ./logo.png",
|
|
5335
|
+
"description": "Create an organization with a logo"
|
|
5332
5336
|
}
|
|
5333
5337
|
],
|
|
5334
5338
|
"flags": {
|
|
@@ -5340,6 +5344,15 @@
|
|
|
5340
5344
|
"multiple": false,
|
|
5341
5345
|
"type": "option"
|
|
5342
5346
|
},
|
|
5347
|
+
"logo": {
|
|
5348
|
+
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB",
|
|
5349
|
+
"name": "logo",
|
|
5350
|
+
"required": false,
|
|
5351
|
+
"hasDynamicHelp": false,
|
|
5352
|
+
"helpValue": "<path>",
|
|
5353
|
+
"multiple": false,
|
|
5354
|
+
"type": "option"
|
|
5355
|
+
},
|
|
5343
5356
|
"name": {
|
|
5344
5357
|
"description": "Organization name",
|
|
5345
5358
|
"name": "name",
|
|
@@ -5363,6 +5376,12 @@
|
|
|
5363
5376
|
"strict": true,
|
|
5364
5377
|
"telemetry": {
|
|
5365
5378
|
"redactedFlags": [
|
|
5379
|
+
{
|
|
5380
|
+
"canonical": "--logo",
|
|
5381
|
+
"flags": [
|
|
5382
|
+
"--logo"
|
|
5383
|
+
]
|
|
5384
|
+
},
|
|
5366
5385
|
{
|
|
5367
5386
|
"canonical": "--name",
|
|
5368
5387
|
"flags": [
|
|
@@ -5521,6 +5540,14 @@
|
|
|
5521
5540
|
{
|
|
5522
5541
|
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
5523
5542
|
"description": "Change the default member role"
|
|
5543
|
+
},
|
|
5544
|
+
{
|
|
5545
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --logo ./logo.png",
|
|
5546
|
+
"description": "Set or replace the organization logo"
|
|
5547
|
+
},
|
|
5548
|
+
{
|
|
5549
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --logo \"\"",
|
|
5550
|
+
"description": "Remove the organization logo"
|
|
5524
5551
|
}
|
|
5525
5552
|
],
|
|
5526
5553
|
"flags": {
|
|
@@ -5532,6 +5559,15 @@
|
|
|
5532
5559
|
"multiple": false,
|
|
5533
5560
|
"type": "option"
|
|
5534
5561
|
},
|
|
5562
|
+
"logo": {
|
|
5563
|
+
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB (\"\" removes it)",
|
|
5564
|
+
"name": "logo",
|
|
5565
|
+
"required": false,
|
|
5566
|
+
"hasDynamicHelp": false,
|
|
5567
|
+
"helpValue": "<path>",
|
|
5568
|
+
"multiple": false,
|
|
5569
|
+
"type": "option"
|
|
5570
|
+
},
|
|
5535
5571
|
"name": {
|
|
5536
5572
|
"description": "New organization name",
|
|
5537
5573
|
"name": "name",
|
|
@@ -5564,6 +5600,12 @@
|
|
|
5564
5600
|
"strict": true,
|
|
5565
5601
|
"telemetry": {
|
|
5566
5602
|
"redactedFlags": [
|
|
5603
|
+
{
|
|
5604
|
+
"canonical": "--logo",
|
|
5605
|
+
"flags": [
|
|
5606
|
+
"--logo"
|
|
5607
|
+
]
|
|
5608
|
+
},
|
|
5567
5609
|
{
|
|
5568
5610
|
"canonical": "--name",
|
|
5569
5611
|
"flags": [
|
|
@@ -6915,413 +6957,7 @@
|
|
|
6915
6957
|
"list.js"
|
|
6916
6958
|
]
|
|
6917
6959
|
},
|
|
6918
|
-
"context:
|
|
6919
|
-
"aliases": [],
|
|
6920
|
-
"args": {
|
|
6921
|
-
"knowledgeBaseId": {
|
|
6922
|
-
"description": "Knowledge base ID",
|
|
6923
|
-
"name": "knowledgeBaseId",
|
|
6924
|
-
"required": true
|
|
6925
|
-
},
|
|
6926
|
-
"path": {
|
|
6927
|
-
"description": "Entry path, as listed by `sanity context entries list`",
|
|
6928
|
-
"name": "path",
|
|
6929
|
-
"required": true
|
|
6930
|
-
}
|
|
6931
|
-
},
|
|
6932
|
-
"description": "Get an entry and its content",
|
|
6933
|
-
"examples": [
|
|
6934
|
-
{
|
|
6935
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
6936
|
-
"description": "Print an entry and its content"
|
|
6937
|
-
},
|
|
6938
|
-
{
|
|
6939
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
6940
|
-
"description": "Output the entry, including citations, as JSON"
|
|
6941
|
-
}
|
|
6942
|
-
],
|
|
6943
|
-
"flags": {
|
|
6944
|
-
"json": {
|
|
6945
|
-
"description": "Format output as json.",
|
|
6946
|
-
"helpGroup": "GLOBAL",
|
|
6947
|
-
"name": "json",
|
|
6948
|
-
"allowNo": false,
|
|
6949
|
-
"type": "boolean"
|
|
6950
|
-
}
|
|
6951
|
-
},
|
|
6952
|
-
"hasDynamicHelp": false,
|
|
6953
|
-
"hiddenAliases": [],
|
|
6954
|
-
"id": "context:entries:get",
|
|
6955
|
-
"pluginAlias": "@sanity/cli",
|
|
6956
|
-
"pluginName": "@sanity/cli",
|
|
6957
|
-
"pluginType": "core",
|
|
6958
|
-
"strict": true,
|
|
6959
|
-
"enableJsonFlag": true,
|
|
6960
|
-
"isESM": true,
|
|
6961
|
-
"relativePath": [
|
|
6962
|
-
"dist",
|
|
6963
|
-
"commands",
|
|
6964
|
-
"context",
|
|
6965
|
-
"entries",
|
|
6966
|
-
"get.js"
|
|
6967
|
-
]
|
|
6968
|
-
},
|
|
6969
|
-
"context:entries:list": {
|
|
6970
|
-
"aliases": [],
|
|
6971
|
-
"args": {
|
|
6972
|
-
"knowledgeBaseId": {
|
|
6973
|
-
"description": "Knowledge base ID",
|
|
6974
|
-
"name": "knowledgeBaseId",
|
|
6975
|
-
"required": true
|
|
6976
|
-
}
|
|
6977
|
-
},
|
|
6978
|
-
"description": "List the entries a knowledge base build produced",
|
|
6979
|
-
"examples": [
|
|
6980
|
-
{
|
|
6981
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
6982
|
-
"description": "List all entries for a knowledge base"
|
|
6983
|
-
},
|
|
6984
|
-
{
|
|
6985
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
6986
|
-
"description": "Output entries as JSON"
|
|
6987
|
-
}
|
|
6988
|
-
],
|
|
6989
|
-
"flags": {
|
|
6990
|
-
"json": {
|
|
6991
|
-
"description": "Format output as json.",
|
|
6992
|
-
"helpGroup": "GLOBAL",
|
|
6993
|
-
"name": "json",
|
|
6994
|
-
"allowNo": false,
|
|
6995
|
-
"type": "boolean"
|
|
6996
|
-
}
|
|
6997
|
-
},
|
|
6998
|
-
"hasDynamicHelp": false,
|
|
6999
|
-
"hiddenAliases": [],
|
|
7000
|
-
"id": "context:entries:list",
|
|
7001
|
-
"pluginAlias": "@sanity/cli",
|
|
7002
|
-
"pluginName": "@sanity/cli",
|
|
7003
|
-
"pluginType": "core",
|
|
7004
|
-
"strict": true,
|
|
7005
|
-
"enableJsonFlag": true,
|
|
7006
|
-
"isESM": true,
|
|
7007
|
-
"relativePath": [
|
|
7008
|
-
"dist",
|
|
7009
|
-
"commands",
|
|
7010
|
-
"context",
|
|
7011
|
-
"entries",
|
|
7012
|
-
"list.js"
|
|
7013
|
-
]
|
|
7014
|
-
},
|
|
7015
|
-
"context:entries:rebuild": {
|
|
7016
|
-
"aliases": [],
|
|
7017
|
-
"args": {
|
|
7018
|
-
"knowledgeBaseId": {
|
|
7019
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7020
|
-
"name": "knowledgeBaseId",
|
|
7021
|
-
"required": true
|
|
7022
|
-
},
|
|
7023
|
-
"entryPath": {
|
|
7024
|
-
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
7025
|
-
"name": "entryPath",
|
|
7026
|
-
"required": true
|
|
7027
|
-
}
|
|
7028
|
-
},
|
|
7029
|
-
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
7030
|
-
"examples": [
|
|
7031
|
-
{
|
|
7032
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
7033
|
-
"description": "Rebuild an entry from its sources"
|
|
7034
|
-
},
|
|
7035
|
-
{
|
|
7036
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
7037
|
-
"description": "Rebuild an entry from its sources, as JSON"
|
|
7038
|
-
}
|
|
7039
|
-
],
|
|
7040
|
-
"flags": {
|
|
7041
|
-
"json": {
|
|
7042
|
-
"description": "Format output as json.",
|
|
7043
|
-
"helpGroup": "GLOBAL",
|
|
7044
|
-
"name": "json",
|
|
7045
|
-
"allowNo": false,
|
|
7046
|
-
"type": "boolean"
|
|
7047
|
-
},
|
|
7048
|
-
"watch": {
|
|
7049
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7050
|
-
"name": "watch",
|
|
7051
|
-
"allowNo": false,
|
|
7052
|
-
"type": "boolean"
|
|
7053
|
-
}
|
|
7054
|
-
},
|
|
7055
|
-
"hasDynamicHelp": false,
|
|
7056
|
-
"hiddenAliases": [],
|
|
7057
|
-
"id": "context:entries:rebuild",
|
|
7058
|
-
"pluginAlias": "@sanity/cli",
|
|
7059
|
-
"pluginName": "@sanity/cli",
|
|
7060
|
-
"pluginType": "core",
|
|
7061
|
-
"strict": true,
|
|
7062
|
-
"summary": "Rebuild an entry from its sources",
|
|
7063
|
-
"enableJsonFlag": true,
|
|
7064
|
-
"telemetry": {
|
|
7065
|
-
"redactedFlags": []
|
|
7066
|
-
},
|
|
7067
|
-
"isESM": true,
|
|
7068
|
-
"relativePath": [
|
|
7069
|
-
"dist",
|
|
7070
|
-
"commands",
|
|
7071
|
-
"context",
|
|
7072
|
-
"entries",
|
|
7073
|
-
"rebuild.js"
|
|
7074
|
-
]
|
|
7075
|
-
},
|
|
7076
|
-
"context:instructions:create": {
|
|
7077
|
-
"aliases": [],
|
|
7078
|
-
"args": {
|
|
7079
|
-
"knowledgeBaseId": {
|
|
7080
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7081
|
-
"name": "knowledgeBaseId",
|
|
7082
|
-
"required": true
|
|
7083
|
-
}
|
|
7084
|
-
},
|
|
7085
|
-
"description": "Creates a standing instruction for how entries built from its documents are written. Every instruction applies to specific documents, set in `scopeDocumentIds`. To rebuild entries under the new instruction right away, pass their paths in `rebuildPaths`. The response includes the rebuild job ID, or `null` if the rebuild could not start. The instruction is saved either way. After the instruction is saved, a background check files issues for entries that contradict it. If you already checked the instruction for contradictions, set `verified` to skip the background check. If the requested rebuild does not start, the background check runs even when `verified` is set.",
|
|
7086
|
-
"examples": [
|
|
7087
|
-
{
|
|
7088
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7089
|
-
"description": "Create an instruction"
|
|
7090
|
-
},
|
|
7091
|
-
{
|
|
7092
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7093
|
-
"description": "Create an instruction, as JSON"
|
|
7094
|
-
}
|
|
7095
|
-
],
|
|
7096
|
-
"flags": {
|
|
7097
|
-
"json": {
|
|
7098
|
-
"description": "Format output as json.",
|
|
7099
|
-
"helpGroup": "GLOBAL",
|
|
7100
|
-
"name": "json",
|
|
7101
|
-
"allowNo": false,
|
|
7102
|
-
"type": "boolean"
|
|
7103
|
-
},
|
|
7104
|
-
"statement": {
|
|
7105
|
-
"description": "The instruction in plain language. Builds follow it over what the sources say.",
|
|
7106
|
-
"name": "statement",
|
|
7107
|
-
"required": true,
|
|
7108
|
-
"hasDynamicHelp": false,
|
|
7109
|
-
"multiple": false,
|
|
7110
|
-
"type": "option"
|
|
7111
|
-
},
|
|
7112
|
-
"scope-document-ids": {
|
|
7113
|
-
"description": "IDs of the documents the instruction applies to. Builds apply it when they write entries built from these documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7114
|
-
"name": "scope-document-ids",
|
|
7115
|
-
"required": true,
|
|
7116
|
-
"hasDynamicHelp": false,
|
|
7117
|
-
"multiple": true,
|
|
7118
|
-
"type": "option"
|
|
7119
|
-
},
|
|
7120
|
-
"rebuild-paths": {
|
|
7121
|
-
"description": "Paths of entries to rebuild under the new instruction right away. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7122
|
-
"name": "rebuild-paths",
|
|
7123
|
-
"hasDynamicHelp": false,
|
|
7124
|
-
"multiple": true,
|
|
7125
|
-
"type": "option"
|
|
7126
|
-
},
|
|
7127
|
-
"verified": {
|
|
7128
|
-
"description": "Whether you already checked the instruction for entries that contradict it. When `true`, the background check that files issues for those entries is skipped. It still runs if the rebuild you requested in `rebuildPaths` does not start.",
|
|
7129
|
-
"name": "verified",
|
|
7130
|
-
"allowNo": true,
|
|
7131
|
-
"type": "boolean"
|
|
7132
|
-
}
|
|
7133
|
-
},
|
|
7134
|
-
"hasDynamicHelp": false,
|
|
7135
|
-
"hiddenAliases": [],
|
|
7136
|
-
"id": "context:instructions:create",
|
|
7137
|
-
"pluginAlias": "@sanity/cli",
|
|
7138
|
-
"pluginName": "@sanity/cli",
|
|
7139
|
-
"pluginType": "core",
|
|
7140
|
-
"strict": true,
|
|
7141
|
-
"summary": "Create an instruction",
|
|
7142
|
-
"enableJsonFlag": true,
|
|
7143
|
-
"telemetry": {
|
|
7144
|
-
"redactedFlags": [
|
|
7145
|
-
{
|
|
7146
|
-
"canonical": "--statement",
|
|
7147
|
-
"flags": [
|
|
7148
|
-
"--statement"
|
|
7149
|
-
]
|
|
7150
|
-
},
|
|
7151
|
-
{
|
|
7152
|
-
"canonical": "--scope-document-ids",
|
|
7153
|
-
"flags": [
|
|
7154
|
-
"--scope-document-ids"
|
|
7155
|
-
]
|
|
7156
|
-
},
|
|
7157
|
-
{
|
|
7158
|
-
"canonical": "--rebuild-paths",
|
|
7159
|
-
"flags": [
|
|
7160
|
-
"--rebuild-paths"
|
|
7161
|
-
]
|
|
7162
|
-
}
|
|
7163
|
-
]
|
|
7164
|
-
},
|
|
7165
|
-
"isESM": true,
|
|
7166
|
-
"relativePath": [
|
|
7167
|
-
"dist",
|
|
7168
|
-
"commands",
|
|
7169
|
-
"context",
|
|
7170
|
-
"instructions",
|
|
7171
|
-
"create.js"
|
|
7172
|
-
]
|
|
7173
|
-
},
|
|
7174
|
-
"context:instructions:delete": {
|
|
7175
|
-
"aliases": [],
|
|
7176
|
-
"args": {
|
|
7177
|
-
"knowledgeBaseId": {
|
|
7178
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7179
|
-
"name": "knowledgeBaseId",
|
|
7180
|
-
"required": true
|
|
7181
|
-
},
|
|
7182
|
-
"instructionId": {
|
|
7183
|
-
"description": "The instruction's ID.",
|
|
7184
|
-
"name": "instructionId",
|
|
7185
|
-
"required": true
|
|
7186
|
-
}
|
|
7187
|
-
},
|
|
7188
|
-
"description": "Deletes the instruction. Builds stop applying it from the next run. Entries already written under it keep their text until they are rebuilt; pass `rebuild=true` to rebuild every entry built from its documents right away.",
|
|
7189
|
-
"examples": [
|
|
7190
|
-
{
|
|
7191
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7192
|
-
"description": "Delete an instruction"
|
|
7193
|
-
},
|
|
7194
|
-
{
|
|
7195
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7196
|
-
"description": "Delete an instruction, as JSON"
|
|
7197
|
-
}
|
|
7198
|
-
],
|
|
7199
|
-
"flags": {
|
|
7200
|
-
"json": {
|
|
7201
|
-
"description": "Format output as json.",
|
|
7202
|
-
"helpGroup": "GLOBAL",
|
|
7203
|
-
"name": "json",
|
|
7204
|
-
"allowNo": false,
|
|
7205
|
-
"type": "boolean"
|
|
7206
|
-
},
|
|
7207
|
-
"rebuild": {
|
|
7208
|
-
"description": "Set to `true` to rebuild every entry built from the instruction's documents once it is deleted, so pages written under the instruction reflect their documents again. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7209
|
-
"name": "rebuild",
|
|
7210
|
-
"allowNo": true,
|
|
7211
|
-
"type": "boolean"
|
|
7212
|
-
},
|
|
7213
|
-
"yes": {
|
|
7214
|
-
"char": "y",
|
|
7215
|
-
"description": "Skip confirmation prompt (unattended mode)",
|
|
7216
|
-
"name": "yes",
|
|
7217
|
-
"allowNo": false,
|
|
7218
|
-
"type": "boolean"
|
|
7219
|
-
}
|
|
7220
|
-
},
|
|
7221
|
-
"hasDynamicHelp": false,
|
|
7222
|
-
"hiddenAliases": [],
|
|
7223
|
-
"id": "context:instructions:delete",
|
|
7224
|
-
"pluginAlias": "@sanity/cli",
|
|
7225
|
-
"pluginName": "@sanity/cli",
|
|
7226
|
-
"pluginType": "core",
|
|
7227
|
-
"strict": true,
|
|
7228
|
-
"summary": "Delete an instruction",
|
|
7229
|
-
"enableJsonFlag": true,
|
|
7230
|
-
"telemetry": {
|
|
7231
|
-
"redactedFlags": []
|
|
7232
|
-
},
|
|
7233
|
-
"isESM": true,
|
|
7234
|
-
"relativePath": [
|
|
7235
|
-
"dist",
|
|
7236
|
-
"commands",
|
|
7237
|
-
"context",
|
|
7238
|
-
"instructions",
|
|
7239
|
-
"delete.js"
|
|
7240
|
-
]
|
|
7241
|
-
},
|
|
7242
|
-
"context:instructions:edit": {
|
|
7243
|
-
"aliases": [],
|
|
7244
|
-
"args": {
|
|
7245
|
-
"knowledgeBaseId": {
|
|
7246
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7247
|
-
"name": "knowledgeBaseId",
|
|
7248
|
-
"required": true
|
|
7249
|
-
},
|
|
7250
|
-
"instructionId": {
|
|
7251
|
-
"description": "The instruction's ID.",
|
|
7252
|
-
"name": "instructionId",
|
|
7253
|
-
"required": true
|
|
7254
|
-
}
|
|
7255
|
-
},
|
|
7256
|
-
"description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
|
|
7257
|
-
"examples": [
|
|
7258
|
-
{
|
|
7259
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7260
|
-
"description": "Update an instruction"
|
|
7261
|
-
},
|
|
7262
|
-
{
|
|
7263
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7264
|
-
"description": "Update an instruction, as JSON"
|
|
7265
|
-
}
|
|
7266
|
-
],
|
|
7267
|
-
"flags": {
|
|
7268
|
-
"json": {
|
|
7269
|
-
"description": "Format output as json.",
|
|
7270
|
-
"helpGroup": "GLOBAL",
|
|
7271
|
-
"name": "json",
|
|
7272
|
-
"allowNo": false,
|
|
7273
|
-
"type": "boolean"
|
|
7274
|
-
},
|
|
7275
|
-
"statement": {
|
|
7276
|
-
"description": "The new instruction text. Omit it to keep the current text.",
|
|
7277
|
-
"name": "statement",
|
|
7278
|
-
"hasDynamicHelp": false,
|
|
7279
|
-
"multiple": false,
|
|
7280
|
-
"type": "option"
|
|
7281
|
-
},
|
|
7282
|
-
"scope-document-ids": {
|
|
7283
|
-
"description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7284
|
-
"name": "scope-document-ids",
|
|
7285
|
-
"hasDynamicHelp": false,
|
|
7286
|
-
"multiple": true,
|
|
7287
|
-
"type": "option"
|
|
7288
|
-
}
|
|
7289
|
-
},
|
|
7290
|
-
"hasDynamicHelp": false,
|
|
7291
|
-
"hiddenAliases": [],
|
|
7292
|
-
"id": "context:instructions:edit",
|
|
7293
|
-
"pluginAlias": "@sanity/cli",
|
|
7294
|
-
"pluginName": "@sanity/cli",
|
|
7295
|
-
"pluginType": "core",
|
|
7296
|
-
"strict": true,
|
|
7297
|
-
"summary": "Update an instruction",
|
|
7298
|
-
"enableJsonFlag": true,
|
|
7299
|
-
"telemetry": {
|
|
7300
|
-
"redactedFlags": [
|
|
7301
|
-
{
|
|
7302
|
-
"canonical": "--statement",
|
|
7303
|
-
"flags": [
|
|
7304
|
-
"--statement"
|
|
7305
|
-
]
|
|
7306
|
-
},
|
|
7307
|
-
{
|
|
7308
|
-
"canonical": "--scope-document-ids",
|
|
7309
|
-
"flags": [
|
|
7310
|
-
"--scope-document-ids"
|
|
7311
|
-
]
|
|
7312
|
-
}
|
|
7313
|
-
]
|
|
7314
|
-
},
|
|
7315
|
-
"isESM": true,
|
|
7316
|
-
"relativePath": [
|
|
7317
|
-
"dist",
|
|
7318
|
-
"commands",
|
|
7319
|
-
"context",
|
|
7320
|
-
"instructions",
|
|
7321
|
-
"edit.js"
|
|
7322
|
-
]
|
|
7323
|
-
},
|
|
7324
|
-
"context:documents:content": {
|
|
6960
|
+
"context:documents:content": {
|
|
7325
6961
|
"aliases": [],
|
|
7326
6962
|
"args": {
|
|
7327
6963
|
"knowledgeBaseId": {
|
|
@@ -7610,7 +7246,261 @@
|
|
|
7610
7246
|
"pluginName": "@sanity/cli",
|
|
7611
7247
|
"pluginType": "core",
|
|
7612
7248
|
"strict": true,
|
|
7613
|
-
"summary": "Get a document",
|
|
7249
|
+
"summary": "Get a document",
|
|
7250
|
+
"enableJsonFlag": true,
|
|
7251
|
+
"telemetry": {
|
|
7252
|
+
"redactedFlags": []
|
|
7253
|
+
},
|
|
7254
|
+
"isESM": true,
|
|
7255
|
+
"relativePath": [
|
|
7256
|
+
"dist",
|
|
7257
|
+
"commands",
|
|
7258
|
+
"context",
|
|
7259
|
+
"documents",
|
|
7260
|
+
"get.js"
|
|
7261
|
+
]
|
|
7262
|
+
},
|
|
7263
|
+
"context:documents:list": {
|
|
7264
|
+
"aliases": [],
|
|
7265
|
+
"args": {
|
|
7266
|
+
"knowledgeBaseId": {
|
|
7267
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7268
|
+
"name": "knowledgeBaseId",
|
|
7269
|
+
"required": true
|
|
7270
|
+
}
|
|
7271
|
+
},
|
|
7272
|
+
"description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
|
|
7273
|
+
"examples": [
|
|
7274
|
+
{
|
|
7275
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7276
|
+
"description": "List documents"
|
|
7277
|
+
},
|
|
7278
|
+
{
|
|
7279
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7280
|
+
"description": "List documents, as JSON"
|
|
7281
|
+
}
|
|
7282
|
+
],
|
|
7283
|
+
"flags": {
|
|
7284
|
+
"json": {
|
|
7285
|
+
"description": "Format output as json.",
|
|
7286
|
+
"helpGroup": "GLOBAL",
|
|
7287
|
+
"name": "json",
|
|
7288
|
+
"allowNo": false,
|
|
7289
|
+
"type": "boolean"
|
|
7290
|
+
},
|
|
7291
|
+
"limit": {
|
|
7292
|
+
"description": "The maximum number of items to return.",
|
|
7293
|
+
"name": "limit",
|
|
7294
|
+
"hasDynamicHelp": false,
|
|
7295
|
+
"multiple": false,
|
|
7296
|
+
"type": "option"
|
|
7297
|
+
},
|
|
7298
|
+
"source": {
|
|
7299
|
+
"description": "Return only the documents of this source.",
|
|
7300
|
+
"name": "source",
|
|
7301
|
+
"hasDynamicHelp": false,
|
|
7302
|
+
"multiple": false,
|
|
7303
|
+
"type": "option"
|
|
7304
|
+
},
|
|
7305
|
+
"state": {
|
|
7306
|
+
"description": "Return only documents in this state. Without it, `deleted` documents are left out.",
|
|
7307
|
+
"name": "state",
|
|
7308
|
+
"hasDynamicHelp": false,
|
|
7309
|
+
"multiple": false,
|
|
7310
|
+
"options": [
|
|
7311
|
+
"active",
|
|
7312
|
+
"missing",
|
|
7313
|
+
"deleted"
|
|
7314
|
+
],
|
|
7315
|
+
"type": "option"
|
|
7316
|
+
},
|
|
7317
|
+
"ids": {
|
|
7318
|
+
"description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
|
|
7319
|
+
"name": "ids",
|
|
7320
|
+
"hasDynamicHelp": false,
|
|
7321
|
+
"multiple": false,
|
|
7322
|
+
"type": "option"
|
|
7323
|
+
}
|
|
7324
|
+
},
|
|
7325
|
+
"hasDynamicHelp": false,
|
|
7326
|
+
"hiddenAliases": [],
|
|
7327
|
+
"id": "context:documents:list",
|
|
7328
|
+
"pluginAlias": "@sanity/cli",
|
|
7329
|
+
"pluginName": "@sanity/cli",
|
|
7330
|
+
"pluginType": "core",
|
|
7331
|
+
"strict": true,
|
|
7332
|
+
"summary": "List documents",
|
|
7333
|
+
"enableJsonFlag": true,
|
|
7334
|
+
"telemetry": {
|
|
7335
|
+
"redactedFlags": [
|
|
7336
|
+
{
|
|
7337
|
+
"canonical": "--source",
|
|
7338
|
+
"flags": [
|
|
7339
|
+
"--source"
|
|
7340
|
+
]
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"canonical": "--ids",
|
|
7344
|
+
"flags": [
|
|
7345
|
+
"--ids"
|
|
7346
|
+
]
|
|
7347
|
+
}
|
|
7348
|
+
]
|
|
7349
|
+
},
|
|
7350
|
+
"isESM": true,
|
|
7351
|
+
"relativePath": [
|
|
7352
|
+
"dist",
|
|
7353
|
+
"commands",
|
|
7354
|
+
"context",
|
|
7355
|
+
"documents",
|
|
7356
|
+
"list.js"
|
|
7357
|
+
]
|
|
7358
|
+
},
|
|
7359
|
+
"context:entries:get": {
|
|
7360
|
+
"aliases": [],
|
|
7361
|
+
"args": {
|
|
7362
|
+
"knowledgeBaseId": {
|
|
7363
|
+
"description": "Knowledge base ID",
|
|
7364
|
+
"name": "knowledgeBaseId",
|
|
7365
|
+
"required": true
|
|
7366
|
+
},
|
|
7367
|
+
"path": {
|
|
7368
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
7369
|
+
"name": "path",
|
|
7370
|
+
"required": true
|
|
7371
|
+
}
|
|
7372
|
+
},
|
|
7373
|
+
"description": "Get an entry and its content",
|
|
7374
|
+
"examples": [
|
|
7375
|
+
{
|
|
7376
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
7377
|
+
"description": "Print an entry and its content"
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7380
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
7381
|
+
"description": "Output the entry, including citations, as JSON"
|
|
7382
|
+
}
|
|
7383
|
+
],
|
|
7384
|
+
"flags": {
|
|
7385
|
+
"json": {
|
|
7386
|
+
"description": "Format output as json.",
|
|
7387
|
+
"helpGroup": "GLOBAL",
|
|
7388
|
+
"name": "json",
|
|
7389
|
+
"allowNo": false,
|
|
7390
|
+
"type": "boolean"
|
|
7391
|
+
}
|
|
7392
|
+
},
|
|
7393
|
+
"hasDynamicHelp": false,
|
|
7394
|
+
"hiddenAliases": [],
|
|
7395
|
+
"id": "context:entries:get",
|
|
7396
|
+
"pluginAlias": "@sanity/cli",
|
|
7397
|
+
"pluginName": "@sanity/cli",
|
|
7398
|
+
"pluginType": "core",
|
|
7399
|
+
"strict": true,
|
|
7400
|
+
"enableJsonFlag": true,
|
|
7401
|
+
"isESM": true,
|
|
7402
|
+
"relativePath": [
|
|
7403
|
+
"dist",
|
|
7404
|
+
"commands",
|
|
7405
|
+
"context",
|
|
7406
|
+
"entries",
|
|
7407
|
+
"get.js"
|
|
7408
|
+
]
|
|
7409
|
+
},
|
|
7410
|
+
"context:entries:list": {
|
|
7411
|
+
"aliases": [],
|
|
7412
|
+
"args": {
|
|
7413
|
+
"knowledgeBaseId": {
|
|
7414
|
+
"description": "Knowledge base ID",
|
|
7415
|
+
"name": "knowledgeBaseId",
|
|
7416
|
+
"required": true
|
|
7417
|
+
}
|
|
7418
|
+
},
|
|
7419
|
+
"description": "List the entries a knowledge base build produced",
|
|
7420
|
+
"examples": [
|
|
7421
|
+
{
|
|
7422
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7423
|
+
"description": "List all entries for a knowledge base"
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7427
|
+
"description": "Output entries as JSON"
|
|
7428
|
+
}
|
|
7429
|
+
],
|
|
7430
|
+
"flags": {
|
|
7431
|
+
"json": {
|
|
7432
|
+
"description": "Format output as json.",
|
|
7433
|
+
"helpGroup": "GLOBAL",
|
|
7434
|
+
"name": "json",
|
|
7435
|
+
"allowNo": false,
|
|
7436
|
+
"type": "boolean"
|
|
7437
|
+
}
|
|
7438
|
+
},
|
|
7439
|
+
"hasDynamicHelp": false,
|
|
7440
|
+
"hiddenAliases": [],
|
|
7441
|
+
"id": "context:entries:list",
|
|
7442
|
+
"pluginAlias": "@sanity/cli",
|
|
7443
|
+
"pluginName": "@sanity/cli",
|
|
7444
|
+
"pluginType": "core",
|
|
7445
|
+
"strict": true,
|
|
7446
|
+
"enableJsonFlag": true,
|
|
7447
|
+
"isESM": true,
|
|
7448
|
+
"relativePath": [
|
|
7449
|
+
"dist",
|
|
7450
|
+
"commands",
|
|
7451
|
+
"context",
|
|
7452
|
+
"entries",
|
|
7453
|
+
"list.js"
|
|
7454
|
+
]
|
|
7455
|
+
},
|
|
7456
|
+
"context:entries:rebuild": {
|
|
7457
|
+
"aliases": [],
|
|
7458
|
+
"args": {
|
|
7459
|
+
"knowledgeBaseId": {
|
|
7460
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7461
|
+
"name": "knowledgeBaseId",
|
|
7462
|
+
"required": true
|
|
7463
|
+
},
|
|
7464
|
+
"entryPath": {
|
|
7465
|
+
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
7466
|
+
"name": "entryPath",
|
|
7467
|
+
"required": true
|
|
7468
|
+
}
|
|
7469
|
+
},
|
|
7470
|
+
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
7471
|
+
"examples": [
|
|
7472
|
+
{
|
|
7473
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
7474
|
+
"description": "Rebuild an entry from its sources"
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
7478
|
+
"description": "Rebuild an entry from its sources, as JSON"
|
|
7479
|
+
}
|
|
7480
|
+
],
|
|
7481
|
+
"flags": {
|
|
7482
|
+
"json": {
|
|
7483
|
+
"description": "Format output as json.",
|
|
7484
|
+
"helpGroup": "GLOBAL",
|
|
7485
|
+
"name": "json",
|
|
7486
|
+
"allowNo": false,
|
|
7487
|
+
"type": "boolean"
|
|
7488
|
+
},
|
|
7489
|
+
"watch": {
|
|
7490
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7491
|
+
"name": "watch",
|
|
7492
|
+
"allowNo": false,
|
|
7493
|
+
"type": "boolean"
|
|
7494
|
+
}
|
|
7495
|
+
},
|
|
7496
|
+
"hasDynamicHelp": false,
|
|
7497
|
+
"hiddenAliases": [],
|
|
7498
|
+
"id": "context:entries:rebuild",
|
|
7499
|
+
"pluginAlias": "@sanity/cli",
|
|
7500
|
+
"pluginName": "@sanity/cli",
|
|
7501
|
+
"pluginType": "core",
|
|
7502
|
+
"strict": true,
|
|
7503
|
+
"summary": "Rebuild an entry from its sources",
|
|
7614
7504
|
"enableJsonFlag": true,
|
|
7615
7505
|
"telemetry": {
|
|
7616
7506
|
"redactedFlags": []
|
|
@@ -7620,11 +7510,11 @@
|
|
|
7620
7510
|
"dist",
|
|
7621
7511
|
"commands",
|
|
7622
7512
|
"context",
|
|
7623
|
-
"
|
|
7624
|
-
"
|
|
7513
|
+
"entries",
|
|
7514
|
+
"rebuild.js"
|
|
7625
7515
|
]
|
|
7626
7516
|
},
|
|
7627
|
-
"context:
|
|
7517
|
+
"context:instructions:create": {
|
|
7628
7518
|
"aliases": [],
|
|
7629
7519
|
"args": {
|
|
7630
7520
|
"knowledgeBaseId": {
|
|
@@ -7633,15 +7523,15 @@
|
|
|
7633
7523
|
"required": true
|
|
7634
7524
|
}
|
|
7635
7525
|
},
|
|
7636
|
-
"description": "
|
|
7526
|
+
"description": "Creates a standing instruction for how entries built from its documents are written. Every instruction applies to specific documents, set in `scopeDocumentIds`. To rebuild entries under the new instruction right away, pass their paths in `rebuildPaths`. The response includes the rebuild job ID, or `null` if the rebuild could not start. The instruction is saved either way. After the instruction is saved, a background check files issues for entries that contradict it. If you already checked the instruction for contradictions, set `verified` to skip the background check. If the requested rebuild does not start, the background check runs even when `verified` is set.",
|
|
7637
7527
|
"examples": [
|
|
7638
7528
|
{
|
|
7639
7529
|
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7640
|
-
"description": "
|
|
7530
|
+
"description": "Create an instruction"
|
|
7641
7531
|
},
|
|
7642
7532
|
{
|
|
7643
7533
|
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7644
|
-
"description": "
|
|
7534
|
+
"description": "Create an instruction, as JSON"
|
|
7645
7535
|
}
|
|
7646
7536
|
],
|
|
7647
7537
|
"flags": {
|
|
@@ -7652,61 +7542,63 @@
|
|
|
7652
7542
|
"allowNo": false,
|
|
7653
7543
|
"type": "boolean"
|
|
7654
7544
|
},
|
|
7655
|
-
"
|
|
7656
|
-
"description": "The
|
|
7657
|
-
"name": "
|
|
7545
|
+
"statement": {
|
|
7546
|
+
"description": "The instruction in plain language. Builds follow it over what the sources say.",
|
|
7547
|
+
"name": "statement",
|
|
7548
|
+
"required": true,
|
|
7658
7549
|
"hasDynamicHelp": false,
|
|
7659
7550
|
"multiple": false,
|
|
7660
7551
|
"type": "option"
|
|
7661
7552
|
},
|
|
7662
|
-
"
|
|
7663
|
-
"description": "
|
|
7664
|
-
"name": "
|
|
7553
|
+
"scope-document-ids": {
|
|
7554
|
+
"description": "IDs of the documents the instruction applies to. Builds apply it when they write entries built from these documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7555
|
+
"name": "scope-document-ids",
|
|
7556
|
+
"required": true,
|
|
7665
7557
|
"hasDynamicHelp": false,
|
|
7666
|
-
"multiple":
|
|
7558
|
+
"multiple": true,
|
|
7667
7559
|
"type": "option"
|
|
7668
7560
|
},
|
|
7669
|
-
"
|
|
7670
|
-
"description": "
|
|
7671
|
-
"name": "
|
|
7561
|
+
"rebuild-paths": {
|
|
7562
|
+
"description": "Paths of entries to rebuild under the new instruction right away. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7563
|
+
"name": "rebuild-paths",
|
|
7672
7564
|
"hasDynamicHelp": false,
|
|
7673
|
-
"multiple":
|
|
7674
|
-
"options": [
|
|
7675
|
-
"active",
|
|
7676
|
-
"missing",
|
|
7677
|
-
"deleted"
|
|
7678
|
-
],
|
|
7565
|
+
"multiple": true,
|
|
7679
7566
|
"type": "option"
|
|
7680
7567
|
},
|
|
7681
|
-
"
|
|
7682
|
-
"description": "
|
|
7683
|
-
"name": "
|
|
7684
|
-
"
|
|
7685
|
-
"
|
|
7686
|
-
"type": "option"
|
|
7568
|
+
"verified": {
|
|
7569
|
+
"description": "Whether you already checked the instruction for entries that contradict it. When `true`, the background check that files issues for those entries is skipped. It still runs if the rebuild you requested in `rebuildPaths` does not start.",
|
|
7570
|
+
"name": "verified",
|
|
7571
|
+
"allowNo": true,
|
|
7572
|
+
"type": "boolean"
|
|
7687
7573
|
}
|
|
7688
7574
|
},
|
|
7689
7575
|
"hasDynamicHelp": false,
|
|
7690
7576
|
"hiddenAliases": [],
|
|
7691
|
-
"id": "context:
|
|
7577
|
+
"id": "context:instructions:create",
|
|
7692
7578
|
"pluginAlias": "@sanity/cli",
|
|
7693
7579
|
"pluginName": "@sanity/cli",
|
|
7694
7580
|
"pluginType": "core",
|
|
7695
7581
|
"strict": true,
|
|
7696
|
-
"summary": "
|
|
7582
|
+
"summary": "Create an instruction",
|
|
7697
7583
|
"enableJsonFlag": true,
|
|
7698
7584
|
"telemetry": {
|
|
7699
7585
|
"redactedFlags": [
|
|
7700
7586
|
{
|
|
7701
|
-
"canonical": "--
|
|
7587
|
+
"canonical": "--statement",
|
|
7702
7588
|
"flags": [
|
|
7703
|
-
"--
|
|
7589
|
+
"--statement"
|
|
7704
7590
|
]
|
|
7705
7591
|
},
|
|
7706
7592
|
{
|
|
7707
|
-
"canonical": "--ids",
|
|
7593
|
+
"canonical": "--scope-document-ids",
|
|
7708
7594
|
"flags": [
|
|
7709
|
-
"--ids"
|
|
7595
|
+
"--scope-document-ids"
|
|
7596
|
+
]
|
|
7597
|
+
},
|
|
7598
|
+
{
|
|
7599
|
+
"canonical": "--rebuild-paths",
|
|
7600
|
+
"flags": [
|
|
7601
|
+
"--rebuild-paths"
|
|
7710
7602
|
]
|
|
7711
7603
|
}
|
|
7712
7604
|
]
|
|
@@ -7716,11 +7608,11 @@
|
|
|
7716
7608
|
"dist",
|
|
7717
7609
|
"commands",
|
|
7718
7610
|
"context",
|
|
7719
|
-
"
|
|
7720
|
-
"
|
|
7611
|
+
"instructions",
|
|
7612
|
+
"create.js"
|
|
7721
7613
|
]
|
|
7722
7614
|
},
|
|
7723
|
-
"context:
|
|
7615
|
+
"context:instructions:delete": {
|
|
7724
7616
|
"aliases": [],
|
|
7725
7617
|
"args": {
|
|
7726
7618
|
"knowledgeBaseId": {
|
|
@@ -7728,21 +7620,21 @@
|
|
|
7728
7620
|
"name": "knowledgeBaseId",
|
|
7729
7621
|
"required": true
|
|
7730
7622
|
},
|
|
7731
|
-
"
|
|
7732
|
-
"description": "The
|
|
7733
|
-
"name": "
|
|
7623
|
+
"instructionId": {
|
|
7624
|
+
"description": "The instruction's ID.",
|
|
7625
|
+
"name": "instructionId",
|
|
7734
7626
|
"required": true
|
|
7735
7627
|
}
|
|
7736
7628
|
},
|
|
7737
|
-
"description": "
|
|
7629
|
+
"description": "Deletes the instruction. Builds stop applying it from the next run. Entries already written under it keep their text until they are rebuilt; pass `rebuild=true` to rebuild every entry built from its documents right away.",
|
|
7738
7630
|
"examples": [
|
|
7739
7631
|
{
|
|
7740
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <
|
|
7741
|
-
"description": "
|
|
7632
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7633
|
+
"description": "Delete an instruction"
|
|
7742
7634
|
},
|
|
7743
7635
|
{
|
|
7744
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <
|
|
7745
|
-
"description": "
|
|
7636
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7637
|
+
"description": "Delete an instruction, as JSON"
|
|
7746
7638
|
}
|
|
7747
7639
|
],
|
|
7748
7640
|
"flags": {
|
|
@@ -7753,21 +7645,28 @@
|
|
|
7753
7645
|
"allowNo": false,
|
|
7754
7646
|
"type": "boolean"
|
|
7755
7647
|
},
|
|
7756
|
-
"
|
|
7757
|
-
"description": "
|
|
7758
|
-
"name": "
|
|
7648
|
+
"rebuild": {
|
|
7649
|
+
"description": "Set to `true` to rebuild every entry built from the instruction's documents once it is deleted, so pages written under the instruction reflect their documents again. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7650
|
+
"name": "rebuild",
|
|
7651
|
+
"allowNo": true,
|
|
7652
|
+
"type": "boolean"
|
|
7653
|
+
},
|
|
7654
|
+
"yes": {
|
|
7655
|
+
"char": "y",
|
|
7656
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
7657
|
+
"name": "yes",
|
|
7759
7658
|
"allowNo": false,
|
|
7760
7659
|
"type": "boolean"
|
|
7761
7660
|
}
|
|
7762
7661
|
},
|
|
7763
7662
|
"hasDynamicHelp": false,
|
|
7764
7663
|
"hiddenAliases": [],
|
|
7765
|
-
"id": "context:
|
|
7664
|
+
"id": "context:instructions:delete",
|
|
7766
7665
|
"pluginAlias": "@sanity/cli",
|
|
7767
7666
|
"pluginName": "@sanity/cli",
|
|
7768
7667
|
"pluginType": "core",
|
|
7769
7668
|
"strict": true,
|
|
7770
|
-
"summary": "
|
|
7669
|
+
"summary": "Delete an instruction",
|
|
7771
7670
|
"enableJsonFlag": true,
|
|
7772
7671
|
"telemetry": {
|
|
7773
7672
|
"redactedFlags": []
|
|
@@ -7777,8 +7676,90 @@
|
|
|
7777
7676
|
"dist",
|
|
7778
7677
|
"commands",
|
|
7779
7678
|
"context",
|
|
7780
|
-
"
|
|
7781
|
-
"
|
|
7679
|
+
"instructions",
|
|
7680
|
+
"delete.js"
|
|
7681
|
+
]
|
|
7682
|
+
},
|
|
7683
|
+
"context:instructions:edit": {
|
|
7684
|
+
"aliases": [],
|
|
7685
|
+
"args": {
|
|
7686
|
+
"knowledgeBaseId": {
|
|
7687
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7688
|
+
"name": "knowledgeBaseId",
|
|
7689
|
+
"required": true
|
|
7690
|
+
},
|
|
7691
|
+
"instructionId": {
|
|
7692
|
+
"description": "The instruction's ID.",
|
|
7693
|
+
"name": "instructionId",
|
|
7694
|
+
"required": true
|
|
7695
|
+
}
|
|
7696
|
+
},
|
|
7697
|
+
"description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
|
|
7698
|
+
"examples": [
|
|
7699
|
+
{
|
|
7700
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7701
|
+
"description": "Update an instruction"
|
|
7702
|
+
},
|
|
7703
|
+
{
|
|
7704
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7705
|
+
"description": "Update an instruction, as JSON"
|
|
7706
|
+
}
|
|
7707
|
+
],
|
|
7708
|
+
"flags": {
|
|
7709
|
+
"json": {
|
|
7710
|
+
"description": "Format output as json.",
|
|
7711
|
+
"helpGroup": "GLOBAL",
|
|
7712
|
+
"name": "json",
|
|
7713
|
+
"allowNo": false,
|
|
7714
|
+
"type": "boolean"
|
|
7715
|
+
},
|
|
7716
|
+
"statement": {
|
|
7717
|
+
"description": "The new instruction text. Omit it to keep the current text.",
|
|
7718
|
+
"name": "statement",
|
|
7719
|
+
"hasDynamicHelp": false,
|
|
7720
|
+
"multiple": false,
|
|
7721
|
+
"type": "option"
|
|
7722
|
+
},
|
|
7723
|
+
"scope-document-ids": {
|
|
7724
|
+
"description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7725
|
+
"name": "scope-document-ids",
|
|
7726
|
+
"hasDynamicHelp": false,
|
|
7727
|
+
"multiple": true,
|
|
7728
|
+
"type": "option"
|
|
7729
|
+
}
|
|
7730
|
+
},
|
|
7731
|
+
"hasDynamicHelp": false,
|
|
7732
|
+
"hiddenAliases": [],
|
|
7733
|
+
"id": "context:instructions:edit",
|
|
7734
|
+
"pluginAlias": "@sanity/cli",
|
|
7735
|
+
"pluginName": "@sanity/cli",
|
|
7736
|
+
"pluginType": "core",
|
|
7737
|
+
"strict": true,
|
|
7738
|
+
"summary": "Update an instruction",
|
|
7739
|
+
"enableJsonFlag": true,
|
|
7740
|
+
"telemetry": {
|
|
7741
|
+
"redactedFlags": [
|
|
7742
|
+
{
|
|
7743
|
+
"canonical": "--statement",
|
|
7744
|
+
"flags": [
|
|
7745
|
+
"--statement"
|
|
7746
|
+
]
|
|
7747
|
+
},
|
|
7748
|
+
{
|
|
7749
|
+
"canonical": "--scope-document-ids",
|
|
7750
|
+
"flags": [
|
|
7751
|
+
"--scope-document-ids"
|
|
7752
|
+
]
|
|
7753
|
+
}
|
|
7754
|
+
]
|
|
7755
|
+
},
|
|
7756
|
+
"isESM": true,
|
|
7757
|
+
"relativePath": [
|
|
7758
|
+
"dist",
|
|
7759
|
+
"commands",
|
|
7760
|
+
"context",
|
|
7761
|
+
"instructions",
|
|
7762
|
+
"edit.js"
|
|
7782
7763
|
]
|
|
7783
7764
|
},
|
|
7784
7765
|
"context:issues:apply": {
|
|
@@ -8171,6 +8152,67 @@
|
|
|
8171
8152
|
"resolve.js"
|
|
8172
8153
|
]
|
|
8173
8154
|
},
|
|
8155
|
+
"context:jobs:get": {
|
|
8156
|
+
"aliases": [],
|
|
8157
|
+
"args": {
|
|
8158
|
+
"knowledgeBaseId": {
|
|
8159
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
8160
|
+
"name": "knowledgeBaseId",
|
|
8161
|
+
"required": true
|
|
8162
|
+
},
|
|
8163
|
+
"jobId": {
|
|
8164
|
+
"description": "The job ID returned by the endpoint that started the work.",
|
|
8165
|
+
"name": "jobId",
|
|
8166
|
+
"required": true
|
|
8167
|
+
}
|
|
8168
|
+
},
|
|
8169
|
+
"description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
|
|
8170
|
+
"examples": [
|
|
8171
|
+
{
|
|
8172
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
8173
|
+
"description": "Get a job"
|
|
8174
|
+
},
|
|
8175
|
+
{
|
|
8176
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
8177
|
+
"description": "Get a job, as JSON"
|
|
8178
|
+
}
|
|
8179
|
+
],
|
|
8180
|
+
"flags": {
|
|
8181
|
+
"json": {
|
|
8182
|
+
"description": "Format output as json.",
|
|
8183
|
+
"helpGroup": "GLOBAL",
|
|
8184
|
+
"name": "json",
|
|
8185
|
+
"allowNo": false,
|
|
8186
|
+
"type": "boolean"
|
|
8187
|
+
},
|
|
8188
|
+
"watch": {
|
|
8189
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
8190
|
+
"name": "watch",
|
|
8191
|
+
"allowNo": false,
|
|
8192
|
+
"type": "boolean"
|
|
8193
|
+
}
|
|
8194
|
+
},
|
|
8195
|
+
"hasDynamicHelp": false,
|
|
8196
|
+
"hiddenAliases": [],
|
|
8197
|
+
"id": "context:jobs:get",
|
|
8198
|
+
"pluginAlias": "@sanity/cli",
|
|
8199
|
+
"pluginName": "@sanity/cli",
|
|
8200
|
+
"pluginType": "core",
|
|
8201
|
+
"strict": true,
|
|
8202
|
+
"summary": "Get a job",
|
|
8203
|
+
"enableJsonFlag": true,
|
|
8204
|
+
"telemetry": {
|
|
8205
|
+
"redactedFlags": []
|
|
8206
|
+
},
|
|
8207
|
+
"isESM": true,
|
|
8208
|
+
"relativePath": [
|
|
8209
|
+
"dist",
|
|
8210
|
+
"commands",
|
|
8211
|
+
"context",
|
|
8212
|
+
"jobs",
|
|
8213
|
+
"get.js"
|
|
8214
|
+
]
|
|
8215
|
+
},
|
|
8174
8216
|
"context:mcp:create": {
|
|
8175
8217
|
"aliases": [],
|
|
8176
8218
|
"args": {
|
|
@@ -10351,5 +10393,5 @@
|
|
|
10351
10393
|
]
|
|
10352
10394
|
}
|
|
10353
10395
|
},
|
|
10354
|
-
"version": "8.
|
|
10396
|
+
"version": "8.32.1"
|
|
10355
10397
|
}
|