@sanity/cli 8.28.2 → 8.30.0
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 +6 -6
- package/dist/actions/build/buildApp.js +1 -0
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStudio.js +1 -0
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/actions/deploy/createUserApplication.js +4 -1
- package/dist/actions/deploy/createUserApplication.js.map +1 -1
- package/dist/actions/deploy/deployChecks.js +3 -2
- package/dist/actions/deploy/deployChecks.js.map +1 -1
- package/dist/actions/deploy/deployRunner.js +3 -2
- package/dist/actions/deploy/deployRunner.js.map +1 -1
- package/dist/actions/deploy/findUserApplication.js +4 -3
- package/dist/actions/deploy/findUserApplication.js.map +1 -1
- package/dist/actions/deploy/serviceUnavailable.js +49 -0
- package/dist/actions/deploy/serviceUnavailable.js.map +1 -0
- package/dist/actions/dev/servers/getDashboardAppUrl.js +2 -2
- package/dist/actions/dev/servers/getDashboardAppUrl.js.map +1 -1
- package/dist/actions/dev/servers/getDevServerConfig.js +1 -0
- package/dist/actions/dev/servers/getDevServerConfig.js.map +1 -1
- package/dist/actions/dev/servers/startAppDevServer.js +3 -2
- package/dist/actions/dev/servers/startAppDevServer.js.map +1 -1
- package/dist/actions/dev/servers/startStudioDevServer.js +4 -2
- package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +34 -30
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +5 -13
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +43 -89
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js +2 -5
- package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +37 -50
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/mcp/writeMCPConfig.js +3 -3
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/commands/mcp/configure.js +2 -22
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/skills/install.js +1 -1
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/exports/invokeSanityCli/index.d.ts +4 -2
- package/dist/exports/runtime.d.ts +2 -2
- package/dist/exports/runtime.js +1 -1
- package/dist/exports/runtime.js.map +1 -1
- package/dist/generated/apiRoutes.js +12 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/server/devServer.js +2 -1
- package/dist/server/devServer.js.map +1 -1
- package/dist/services/mcp.js +1 -73
- package/dist/services/mcp.js.map +1 -1
- package/oclif.manifest.json +606 -606
- package/package.json +27 -25
- package/dist/actions/mcp/validateEditorTokens.js +0 -56
- package/dist/actions/mcp/validateEditorTokens.js.map +0 -1
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": {
|
|
@@ -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
|
],
|
|
@@ -4503,7 +4503,7 @@
|
|
|
4503
4503
|
"mcp:configure": {
|
|
4504
4504
|
"aliases": [],
|
|
4505
4505
|
"args": {},
|
|
4506
|
-
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline,
|
|
4506
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
4507
4507
|
"examples": [
|
|
4508
4508
|
{
|
|
4509
4509
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -6256,7 +6256,7 @@
|
|
|
6256
6256
|
"skills:install": {
|
|
6257
6257
|
"aliases": [],
|
|
6258
6258
|
"args": {},
|
|
6259
|
-
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline,
|
|
6259
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
6260
6260
|
"examples": [
|
|
6261
6261
|
{
|
|
6262
6262
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -6357,180 +6357,94 @@
|
|
|
6357
6357
|
"status.js"
|
|
6358
6358
|
]
|
|
6359
6359
|
},
|
|
6360
|
-
"
|
|
6360
|
+
"typegen:generate": {
|
|
6361
6361
|
"aliases": [],
|
|
6362
|
-
"args": {
|
|
6363
|
-
|
|
6364
|
-
"description": "Label for the new token",
|
|
6365
|
-
"name": "label",
|
|
6366
|
-
"required": false
|
|
6367
|
-
}
|
|
6368
|
-
},
|
|
6369
|
-
"description": "Create a new API token with access to an organization and its projects",
|
|
6362
|
+
"args": {},
|
|
6363
|
+
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
6370
6364
|
"examples": [
|
|
6371
6365
|
{
|
|
6372
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6373
|
-
"description": "
|
|
6374
|
-
},
|
|
6375
|
-
{
|
|
6376
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --grant context=developer --grant blueprints --grant project:abc123=editor",
|
|
6377
|
-
"description": "Create an organization token with Context, Blueprints and project access"
|
|
6378
|
-
},
|
|
6379
|
-
{
|
|
6380
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project abc123 --role=editor",
|
|
6381
|
-
"description": "Create a project token with editor role"
|
|
6382
|
-
},
|
|
6383
|
-
{
|
|
6384
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
6385
|
-
"description": "Create a project token in unattended mode"
|
|
6386
|
-
},
|
|
6387
|
-
{
|
|
6388
|
-
"command": "<%= config.bin %> <%= command.id %> \"Build Token\" --expires-at 2027-01-01",
|
|
6389
|
-
"description": "Create a token that expires on a given date"
|
|
6390
|
-
},
|
|
6391
|
-
{
|
|
6392
|
-
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
6393
|
-
"description": "Output token information as JSON"
|
|
6366
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6367
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6394
6368
|
}
|
|
6395
6369
|
],
|
|
6396
6370
|
"flags": {
|
|
6397
|
-
"
|
|
6398
|
-
"description": "
|
|
6399
|
-
"
|
|
6400
|
-
"name": "json",
|
|
6401
|
-
"allowNo": false,
|
|
6402
|
-
"type": "boolean"
|
|
6403
|
-
},
|
|
6404
|
-
"project": {
|
|
6405
|
-
"aliases": [
|
|
6406
|
-
"project-id"
|
|
6407
|
-
],
|
|
6408
|
-
"char": "p",
|
|
6409
|
-
"deprecateAliases": true,
|
|
6410
|
-
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
6411
|
-
"helpGroup": "OVERRIDE",
|
|
6412
|
-
"name": "project",
|
|
6413
|
-
"hasDynamicHelp": false,
|
|
6414
|
-
"helpValue": "<id>",
|
|
6415
|
-
"multiple": false,
|
|
6416
|
-
"type": "option"
|
|
6417
|
-
},
|
|
6418
|
-
"organization": {
|
|
6419
|
-
"description": "Organization to create an organization token in (overrides CLI configuration)",
|
|
6420
|
-
"helpGroup": "OVERRIDE",
|
|
6421
|
-
"name": "organization",
|
|
6422
|
-
"hasDynamicHelp": false,
|
|
6423
|
-
"helpValue": "<id>",
|
|
6424
|
-
"multiple": false,
|
|
6425
|
-
"type": "option"
|
|
6426
|
-
},
|
|
6427
|
-
"expires-at": {
|
|
6428
|
-
"description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
|
|
6429
|
-
"name": "expires-at",
|
|
6430
|
-
"hasDynamicHelp": false,
|
|
6431
|
-
"helpValue": "2027-01-01",
|
|
6432
|
-
"multiple": false,
|
|
6433
|
-
"type": "option"
|
|
6434
|
-
},
|
|
6435
|
-
"grant": {
|
|
6436
|
-
"description": "Access to grant, as <permission>[=<role>] or project:<projectId>=<role>[,<role>]. Permissions: context, blueprints, media-library, canvas, sdk-apps, access, deploy-studios. Repeatable",
|
|
6437
|
-
"name": "grant",
|
|
6438
|
-
"hasDynamicHelp": false,
|
|
6439
|
-
"helpValue": "context=editor",
|
|
6440
|
-
"multiple": true,
|
|
6441
|
-
"type": "option"
|
|
6442
|
-
},
|
|
6443
|
-
"role": {
|
|
6444
|
-
"description": "Role to assign on the project (defaults to viewer in unattended mode)",
|
|
6445
|
-
"name": "role",
|
|
6371
|
+
"config-path": {
|
|
6372
|
+
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
6373
|
+
"name": "config-path",
|
|
6446
6374
|
"hasDynamicHelp": false,
|
|
6447
|
-
"helpValue": "viewer",
|
|
6448
6375
|
"multiple": false,
|
|
6449
6376
|
"type": "option"
|
|
6450
6377
|
},
|
|
6451
|
-
"
|
|
6452
|
-
"
|
|
6453
|
-
"
|
|
6454
|
-
"name": "yes",
|
|
6378
|
+
"watch": {
|
|
6379
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
6380
|
+
"name": "watch",
|
|
6455
6381
|
"allowNo": false,
|
|
6456
6382
|
"type": "boolean"
|
|
6457
6383
|
}
|
|
6458
6384
|
},
|
|
6459
6385
|
"hasDynamicHelp": false,
|
|
6460
6386
|
"hiddenAliases": [
|
|
6461
|
-
"
|
|
6462
|
-
"token:add",
|
|
6463
|
-
"token:create"
|
|
6387
|
+
"typegen:generate"
|
|
6464
6388
|
],
|
|
6465
|
-
"id": "
|
|
6389
|
+
"id": "typegen:generate",
|
|
6466
6390
|
"pluginAlias": "@sanity/cli",
|
|
6467
6391
|
"pluginName": "@sanity/cli",
|
|
6468
6392
|
"pluginType": "core",
|
|
6469
6393
|
"strict": true,
|
|
6470
|
-
"
|
|
6394
|
+
"telemetry": {
|
|
6395
|
+
"redactedFlags": [
|
|
6396
|
+
{
|
|
6397
|
+
"canonical": "--config-path",
|
|
6398
|
+
"flags": [
|
|
6399
|
+
"--config-path"
|
|
6400
|
+
]
|
|
6401
|
+
}
|
|
6402
|
+
]
|
|
6403
|
+
},
|
|
6471
6404
|
"isESM": true,
|
|
6472
6405
|
"relativePath": [
|
|
6473
6406
|
"dist",
|
|
6474
6407
|
"commands",
|
|
6475
|
-
"
|
|
6476
|
-
"
|
|
6408
|
+
"typegen",
|
|
6409
|
+
"generate.js"
|
|
6477
6410
|
]
|
|
6478
6411
|
},
|
|
6479
|
-
"
|
|
6412
|
+
"users:invite": {
|
|
6480
6413
|
"aliases": [],
|
|
6481
6414
|
"args": {
|
|
6482
|
-
"
|
|
6483
|
-
"description": "
|
|
6484
|
-
"name": "
|
|
6415
|
+
"email": {
|
|
6416
|
+
"description": "Email address to invite",
|
|
6417
|
+
"name": "email",
|
|
6485
6418
|
"required": false
|
|
6486
6419
|
}
|
|
6487
6420
|
},
|
|
6488
|
-
"description": "
|
|
6421
|
+
"description": "Invite a new user to the project",
|
|
6489
6422
|
"examples": [
|
|
6490
|
-
{
|
|
6491
|
-
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
6492
|
-
"description": "Interactively select and delete an organization token"
|
|
6493
|
-
},
|
|
6494
|
-
{
|
|
6495
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --organization org123 --yes",
|
|
6496
|
-
"description": "Delete an organization token without confirmation"
|
|
6497
|
-
},
|
|
6498
6423
|
{
|
|
6499
6424
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
6500
|
-
"description": "
|
|
6425
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
6501
6426
|
},
|
|
6502
6427
|
{
|
|
6503
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6504
|
-
"description": "
|
|
6428
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6429
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
6505
6430
|
},
|
|
6506
6431
|
{
|
|
6507
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6508
|
-
"description": "
|
|
6432
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
6433
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
6509
6434
|
},
|
|
6510
6435
|
{
|
|
6511
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6512
|
-
"description": "
|
|
6436
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project abc123",
|
|
6437
|
+
"description": "Invite a user to a specific project"
|
|
6513
6438
|
}
|
|
6514
6439
|
],
|
|
6515
6440
|
"flags": {
|
|
6516
|
-
"organization": {
|
|
6517
|
-
"description": "Delete a token managed by this organization",
|
|
6518
|
-
"exclusive": [
|
|
6519
|
-
"project"
|
|
6520
|
-
],
|
|
6521
|
-
"name": "organization",
|
|
6522
|
-
"hasDynamicHelp": false,
|
|
6523
|
-
"helpValue": "<id>",
|
|
6524
|
-
"multiple": false,
|
|
6525
|
-
"type": "option"
|
|
6526
|
-
},
|
|
6527
6441
|
"project": {
|
|
6528
6442
|
"aliases": [
|
|
6529
6443
|
"project-id"
|
|
6530
6444
|
],
|
|
6531
6445
|
"char": "p",
|
|
6532
6446
|
"deprecateAliases": true,
|
|
6533
|
-
"description": "Project ID to
|
|
6447
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6534
6448
|
"helpGroup": "OVERRIDE",
|
|
6535
6449
|
"name": "project",
|
|
6536
6450
|
"hasDynamicHelp": false,
|
|
@@ -6538,19 +6452,19 @@
|
|
|
6538
6452
|
"multiple": false,
|
|
6539
6453
|
"type": "option"
|
|
6540
6454
|
},
|
|
6541
|
-
"
|
|
6542
|
-
"
|
|
6543
|
-
"
|
|
6544
|
-
"
|
|
6545
|
-
"
|
|
6546
|
-
"type": "
|
|
6455
|
+
"role": {
|
|
6456
|
+
"description": "Role to invite the user as",
|
|
6457
|
+
"name": "role",
|
|
6458
|
+
"hasDynamicHelp": false,
|
|
6459
|
+
"multiple": false,
|
|
6460
|
+
"type": "option"
|
|
6547
6461
|
}
|
|
6548
6462
|
},
|
|
6549
6463
|
"hasDynamicHelp": false,
|
|
6550
6464
|
"hiddenAliases": [
|
|
6551
|
-
"
|
|
6465
|
+
"user:invite"
|
|
6552
6466
|
],
|
|
6553
|
-
"id": "
|
|
6467
|
+
"id": "users:invite",
|
|
6554
6468
|
"pluginAlias": "@sanity/cli",
|
|
6555
6469
|
"pluginName": "@sanity/cli",
|
|
6556
6470
|
"pluginType": "core",
|
|
@@ -6559,100 +6473,137 @@
|
|
|
6559
6473
|
"relativePath": [
|
|
6560
6474
|
"dist",
|
|
6561
6475
|
"commands",
|
|
6562
|
-
"
|
|
6563
|
-
"
|
|
6476
|
+
"users",
|
|
6477
|
+
"invite.js"
|
|
6564
6478
|
]
|
|
6565
6479
|
},
|
|
6566
|
-
"
|
|
6480
|
+
"users:list": {
|
|
6567
6481
|
"aliases": [],
|
|
6568
6482
|
"args": {},
|
|
6569
|
-
"description": "List
|
|
6483
|
+
"description": "List project members",
|
|
6570
6484
|
"examples": [
|
|
6571
6485
|
{
|
|
6572
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6573
|
-
"description": "List
|
|
6486
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6487
|
+
"description": "List all users of the project"
|
|
6574
6488
|
},
|
|
6575
6489
|
{
|
|
6576
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6577
|
-
"description": "List
|
|
6490
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6491
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6578
6492
|
},
|
|
6579
6493
|
{
|
|
6580
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6581
|
-
"description": "List
|
|
6494
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
6495
|
+
"description": "List all users, sorted by role"
|
|
6582
6496
|
},
|
|
6583
6497
|
{
|
|
6584
6498
|
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6585
|
-
"description": "List
|
|
6499
|
+
"description": "List users for a specific project"
|
|
6586
6500
|
}
|
|
6587
6501
|
],
|
|
6588
6502
|
"flags": {
|
|
6589
|
-
"json": {
|
|
6590
|
-
"description": "Format output as json.",
|
|
6591
|
-
"helpGroup": "GLOBAL",
|
|
6592
|
-
"name": "json",
|
|
6593
|
-
"allowNo": false,
|
|
6594
|
-
"type": "boolean"
|
|
6595
|
-
},
|
|
6596
|
-
"organization": {
|
|
6597
|
-
"description": "List tokens managed by this organization",
|
|
6598
|
-
"exclusive": [
|
|
6599
|
-
"project"
|
|
6600
|
-
],
|
|
6601
|
-
"name": "organization",
|
|
6602
|
-
"hasDynamicHelp": false,
|
|
6603
|
-
"helpValue": "<id>",
|
|
6604
|
-
"multiple": false,
|
|
6605
|
-
"type": "option"
|
|
6606
|
-
},
|
|
6607
6503
|
"project": {
|
|
6608
6504
|
"aliases": [
|
|
6609
6505
|
"project-id"
|
|
6610
6506
|
],
|
|
6611
6507
|
"char": "p",
|
|
6612
6508
|
"deprecateAliases": true,
|
|
6613
|
-
"description": "Project ID to list
|
|
6509
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6614
6510
|
"helpGroup": "OVERRIDE",
|
|
6615
6511
|
"name": "project",
|
|
6616
6512
|
"hasDynamicHelp": false,
|
|
6617
6513
|
"helpValue": "<id>",
|
|
6618
6514
|
"multiple": false,
|
|
6619
6515
|
"type": "option"
|
|
6516
|
+
},
|
|
6517
|
+
"invitations": {
|
|
6518
|
+
"description": "Includes or excludes pending invitations",
|
|
6519
|
+
"name": "invitations",
|
|
6520
|
+
"allowNo": true,
|
|
6521
|
+
"type": "boolean"
|
|
6522
|
+
},
|
|
6523
|
+
"order": {
|
|
6524
|
+
"description": "Sort output ascending/descending",
|
|
6525
|
+
"name": "order",
|
|
6526
|
+
"default": "asc",
|
|
6527
|
+
"hasDynamicHelp": false,
|
|
6528
|
+
"multiple": false,
|
|
6529
|
+
"options": [
|
|
6530
|
+
"asc",
|
|
6531
|
+
"desc"
|
|
6532
|
+
],
|
|
6533
|
+
"type": "option"
|
|
6534
|
+
},
|
|
6535
|
+
"robots": {
|
|
6536
|
+
"description": "Includes or excludes robots (token users)",
|
|
6537
|
+
"name": "robots",
|
|
6538
|
+
"allowNo": true,
|
|
6539
|
+
"type": "boolean"
|
|
6540
|
+
},
|
|
6541
|
+
"sort": {
|
|
6542
|
+
"description": "Sort users by specified column",
|
|
6543
|
+
"name": "sort",
|
|
6544
|
+
"default": "date",
|
|
6545
|
+
"hasDynamicHelp": false,
|
|
6546
|
+
"multiple": false,
|
|
6547
|
+
"options": [
|
|
6548
|
+
"id",
|
|
6549
|
+
"name",
|
|
6550
|
+
"role",
|
|
6551
|
+
"date"
|
|
6552
|
+
],
|
|
6553
|
+
"type": "option"
|
|
6620
6554
|
}
|
|
6621
6555
|
},
|
|
6622
6556
|
"hasDynamicHelp": false,
|
|
6623
6557
|
"hiddenAliases": [
|
|
6624
|
-
"
|
|
6558
|
+
"user:list"
|
|
6625
6559
|
],
|
|
6626
|
-
"id": "
|
|
6560
|
+
"id": "users:list",
|
|
6627
6561
|
"pluginAlias": "@sanity/cli",
|
|
6628
6562
|
"pluginName": "@sanity/cli",
|
|
6629
6563
|
"pluginType": "core",
|
|
6630
6564
|
"strict": true,
|
|
6631
|
-
"enableJsonFlag": true,
|
|
6632
6565
|
"isESM": true,
|
|
6633
6566
|
"relativePath": [
|
|
6634
6567
|
"dist",
|
|
6635
6568
|
"commands",
|
|
6636
|
-
"
|
|
6569
|
+
"users",
|
|
6637
6570
|
"list.js"
|
|
6638
6571
|
]
|
|
6639
6572
|
},
|
|
6640
|
-
"tokens:
|
|
6573
|
+
"tokens:create": {
|
|
6641
6574
|
"aliases": [],
|
|
6642
|
-
"args": {
|
|
6643
|
-
|
|
6575
|
+
"args": {
|
|
6576
|
+
"label": {
|
|
6577
|
+
"description": "Label for the new token",
|
|
6578
|
+
"name": "label",
|
|
6579
|
+
"required": false
|
|
6580
|
+
}
|
|
6581
|
+
},
|
|
6582
|
+
"description": "Create a new API token with access to an organization and its projects",
|
|
6644
6583
|
"examples": [
|
|
6645
6584
|
{
|
|
6646
|
-
"command": "
|
|
6647
|
-
"description": "
|
|
6585
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
6586
|
+
"description": "Create a token, choosing its access interactively"
|
|
6648
6587
|
},
|
|
6649
6588
|
{
|
|
6650
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6651
|
-
"description": "
|
|
6589
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --grant context=developer --grant blueprints --grant project:abc123=editor",
|
|
6590
|
+
"description": "Create an organization token with Context, Blueprints and project access"
|
|
6652
6591
|
},
|
|
6653
6592
|
{
|
|
6654
|
-
"command": "
|
|
6655
|
-
"description": "
|
|
6593
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project abc123 --role=editor",
|
|
6594
|
+
"description": "Create a project token with editor role"
|
|
6595
|
+
},
|
|
6596
|
+
{
|
|
6597
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
6598
|
+
"description": "Create a project token in unattended mode"
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
"command": "<%= config.bin %> <%= command.id %> \"Build Token\" --expires-at 2027-01-01",
|
|
6602
|
+
"description": "Create a token that expires on a given date"
|
|
6603
|
+
},
|
|
6604
|
+
{
|
|
6605
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
6606
|
+
"description": "Output token information as JSON"
|
|
6656
6607
|
}
|
|
6657
6608
|
],
|
|
6658
6609
|
"flags": {
|
|
@@ -6663,256 +6614,305 @@
|
|
|
6663
6614
|
"allowNo": false,
|
|
6664
6615
|
"type": "boolean"
|
|
6665
6616
|
},
|
|
6666
|
-
"
|
|
6667
|
-
"
|
|
6668
|
-
|
|
6669
|
-
|
|
6617
|
+
"project": {
|
|
6618
|
+
"aliases": [
|
|
6619
|
+
"project-id"
|
|
6620
|
+
],
|
|
6621
|
+
"char": "p",
|
|
6622
|
+
"deprecateAliases": true,
|
|
6623
|
+
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
6624
|
+
"helpGroup": "OVERRIDE",
|
|
6625
|
+
"name": "project",
|
|
6670
6626
|
"hasDynamicHelp": false,
|
|
6671
|
-
"helpValue": "<
|
|
6627
|
+
"helpValue": "<id>",
|
|
6628
|
+
"multiple": false,
|
|
6629
|
+
"type": "option"
|
|
6630
|
+
},
|
|
6631
|
+
"organization": {
|
|
6632
|
+
"description": "Organization to create an organization token in (overrides CLI configuration)",
|
|
6633
|
+
"helpGroup": "OVERRIDE",
|
|
6634
|
+
"name": "organization",
|
|
6635
|
+
"hasDynamicHelp": false,
|
|
6636
|
+
"helpValue": "<id>",
|
|
6637
|
+
"multiple": false,
|
|
6638
|
+
"type": "option"
|
|
6639
|
+
},
|
|
6640
|
+
"expires-at": {
|
|
6641
|
+
"description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
|
|
6642
|
+
"name": "expires-at",
|
|
6643
|
+
"hasDynamicHelp": false,
|
|
6644
|
+
"helpValue": "2027-01-01",
|
|
6672
6645
|
"multiple": false,
|
|
6673
6646
|
"type": "option"
|
|
6647
|
+
},
|
|
6648
|
+
"grant": {
|
|
6649
|
+
"description": "Access to grant, as <permission>[=<role>] or project:<projectId>=<role>[,<role>]. Permissions: context, blueprints, media-library, canvas, sdk-apps, access, deploy-studios. Repeatable",
|
|
6650
|
+
"name": "grant",
|
|
6651
|
+
"hasDynamicHelp": false,
|
|
6652
|
+
"helpValue": "context=editor",
|
|
6653
|
+
"multiple": true,
|
|
6654
|
+
"type": "option"
|
|
6655
|
+
},
|
|
6656
|
+
"role": {
|
|
6657
|
+
"description": "Role to assign on the project (defaults to viewer in unattended mode)",
|
|
6658
|
+
"name": "role",
|
|
6659
|
+
"hasDynamicHelp": false,
|
|
6660
|
+
"helpValue": "viewer",
|
|
6661
|
+
"multiple": false,
|
|
6662
|
+
"type": "option"
|
|
6663
|
+
},
|
|
6664
|
+
"yes": {
|
|
6665
|
+
"char": "y",
|
|
6666
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
6667
|
+
"name": "yes",
|
|
6668
|
+
"allowNo": false,
|
|
6669
|
+
"type": "boolean"
|
|
6674
6670
|
}
|
|
6675
6671
|
},
|
|
6676
6672
|
"hasDynamicHelp": false,
|
|
6677
6673
|
"hiddenAliases": [
|
|
6678
|
-
"
|
|
6674
|
+
"tokens:add",
|
|
6675
|
+
"token:add",
|
|
6676
|
+
"token:create"
|
|
6679
6677
|
],
|
|
6680
|
-
"id": "tokens:
|
|
6678
|
+
"id": "tokens:create",
|
|
6681
6679
|
"pluginAlias": "@sanity/cli",
|
|
6682
6680
|
"pluginName": "@sanity/cli",
|
|
6683
6681
|
"pluginType": "core",
|
|
6684
6682
|
"strict": true,
|
|
6685
6683
|
"enableJsonFlag": true,
|
|
6686
|
-
"telemetry": {
|
|
6687
|
-
"redactedFlags": [
|
|
6688
|
-
{
|
|
6689
|
-
"canonical": "--token",
|
|
6690
|
-
"flags": [
|
|
6691
|
-
"--token",
|
|
6692
|
-
"-t"
|
|
6693
|
-
]
|
|
6694
|
-
}
|
|
6695
|
-
]
|
|
6696
|
-
},
|
|
6697
6684
|
"isESM": true,
|
|
6698
6685
|
"relativePath": [
|
|
6699
6686
|
"dist",
|
|
6700
6687
|
"commands",
|
|
6701
6688
|
"tokens",
|
|
6702
|
-
"
|
|
6689
|
+
"create.js"
|
|
6703
6690
|
]
|
|
6704
6691
|
},
|
|
6705
|
-
"
|
|
6692
|
+
"tokens:delete": {
|
|
6706
6693
|
"aliases": [],
|
|
6707
|
-
"args": {
|
|
6708
|
-
|
|
6694
|
+
"args": {
|
|
6695
|
+
"tokenId": {
|
|
6696
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
6697
|
+
"name": "tokenId",
|
|
6698
|
+
"required": false
|
|
6699
|
+
}
|
|
6700
|
+
},
|
|
6701
|
+
"description": "Delete an API token from a project or organization",
|
|
6709
6702
|
"examples": [
|
|
6703
|
+
{
|
|
6704
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
6705
|
+
"description": "Interactively select and delete an organization token"
|
|
6706
|
+
},
|
|
6707
|
+
{
|
|
6708
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --organization org123 --yes",
|
|
6709
|
+
"description": "Delete an organization token without confirmation"
|
|
6710
|
+
},
|
|
6710
6711
|
{
|
|
6711
6712
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
6712
|
-
"description": "
|
|
6713
|
+
"description": "Interactively select and delete a token"
|
|
6714
|
+
},
|
|
6715
|
+
{
|
|
6716
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
6717
|
+
"description": "Delete a specific token by ID"
|
|
6718
|
+
},
|
|
6719
|
+
{
|
|
6720
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
6721
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
6722
|
+
},
|
|
6723
|
+
{
|
|
6724
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6725
|
+
"description": "Delete a token from a specific project"
|
|
6713
6726
|
}
|
|
6714
6727
|
],
|
|
6715
6728
|
"flags": {
|
|
6716
|
-
"
|
|
6717
|
-
"description": "
|
|
6718
|
-
"
|
|
6729
|
+
"organization": {
|
|
6730
|
+
"description": "Delete a token managed by this organization",
|
|
6731
|
+
"exclusive": [
|
|
6732
|
+
"project"
|
|
6733
|
+
],
|
|
6734
|
+
"name": "organization",
|
|
6719
6735
|
"hasDynamicHelp": false,
|
|
6736
|
+
"helpValue": "<id>",
|
|
6720
6737
|
"multiple": false,
|
|
6721
6738
|
"type": "option"
|
|
6722
6739
|
},
|
|
6723
|
-
"
|
|
6724
|
-
"
|
|
6725
|
-
|
|
6740
|
+
"project": {
|
|
6741
|
+
"aliases": [
|
|
6742
|
+
"project-id"
|
|
6743
|
+
],
|
|
6744
|
+
"char": "p",
|
|
6745
|
+
"deprecateAliases": true,
|
|
6746
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
6747
|
+
"helpGroup": "OVERRIDE",
|
|
6748
|
+
"name": "project",
|
|
6749
|
+
"hasDynamicHelp": false,
|
|
6750
|
+
"helpValue": "<id>",
|
|
6751
|
+
"multiple": false,
|
|
6752
|
+
"type": "option"
|
|
6753
|
+
},
|
|
6754
|
+
"yes": {
|
|
6755
|
+
"char": "y",
|
|
6756
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
6757
|
+
"name": "yes",
|
|
6726
6758
|
"allowNo": false,
|
|
6727
6759
|
"type": "boolean"
|
|
6728
6760
|
}
|
|
6729
6761
|
},
|
|
6730
6762
|
"hasDynamicHelp": false,
|
|
6731
6763
|
"hiddenAliases": [
|
|
6732
|
-
"
|
|
6764
|
+
"token:delete"
|
|
6733
6765
|
],
|
|
6734
|
-
"id": "
|
|
6766
|
+
"id": "tokens:delete",
|
|
6735
6767
|
"pluginAlias": "@sanity/cli",
|
|
6736
6768
|
"pluginName": "@sanity/cli",
|
|
6737
6769
|
"pluginType": "core",
|
|
6738
6770
|
"strict": true,
|
|
6739
|
-
"telemetry": {
|
|
6740
|
-
"redactedFlags": [
|
|
6741
|
-
{
|
|
6742
|
-
"canonical": "--config-path",
|
|
6743
|
-
"flags": [
|
|
6744
|
-
"--config-path"
|
|
6745
|
-
]
|
|
6746
|
-
}
|
|
6747
|
-
]
|
|
6748
|
-
},
|
|
6749
6771
|
"isESM": true,
|
|
6750
6772
|
"relativePath": [
|
|
6751
6773
|
"dist",
|
|
6752
6774
|
"commands",
|
|
6753
|
-
"
|
|
6754
|
-
"
|
|
6775
|
+
"tokens",
|
|
6776
|
+
"delete.js"
|
|
6755
6777
|
]
|
|
6756
6778
|
},
|
|
6757
|
-
"
|
|
6779
|
+
"tokens:list": {
|
|
6758
6780
|
"aliases": [],
|
|
6759
|
-
"args": {
|
|
6760
|
-
|
|
6761
|
-
"description": "Email address to invite",
|
|
6762
|
-
"name": "email",
|
|
6763
|
-
"required": false
|
|
6764
|
-
}
|
|
6765
|
-
},
|
|
6766
|
-
"description": "Invite a new user to the project",
|
|
6781
|
+
"args": {},
|
|
6782
|
+
"description": "List API tokens for a project or organization",
|
|
6767
6783
|
"examples": [
|
|
6768
6784
|
{
|
|
6769
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6770
|
-
"description": "
|
|
6785
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
6786
|
+
"description": "List tokens managed by an organization"
|
|
6771
6787
|
},
|
|
6772
6788
|
{
|
|
6773
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6774
|
-
"description": "
|
|
6789
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6790
|
+
"description": "List tokens for the project"
|
|
6775
6791
|
},
|
|
6776
6792
|
{
|
|
6777
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6778
|
-
"description": "
|
|
6793
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
6794
|
+
"description": "List tokens in JSON format"
|
|
6779
6795
|
},
|
|
6780
6796
|
{
|
|
6781
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6782
|
-
"description": "
|
|
6797
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6798
|
+
"description": "List tokens for a specific project"
|
|
6783
6799
|
}
|
|
6784
6800
|
],
|
|
6785
6801
|
"flags": {
|
|
6802
|
+
"json": {
|
|
6803
|
+
"description": "Format output as json.",
|
|
6804
|
+
"helpGroup": "GLOBAL",
|
|
6805
|
+
"name": "json",
|
|
6806
|
+
"allowNo": false,
|
|
6807
|
+
"type": "boolean"
|
|
6808
|
+
},
|
|
6809
|
+
"organization": {
|
|
6810
|
+
"description": "List tokens managed by this organization",
|
|
6811
|
+
"exclusive": [
|
|
6812
|
+
"project"
|
|
6813
|
+
],
|
|
6814
|
+
"name": "organization",
|
|
6815
|
+
"hasDynamicHelp": false,
|
|
6816
|
+
"helpValue": "<id>",
|
|
6817
|
+
"multiple": false,
|
|
6818
|
+
"type": "option"
|
|
6819
|
+
},
|
|
6786
6820
|
"project": {
|
|
6787
6821
|
"aliases": [
|
|
6788
6822
|
"project-id"
|
|
6789
6823
|
],
|
|
6790
6824
|
"char": "p",
|
|
6791
6825
|
"deprecateAliases": true,
|
|
6792
|
-
"description": "Project ID to
|
|
6826
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
6793
6827
|
"helpGroup": "OVERRIDE",
|
|
6794
6828
|
"name": "project",
|
|
6795
6829
|
"hasDynamicHelp": false,
|
|
6796
6830
|
"helpValue": "<id>",
|
|
6797
6831
|
"multiple": false,
|
|
6798
6832
|
"type": "option"
|
|
6799
|
-
},
|
|
6800
|
-
"role": {
|
|
6801
|
-
"description": "Role to invite the user as",
|
|
6802
|
-
"name": "role",
|
|
6803
|
-
"hasDynamicHelp": false,
|
|
6804
|
-
"multiple": false,
|
|
6805
|
-
"type": "option"
|
|
6806
6833
|
}
|
|
6807
6834
|
},
|
|
6808
6835
|
"hasDynamicHelp": false,
|
|
6809
6836
|
"hiddenAliases": [
|
|
6810
|
-
"
|
|
6837
|
+
"token:list"
|
|
6811
6838
|
],
|
|
6812
|
-
"id": "
|
|
6839
|
+
"id": "tokens:list",
|
|
6813
6840
|
"pluginAlias": "@sanity/cli",
|
|
6814
6841
|
"pluginName": "@sanity/cli",
|
|
6815
6842
|
"pluginType": "core",
|
|
6816
6843
|
"strict": true,
|
|
6844
|
+
"enableJsonFlag": true,
|
|
6817
6845
|
"isESM": true,
|
|
6818
6846
|
"relativePath": [
|
|
6819
6847
|
"dist",
|
|
6820
6848
|
"commands",
|
|
6821
|
-
"
|
|
6822
|
-
"
|
|
6849
|
+
"tokens",
|
|
6850
|
+
"list.js"
|
|
6823
6851
|
]
|
|
6824
6852
|
},
|
|
6825
|
-
"
|
|
6853
|
+
"tokens:rotate": {
|
|
6826
6854
|
"aliases": [],
|
|
6827
6855
|
"args": {},
|
|
6828
|
-
"description": "
|
|
6856
|
+
"description": "Rotate an API token, replacing its secret with a new one",
|
|
6829
6857
|
"examples": [
|
|
6830
6858
|
{
|
|
6831
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6832
|
-
"description": "
|
|
6833
|
-
},
|
|
6834
|
-
{
|
|
6835
|
-
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6836
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6859
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
|
|
6860
|
+
"description": "Rotate the token piped on standard input"
|
|
6837
6861
|
},
|
|
6838
6862
|
{
|
|
6839
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6840
|
-
"description": "
|
|
6863
|
+
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
6864
|
+
"description": "Rotate a token read from a file"
|
|
6841
6865
|
},
|
|
6842
6866
|
{
|
|
6843
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6844
|
-
"description": "
|
|
6867
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
|
|
6868
|
+
"description": "Output the rotated token as JSON"
|
|
6845
6869
|
}
|
|
6846
6870
|
],
|
|
6847
6871
|
"flags": {
|
|
6848
|
-
"
|
|
6849
|
-
"
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
"
|
|
6853
|
-
"deprecateAliases": true,
|
|
6854
|
-
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6855
|
-
"helpGroup": "OVERRIDE",
|
|
6856
|
-
"name": "project",
|
|
6857
|
-
"hasDynamicHelp": false,
|
|
6858
|
-
"helpValue": "<id>",
|
|
6859
|
-
"multiple": false,
|
|
6860
|
-
"type": "option"
|
|
6861
|
-
},
|
|
6862
|
-
"invitations": {
|
|
6863
|
-
"description": "Includes or excludes pending invitations",
|
|
6864
|
-
"name": "invitations",
|
|
6865
|
-
"allowNo": true,
|
|
6866
|
-
"type": "boolean"
|
|
6867
|
-
},
|
|
6868
|
-
"order": {
|
|
6869
|
-
"description": "Sort output ascending/descending",
|
|
6870
|
-
"name": "order",
|
|
6871
|
-
"default": "asc",
|
|
6872
|
-
"hasDynamicHelp": false,
|
|
6873
|
-
"multiple": false,
|
|
6874
|
-
"options": [
|
|
6875
|
-
"asc",
|
|
6876
|
-
"desc"
|
|
6877
|
-
],
|
|
6878
|
-
"type": "option"
|
|
6879
|
-
},
|
|
6880
|
-
"robots": {
|
|
6881
|
-
"description": "Includes or excludes robots (token users)",
|
|
6882
|
-
"name": "robots",
|
|
6883
|
-
"allowNo": true,
|
|
6872
|
+
"json": {
|
|
6873
|
+
"description": "Format output as json.",
|
|
6874
|
+
"helpGroup": "GLOBAL",
|
|
6875
|
+
"name": "json",
|
|
6876
|
+
"allowNo": false,
|
|
6884
6877
|
"type": "boolean"
|
|
6885
6878
|
},
|
|
6886
|
-
"
|
|
6887
|
-
"
|
|
6888
|
-
"
|
|
6889
|
-
"
|
|
6879
|
+
"token": {
|
|
6880
|
+
"char": "t",
|
|
6881
|
+
"description": "Token to rotate (prefer standard input to keep it out of shell history)",
|
|
6882
|
+
"name": "token",
|
|
6890
6883
|
"hasDynamicHelp": false,
|
|
6884
|
+
"helpValue": "<token>",
|
|
6891
6885
|
"multiple": false,
|
|
6892
|
-
"options": [
|
|
6893
|
-
"id",
|
|
6894
|
-
"name",
|
|
6895
|
-
"role",
|
|
6896
|
-
"date"
|
|
6897
|
-
],
|
|
6898
6886
|
"type": "option"
|
|
6899
6887
|
}
|
|
6900
6888
|
},
|
|
6901
6889
|
"hasDynamicHelp": false,
|
|
6902
6890
|
"hiddenAliases": [
|
|
6903
|
-
"
|
|
6891
|
+
"token:rotate"
|
|
6904
6892
|
],
|
|
6905
|
-
"id": "
|
|
6893
|
+
"id": "tokens:rotate",
|
|
6906
6894
|
"pluginAlias": "@sanity/cli",
|
|
6907
6895
|
"pluginName": "@sanity/cli",
|
|
6908
6896
|
"pluginType": "core",
|
|
6909
6897
|
"strict": true,
|
|
6898
|
+
"enableJsonFlag": true,
|
|
6899
|
+
"telemetry": {
|
|
6900
|
+
"redactedFlags": [
|
|
6901
|
+
{
|
|
6902
|
+
"canonical": "--token",
|
|
6903
|
+
"flags": [
|
|
6904
|
+
"--token",
|
|
6905
|
+
"-t"
|
|
6906
|
+
]
|
|
6907
|
+
}
|
|
6908
|
+
]
|
|
6909
|
+
},
|
|
6910
6910
|
"isESM": true,
|
|
6911
6911
|
"relativePath": [
|
|
6912
6912
|
"dist",
|
|
6913
6913
|
"commands",
|
|
6914
|
-
"
|
|
6915
|
-
"
|
|
6914
|
+
"tokens",
|
|
6915
|
+
"rotate.js"
|
|
6916
6916
|
]
|
|
6917
6917
|
},
|
|
6918
6918
|
"context:documents:content": {
|
|
@@ -8110,6 +8110,67 @@
|
|
|
8110
8110
|
"resolve.js"
|
|
8111
8111
|
]
|
|
8112
8112
|
},
|
|
8113
|
+
"context:jobs:get": {
|
|
8114
|
+
"aliases": [],
|
|
8115
|
+
"args": {
|
|
8116
|
+
"knowledgeBaseId": {
|
|
8117
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
8118
|
+
"name": "knowledgeBaseId",
|
|
8119
|
+
"required": true
|
|
8120
|
+
},
|
|
8121
|
+
"jobId": {
|
|
8122
|
+
"description": "The job ID returned by the endpoint that started the work.",
|
|
8123
|
+
"name": "jobId",
|
|
8124
|
+
"required": true
|
|
8125
|
+
}
|
|
8126
|
+
},
|
|
8127
|
+
"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.",
|
|
8128
|
+
"examples": [
|
|
8129
|
+
{
|
|
8130
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
8131
|
+
"description": "Get a job"
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
8135
|
+
"description": "Get a job, as JSON"
|
|
8136
|
+
}
|
|
8137
|
+
],
|
|
8138
|
+
"flags": {
|
|
8139
|
+
"json": {
|
|
8140
|
+
"description": "Format output as json.",
|
|
8141
|
+
"helpGroup": "GLOBAL",
|
|
8142
|
+
"name": "json",
|
|
8143
|
+
"allowNo": false,
|
|
8144
|
+
"type": "boolean"
|
|
8145
|
+
},
|
|
8146
|
+
"watch": {
|
|
8147
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
8148
|
+
"name": "watch",
|
|
8149
|
+
"allowNo": false,
|
|
8150
|
+
"type": "boolean"
|
|
8151
|
+
}
|
|
8152
|
+
},
|
|
8153
|
+
"hasDynamicHelp": false,
|
|
8154
|
+
"hiddenAliases": [],
|
|
8155
|
+
"id": "context:jobs:get",
|
|
8156
|
+
"pluginAlias": "@sanity/cli",
|
|
8157
|
+
"pluginName": "@sanity/cli",
|
|
8158
|
+
"pluginType": "core",
|
|
8159
|
+
"strict": true,
|
|
8160
|
+
"summary": "Get a job",
|
|
8161
|
+
"enableJsonFlag": true,
|
|
8162
|
+
"telemetry": {
|
|
8163
|
+
"redactedFlags": []
|
|
8164
|
+
},
|
|
8165
|
+
"isESM": true,
|
|
8166
|
+
"relativePath": [
|
|
8167
|
+
"dist",
|
|
8168
|
+
"commands",
|
|
8169
|
+
"context",
|
|
8170
|
+
"jobs",
|
|
8171
|
+
"get.js"
|
|
8172
|
+
]
|
|
8173
|
+
},
|
|
8113
8174
|
"context:mcp:create": {
|
|
8114
8175
|
"aliases": [],
|
|
8115
8176
|
"args": {
|
|
@@ -9483,67 +9544,6 @@
|
|
|
9483
9544
|
"upload.js"
|
|
9484
9545
|
]
|
|
9485
9546
|
},
|
|
9486
|
-
"context:jobs:get": {
|
|
9487
|
-
"aliases": [],
|
|
9488
|
-
"args": {
|
|
9489
|
-
"knowledgeBaseId": {
|
|
9490
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
9491
|
-
"name": "knowledgeBaseId",
|
|
9492
|
-
"required": true
|
|
9493
|
-
},
|
|
9494
|
-
"jobId": {
|
|
9495
|
-
"description": "The job ID returned by the endpoint that started the work.",
|
|
9496
|
-
"name": "jobId",
|
|
9497
|
-
"required": true
|
|
9498
|
-
}
|
|
9499
|
-
},
|
|
9500
|
-
"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.",
|
|
9501
|
-
"examples": [
|
|
9502
|
-
{
|
|
9503
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
9504
|
-
"description": "Get a job"
|
|
9505
|
-
},
|
|
9506
|
-
{
|
|
9507
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
9508
|
-
"description": "Get a job, as JSON"
|
|
9509
|
-
}
|
|
9510
|
-
],
|
|
9511
|
-
"flags": {
|
|
9512
|
-
"json": {
|
|
9513
|
-
"description": "Format output as json.",
|
|
9514
|
-
"helpGroup": "GLOBAL",
|
|
9515
|
-
"name": "json",
|
|
9516
|
-
"allowNo": false,
|
|
9517
|
-
"type": "boolean"
|
|
9518
|
-
},
|
|
9519
|
-
"watch": {
|
|
9520
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
9521
|
-
"name": "watch",
|
|
9522
|
-
"allowNo": false,
|
|
9523
|
-
"type": "boolean"
|
|
9524
|
-
}
|
|
9525
|
-
},
|
|
9526
|
-
"hasDynamicHelp": false,
|
|
9527
|
-
"hiddenAliases": [],
|
|
9528
|
-
"id": "context:jobs:get",
|
|
9529
|
-
"pluginAlias": "@sanity/cli",
|
|
9530
|
-
"pluginName": "@sanity/cli",
|
|
9531
|
-
"pluginType": "core",
|
|
9532
|
-
"strict": true,
|
|
9533
|
-
"summary": "Get a job",
|
|
9534
|
-
"enableJsonFlag": true,
|
|
9535
|
-
"telemetry": {
|
|
9536
|
-
"redactedFlags": []
|
|
9537
|
-
},
|
|
9538
|
-
"isESM": true,
|
|
9539
|
-
"relativePath": [
|
|
9540
|
-
"dist",
|
|
9541
|
-
"commands",
|
|
9542
|
-
"context",
|
|
9543
|
-
"jobs",
|
|
9544
|
-
"get.js"
|
|
9545
|
-
]
|
|
9546
|
-
},
|
|
9547
9547
|
"datasets:alias:create": {
|
|
9548
9548
|
"aliases": [],
|
|
9549
9549
|
"args": {
|
|
@@ -10351,5 +10351,5 @@
|
|
|
10351
10351
|
]
|
|
10352
10352
|
}
|
|
10353
10353
|
},
|
|
10354
|
-
"version": "8.
|
|
10354
|
+
"version": "8.30.0"
|
|
10355
10355
|
}
|