@sanity/cli 8.9.1 → 8.11.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.
@@ -737,6 +737,15 @@
737
737
  "allowNo": true,
738
738
  "type": "boolean"
739
739
  },
740
+ "install": {
741
+ "description": "Install dependencies after scaffolding",
742
+ "exclusive": [
743
+ "bare"
744
+ ],
745
+ "name": "install",
746
+ "allowNo": true,
747
+ "type": "boolean"
748
+ },
740
749
  "mcp": {
741
750
  "description": "Enable AI editor integration (MCP) setup",
742
751
  "name": "mcp",
@@ -1713,167 +1722,6 @@
1713
1722
  "list.js"
1714
1723
  ]
1715
1724
  },
1716
- "cors:add": {
1717
- "aliases": [],
1718
- "args": {
1719
- "origin": {
1720
- "description": "Origin to allow (e.g., https://example.com)",
1721
- "name": "origin",
1722
- "required": true
1723
- }
1724
- },
1725
- "description": "Add a CORS origin to the project",
1726
- "examples": [
1727
- {
1728
- "command": "<%= config.bin %> <%= command.id %>",
1729
- "description": "Interactively add a CORS origin"
1730
- },
1731
- {
1732
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1733
- "description": "Add a localhost origin without credentials"
1734
- },
1735
- {
1736
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1737
- "description": "Add a production origin with credentials allowed"
1738
- },
1739
- {
1740
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1741
- "description": "Add a CORS origin for a specific project"
1742
- }
1743
- ],
1744
- "flags": {
1745
- "project-id": {
1746
- "char": "p",
1747
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1748
- "helpGroup": "OVERRIDE",
1749
- "name": "project-id",
1750
- "hasDynamicHelp": false,
1751
- "helpValue": "<id>",
1752
- "multiple": false,
1753
- "type": "option"
1754
- },
1755
- "credentials": {
1756
- "description": "Allow credentials (token/cookie) to be sent from this origin",
1757
- "name": "credentials",
1758
- "required": false,
1759
- "allowNo": true,
1760
- "type": "boolean"
1761
- },
1762
- "yes": {
1763
- "char": "y",
1764
- "description": "Confirm risky wildcard origins without prompting",
1765
- "name": "yes",
1766
- "allowNo": false,
1767
- "type": "boolean"
1768
- }
1769
- },
1770
- "hasDynamicHelp": false,
1771
- "hiddenAliases": [],
1772
- "id": "cors:add",
1773
- "pluginAlias": "@sanity/cli",
1774
- "pluginName": "@sanity/cli",
1775
- "pluginType": "core",
1776
- "strict": true,
1777
- "isESM": true,
1778
- "relativePath": [
1779
- "dist",
1780
- "commands",
1781
- "cors",
1782
- "add.js"
1783
- ]
1784
- },
1785
- "cors:delete": {
1786
- "aliases": [],
1787
- "args": {
1788
- "origin": {
1789
- "description": "Origin to delete (will prompt if not provided)",
1790
- "name": "origin",
1791
- "required": false
1792
- }
1793
- },
1794
- "description": "Delete a CORS origin from the project",
1795
- "examples": [
1796
- {
1797
- "command": "<%= config.bin %> <%= command.id %>",
1798
- "description": "Interactively select and delete a CORS origin"
1799
- },
1800
- {
1801
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
1802
- "description": "Delete a specific CORS origin"
1803
- },
1804
- {
1805
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1806
- "description": "Delete a CORS origin from a specific project"
1807
- }
1808
- ],
1809
- "flags": {
1810
- "project-id": {
1811
- "char": "p",
1812
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1813
- "helpGroup": "OVERRIDE",
1814
- "name": "project-id",
1815
- "hasDynamicHelp": false,
1816
- "helpValue": "<id>",
1817
- "multiple": false,
1818
- "type": "option"
1819
- }
1820
- },
1821
- "hasDynamicHelp": false,
1822
- "hiddenAliases": [],
1823
- "id": "cors:delete",
1824
- "pluginAlias": "@sanity/cli",
1825
- "pluginName": "@sanity/cli",
1826
- "pluginType": "core",
1827
- "strict": true,
1828
- "isESM": true,
1829
- "relativePath": [
1830
- "dist",
1831
- "commands",
1832
- "cors",
1833
- "delete.js"
1834
- ]
1835
- },
1836
- "cors:list": {
1837
- "aliases": [],
1838
- "args": {},
1839
- "description": "List CORS origins for the project",
1840
- "examples": [
1841
- {
1842
- "command": "<%= config.bin %> <%= command.id %>",
1843
- "description": "List CORS origins for the project"
1844
- },
1845
- {
1846
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1847
- "description": "List CORS origins for a specific project"
1848
- }
1849
- ],
1850
- "flags": {
1851
- "project-id": {
1852
- "char": "p",
1853
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1854
- "helpGroup": "OVERRIDE",
1855
- "name": "project-id",
1856
- "hasDynamicHelp": false,
1857
- "helpValue": "<id>",
1858
- "multiple": false,
1859
- "type": "option"
1860
- }
1861
- },
1862
- "hasDynamicHelp": false,
1863
- "hiddenAliases": [],
1864
- "id": "cors:list",
1865
- "pluginAlias": "@sanity/cli",
1866
- "pluginName": "@sanity/cli",
1867
- "pluginType": "core",
1868
- "strict": true,
1869
- "isESM": true,
1870
- "relativePath": [
1871
- "dist",
1872
- "commands",
1873
- "cors",
1874
- "list.js"
1875
- ]
1876
- },
1877
1725
  "context:build": {
1878
1726
  "aliases": [],
1879
1727
  "args": {
@@ -2261,63 +2109,38 @@
2261
2109
  "update.js"
2262
2110
  ]
2263
2111
  },
2264
- "datasets:copy": {
2112
+ "cors:add": {
2265
2113
  "aliases": [],
2266
2114
  "args": {
2267
- "source": {
2268
- "description": "Name of the dataset to copy from",
2269
- "name": "source",
2270
- "required": false
2271
- },
2272
- "target": {
2273
- "description": "Name of the dataset to copy to",
2274
- "name": "target",
2275
- "required": false
2115
+ "origin": {
2116
+ "description": "Origin to allow (e.g., https://example.com)",
2117
+ "name": "origin",
2118
+ "required": true
2276
2119
  }
2277
2120
  },
2278
- "description": "Copy a dataset or manage copy jobs",
2121
+ "description": "Add a CORS origin to the project",
2279
2122
  "examples": [
2280
2123
  {
2281
2124
  "command": "<%= config.bin %> <%= command.id %>",
2282
- "description": "Interactively copy a dataset"
2283
- },
2284
- {
2285
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
2286
- "description": "Copy from source-dataset (prompts for target)"
2287
- },
2288
- {
2289
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2290
- "description": "Copy from source-dataset to target-dataset"
2291
- },
2292
- {
2293
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2294
- "description": "Copy without preserving document history (faster for large datasets)"
2295
- },
2296
- {
2297
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2298
- "description": "Copy without content release documents"
2299
- },
2300
- {
2301
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
2302
- "description": "Start copy job without waiting for completion"
2125
+ "description": "Interactively add a CORS origin"
2303
2126
  },
2304
2127
  {
2305
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2306
- "description": "Attach to a running copy job to follow progress"
2128
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2129
+ "description": "Add a localhost origin without credentials"
2307
2130
  },
2308
2131
  {
2309
- "command": "<%= config.bin %> <%= command.id %> --list",
2310
- "description": "List all dataset copy jobs"
2132
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2133
+ "description": "Add a production origin with credentials allowed"
2311
2134
  },
2312
2135
  {
2313
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2314
- "description": "List copy jobs with pagination"
2136
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2137
+ "description": "Add a CORS origin for a specific project"
2315
2138
  }
2316
2139
  ],
2317
2140
  "flags": {
2318
2141
  "project-id": {
2319
2142
  "char": "p",
2320
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
2143
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2321
2144
  "helpGroup": "OVERRIDE",
2322
2145
  "name": "project-id",
2323
2146
  "hasDynamicHelp": false,
@@ -2325,37 +2148,223 @@
2325
2148
  "multiple": false,
2326
2149
  "type": "option"
2327
2150
  },
2328
- "attach": {
2329
- "description": "Attach to the running copy process to show progress",
2330
- "exclusive": [
2331
- "list",
2332
- "detach",
2333
- "skip-history"
2334
- ],
2335
- "name": "attach",
2151
+ "credentials": {
2152
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2153
+ "name": "credentials",
2336
2154
  "required": false,
2337
- "hasDynamicHelp": false,
2338
- "multiple": false,
2339
- "type": "option"
2155
+ "allowNo": true,
2156
+ "type": "boolean"
2340
2157
  },
2341
- "detach": {
2342
- "description": "Start the copy without waiting for it to finish",
2343
- "exclusive": [
2344
- "list",
2345
- "attach"
2346
- ],
2347
- "name": "detach",
2348
- "required": false,
2158
+ "yes": {
2159
+ "char": "y",
2160
+ "description": "Confirm risky wildcard origins without prompting",
2161
+ "name": "yes",
2349
2162
  "allowNo": false,
2350
2163
  "type": "boolean"
2351
- },
2352
- "limit": {
2353
- "dependsOn": [
2354
- "list"
2355
- ],
2356
- "description": "Maximum number of jobs returned (default 10, max 1000)",
2357
- "name": "limit",
2358
- "required": false,
2164
+ }
2165
+ },
2166
+ "hasDynamicHelp": false,
2167
+ "hiddenAliases": [],
2168
+ "id": "cors:add",
2169
+ "pluginAlias": "@sanity/cli",
2170
+ "pluginName": "@sanity/cli",
2171
+ "pluginType": "core",
2172
+ "strict": true,
2173
+ "isESM": true,
2174
+ "relativePath": [
2175
+ "dist",
2176
+ "commands",
2177
+ "cors",
2178
+ "add.js"
2179
+ ]
2180
+ },
2181
+ "cors:delete": {
2182
+ "aliases": [],
2183
+ "args": {
2184
+ "origin": {
2185
+ "description": "Origin to delete (will prompt if not provided)",
2186
+ "name": "origin",
2187
+ "required": false
2188
+ }
2189
+ },
2190
+ "description": "Delete a CORS origin from the project",
2191
+ "examples": [
2192
+ {
2193
+ "command": "<%= config.bin %> <%= command.id %>",
2194
+ "description": "Interactively select and delete a CORS origin"
2195
+ },
2196
+ {
2197
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2198
+ "description": "Delete a specific CORS origin"
2199
+ },
2200
+ {
2201
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2202
+ "description": "Delete a CORS origin from a specific project"
2203
+ }
2204
+ ],
2205
+ "flags": {
2206
+ "project-id": {
2207
+ "char": "p",
2208
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2209
+ "helpGroup": "OVERRIDE",
2210
+ "name": "project-id",
2211
+ "hasDynamicHelp": false,
2212
+ "helpValue": "<id>",
2213
+ "multiple": false,
2214
+ "type": "option"
2215
+ }
2216
+ },
2217
+ "hasDynamicHelp": false,
2218
+ "hiddenAliases": [],
2219
+ "id": "cors:delete",
2220
+ "pluginAlias": "@sanity/cli",
2221
+ "pluginName": "@sanity/cli",
2222
+ "pluginType": "core",
2223
+ "strict": true,
2224
+ "isESM": true,
2225
+ "relativePath": [
2226
+ "dist",
2227
+ "commands",
2228
+ "cors",
2229
+ "delete.js"
2230
+ ]
2231
+ },
2232
+ "cors:list": {
2233
+ "aliases": [],
2234
+ "args": {},
2235
+ "description": "List CORS origins for the project",
2236
+ "examples": [
2237
+ {
2238
+ "command": "<%= config.bin %> <%= command.id %>",
2239
+ "description": "List CORS origins for the project"
2240
+ },
2241
+ {
2242
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2243
+ "description": "List CORS origins for a specific project"
2244
+ }
2245
+ ],
2246
+ "flags": {
2247
+ "project-id": {
2248
+ "char": "p",
2249
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2250
+ "helpGroup": "OVERRIDE",
2251
+ "name": "project-id",
2252
+ "hasDynamicHelp": false,
2253
+ "helpValue": "<id>",
2254
+ "multiple": false,
2255
+ "type": "option"
2256
+ }
2257
+ },
2258
+ "hasDynamicHelp": false,
2259
+ "hiddenAliases": [],
2260
+ "id": "cors:list",
2261
+ "pluginAlias": "@sanity/cli",
2262
+ "pluginName": "@sanity/cli",
2263
+ "pluginType": "core",
2264
+ "strict": true,
2265
+ "isESM": true,
2266
+ "relativePath": [
2267
+ "dist",
2268
+ "commands",
2269
+ "cors",
2270
+ "list.js"
2271
+ ]
2272
+ },
2273
+ "datasets:copy": {
2274
+ "aliases": [],
2275
+ "args": {
2276
+ "source": {
2277
+ "description": "Name of the dataset to copy from",
2278
+ "name": "source",
2279
+ "required": false
2280
+ },
2281
+ "target": {
2282
+ "description": "Name of the dataset to copy to",
2283
+ "name": "target",
2284
+ "required": false
2285
+ }
2286
+ },
2287
+ "description": "Copy a dataset or manage copy jobs",
2288
+ "examples": [
2289
+ {
2290
+ "command": "<%= config.bin %> <%= command.id %>",
2291
+ "description": "Interactively copy a dataset"
2292
+ },
2293
+ {
2294
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
2295
+ "description": "Copy from source-dataset (prompts for target)"
2296
+ },
2297
+ {
2298
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2299
+ "description": "Copy from source-dataset to target-dataset"
2300
+ },
2301
+ {
2302
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2303
+ "description": "Copy without preserving document history (faster for large datasets)"
2304
+ },
2305
+ {
2306
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2307
+ "description": "Copy without content release documents"
2308
+ },
2309
+ {
2310
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
2311
+ "description": "Start copy job without waiting for completion"
2312
+ },
2313
+ {
2314
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2315
+ "description": "Attach to a running copy job to follow progress"
2316
+ },
2317
+ {
2318
+ "command": "<%= config.bin %> <%= command.id %> --list",
2319
+ "description": "List all dataset copy jobs"
2320
+ },
2321
+ {
2322
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2323
+ "description": "List copy jobs with pagination"
2324
+ }
2325
+ ],
2326
+ "flags": {
2327
+ "project-id": {
2328
+ "char": "p",
2329
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
2330
+ "helpGroup": "OVERRIDE",
2331
+ "name": "project-id",
2332
+ "hasDynamicHelp": false,
2333
+ "helpValue": "<id>",
2334
+ "multiple": false,
2335
+ "type": "option"
2336
+ },
2337
+ "attach": {
2338
+ "description": "Attach to the running copy process to show progress",
2339
+ "exclusive": [
2340
+ "list",
2341
+ "detach",
2342
+ "skip-history"
2343
+ ],
2344
+ "name": "attach",
2345
+ "required": false,
2346
+ "hasDynamicHelp": false,
2347
+ "multiple": false,
2348
+ "type": "option"
2349
+ },
2350
+ "detach": {
2351
+ "description": "Start the copy without waiting for it to finish",
2352
+ "exclusive": [
2353
+ "list",
2354
+ "attach"
2355
+ ],
2356
+ "name": "detach",
2357
+ "required": false,
2358
+ "allowNo": false,
2359
+ "type": "boolean"
2360
+ },
2361
+ "limit": {
2362
+ "dependsOn": [
2363
+ "list"
2364
+ ],
2365
+ "description": "Maximum number of jobs returned (default 10, max 1000)",
2366
+ "name": "limit",
2367
+ "required": false,
2359
2368
  "hasDynamicHelp": false,
2360
2369
  "multiple": false,
2361
2370
  "type": "option"
@@ -2883,37 +2892,161 @@
2883
2892
  "list.js"
2884
2893
  ]
2885
2894
  },
2886
- "documents:create": {
2895
+ "docs:browse": {
2896
+ "aliases": [],
2897
+ "args": {},
2898
+ "description": "Open Sanity docs in your browser",
2899
+ "flags": {},
2900
+ "hasDynamicHelp": false,
2901
+ "hiddenAliases": [],
2902
+ "id": "docs:browse",
2903
+ "pluginAlias": "@sanity/cli",
2904
+ "pluginName": "@sanity/cli",
2905
+ "pluginType": "core",
2906
+ "strict": true,
2907
+ "enableJsonFlag": false,
2908
+ "isESM": true,
2909
+ "relativePath": [
2910
+ "dist",
2911
+ "commands",
2912
+ "docs",
2913
+ "browse.js"
2914
+ ]
2915
+ },
2916
+ "docs:read": {
2887
2917
  "aliases": [],
2888
2918
  "args": {
2889
- "file": {
2890
- "description": "JSON file to create document(s) from",
2891
- "name": "file",
2892
- "required": false
2919
+ "path": {
2920
+ "description": "Path or URL to article, found in search results and docs content as links",
2921
+ "name": "path",
2922
+ "required": true
2893
2923
  }
2894
2924
  },
2895
- "description": "Create one or more documents",
2925
+ "description": "Read an article in terminal",
2896
2926
  "examples": [
2897
2927
  {
2898
- "command": "<%= config.bin %> <%= command.id %> myDocument.json",
2899
- "description": "Create the document specified in \"myDocument.json\""
2900
- },
2901
- {
2902
- "command": "<%= config.bin %> <%= command.id %>",
2903
- "description": "Open configured $EDITOR and create the specified document(s)"
2928
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2929
+ "description": "Read as markdown in terminal"
2904
2930
  },
2905
2931
  {
2906
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
2907
- "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"
2932
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2933
+ "description": "Read using full URL"
2908
2934
  },
2909
2935
  {
2910
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
2911
- "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
2936
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2937
+ "description": "Open in web browser"
2912
2938
  },
2913
2939
  {
2914
- "command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
2915
- "description": "Create documents in a specific project"
2916
- }
2940
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2941
+ "description": "Open using full URL in web browser"
2942
+ }
2943
+ ],
2944
+ "flags": {
2945
+ "web": {
2946
+ "aliases": [
2947
+ "w"
2948
+ ],
2949
+ "description": "Open in a web browser",
2950
+ "name": "web",
2951
+ "allowNo": false,
2952
+ "type": "boolean"
2953
+ }
2954
+ },
2955
+ "hasDynamicHelp": false,
2956
+ "hiddenAliases": [],
2957
+ "id": "docs:read",
2958
+ "pluginAlias": "@sanity/cli",
2959
+ "pluginName": "@sanity/cli",
2960
+ "pluginType": "core",
2961
+ "strict": true,
2962
+ "isESM": true,
2963
+ "relativePath": [
2964
+ "dist",
2965
+ "commands",
2966
+ "docs",
2967
+ "read.js"
2968
+ ]
2969
+ },
2970
+ "docs:search": {
2971
+ "aliases": [],
2972
+ "args": {
2973
+ "query": {
2974
+ "description": "Search query for documentation",
2975
+ "name": "query",
2976
+ "required": true
2977
+ }
2978
+ },
2979
+ "description": "Search Sanity docs",
2980
+ "examples": [
2981
+ {
2982
+ "command": "<%= config.bin %> <%= command.id %> schema",
2983
+ "description": "Search for documentation about schemas"
2984
+ },
2985
+ {
2986
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2987
+ "description": "Search with phrase"
2988
+ },
2989
+ {
2990
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2991
+ "description": "Limit search results"
2992
+ }
2993
+ ],
2994
+ "flags": {
2995
+ "limit": {
2996
+ "description": "Maximum number of results to return",
2997
+ "name": "limit",
2998
+ "default": 10,
2999
+ "hasDynamicHelp": false,
3000
+ "multiple": false,
3001
+ "type": "option"
3002
+ }
3003
+ },
3004
+ "hasDynamicHelp": false,
3005
+ "hiddenAliases": [],
3006
+ "id": "docs:search",
3007
+ "pluginAlias": "@sanity/cli",
3008
+ "pluginName": "@sanity/cli",
3009
+ "pluginType": "core",
3010
+ "strict": true,
3011
+ "isESM": true,
3012
+ "relativePath": [
3013
+ "dist",
3014
+ "commands",
3015
+ "docs",
3016
+ "search.js"
3017
+ ]
3018
+ },
3019
+ "documents:create": {
3020
+ "aliases": [],
3021
+ "args": {
3022
+ "file": {
3023
+ "description": "JSON file to create document(s) from",
3024
+ "name": "file",
3025
+ "required": false
3026
+ }
3027
+ },
3028
+ "description": "Create one or more documents",
3029
+ "examples": [
3030
+ {
3031
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json",
3032
+ "description": "Create the document specified in \"myDocument.json\""
3033
+ },
3034
+ {
3035
+ "command": "<%= config.bin %> <%= command.id %>",
3036
+ "description": "Open configured $EDITOR and create the specified document(s)"
3037
+ },
3038
+ {
3039
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
3040
+ "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"
3041
+ },
3042
+ {
3043
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
3044
+ "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
3045
+ },
3046
+ {
3047
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
3048
+ "description": "Create documents in a specific project"
3049
+ }
2917
3050
  ],
2918
3051
  "flags": {
2919
3052
  "project-id": {
@@ -3356,130 +3489,6 @@
3356
3489
  "validate.js"
3357
3490
  ]
3358
3491
  },
3359
- "docs:browse": {
3360
- "aliases": [],
3361
- "args": {},
3362
- "description": "Open Sanity docs in your browser",
3363
- "flags": {},
3364
- "hasDynamicHelp": false,
3365
- "hiddenAliases": [],
3366
- "id": "docs:browse",
3367
- "pluginAlias": "@sanity/cli",
3368
- "pluginName": "@sanity/cli",
3369
- "pluginType": "core",
3370
- "strict": true,
3371
- "enableJsonFlag": false,
3372
- "isESM": true,
3373
- "relativePath": [
3374
- "dist",
3375
- "commands",
3376
- "docs",
3377
- "browse.js"
3378
- ]
3379
- },
3380
- "docs:read": {
3381
- "aliases": [],
3382
- "args": {
3383
- "path": {
3384
- "description": "Path or URL to article, found in search results and docs content as links",
3385
- "name": "path",
3386
- "required": true
3387
- }
3388
- },
3389
- "description": "Read an article in terminal",
3390
- "examples": [
3391
- {
3392
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3393
- "description": "Read as markdown in terminal"
3394
- },
3395
- {
3396
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3397
- "description": "Read using full URL"
3398
- },
3399
- {
3400
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3401
- "description": "Open in web browser"
3402
- },
3403
- {
3404
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3405
- "description": "Open using full URL in web browser"
3406
- }
3407
- ],
3408
- "flags": {
3409
- "web": {
3410
- "aliases": [
3411
- "w"
3412
- ],
3413
- "description": "Open in a web browser",
3414
- "name": "web",
3415
- "allowNo": false,
3416
- "type": "boolean"
3417
- }
3418
- },
3419
- "hasDynamicHelp": false,
3420
- "hiddenAliases": [],
3421
- "id": "docs:read",
3422
- "pluginAlias": "@sanity/cli",
3423
- "pluginName": "@sanity/cli",
3424
- "pluginType": "core",
3425
- "strict": true,
3426
- "isESM": true,
3427
- "relativePath": [
3428
- "dist",
3429
- "commands",
3430
- "docs",
3431
- "read.js"
3432
- ]
3433
- },
3434
- "docs:search": {
3435
- "aliases": [],
3436
- "args": {
3437
- "query": {
3438
- "description": "Search query for documentation",
3439
- "name": "query",
3440
- "required": true
3441
- }
3442
- },
3443
- "description": "Search Sanity docs",
3444
- "examples": [
3445
- {
3446
- "command": "<%= config.bin %> <%= command.id %> schema",
3447
- "description": "Search for documentation about schemas"
3448
- },
3449
- {
3450
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3451
- "description": "Search with phrase"
3452
- },
3453
- {
3454
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3455
- "description": "Limit search results"
3456
- }
3457
- ],
3458
- "flags": {
3459
- "limit": {
3460
- "description": "Maximum number of results to return",
3461
- "name": "limit",
3462
- "default": 10,
3463
- "hasDynamicHelp": false,
3464
- "multiple": false,
3465
- "type": "option"
3466
- }
3467
- },
3468
- "hasDynamicHelp": false,
3469
- "hiddenAliases": [],
3470
- "id": "docs:search",
3471
- "pluginAlias": "@sanity/cli",
3472
- "pluginName": "@sanity/cli",
3473
- "pluginType": "core",
3474
- "strict": true,
3475
- "isESM": true,
3476
- "relativePath": [
3477
- "dist",
3478
- "commands",
3479
- "docs",
3480
- "search.js"
3481
- ]
3482
- },
3483
3492
  "graphql:deploy": {
3484
3493
  "aliases": [],
3485
3494
  "args": {},
@@ -3979,20 +3988,59 @@
3979
3988
  "logs.js"
3980
3989
  ]
3981
3990
  },
3982
- "mcp:configure": {
3991
+ "manifest:extract": {
3983
3992
  "aliases": [],
3984
3993
  "args": {},
3985
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
3994
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3986
3995
  "examples": [
3987
3996
  {
3988
3997
  "command": "<%= config.bin %> <%= command.id %>",
3989
- "description": "Configure Sanity MCP server for detected AI editors"
3998
+ "description": "Extracts manifests"
3999
+ },
4000
+ {
4001
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4002
+ "description": "Extracts manifests into /public/static"
3990
4003
  }
3991
4004
  ],
3992
- "flags": {},
4005
+ "flags": {
4006
+ "path": {
4007
+ "description": "Optional path to specify destination directory of the manifest files",
4008
+ "name": "path",
4009
+ "default": "dist/static",
4010
+ "hasDynamicHelp": false,
4011
+ "multiple": false,
4012
+ "type": "option"
4013
+ }
4014
+ },
3993
4015
  "hasDynamicHelp": false,
3994
4016
  "hiddenAliases": [],
3995
- "id": "mcp:configure",
4017
+ "id": "manifest:extract",
4018
+ "pluginAlias": "@sanity/cli",
4019
+ "pluginName": "@sanity/cli",
4020
+ "pluginType": "core",
4021
+ "strict": true,
4022
+ "isESM": true,
4023
+ "relativePath": [
4024
+ "dist",
4025
+ "commands",
4026
+ "manifest",
4027
+ "extract.js"
4028
+ ]
4029
+ },
4030
+ "mcp:configure": {
4031
+ "aliases": [],
4032
+ "args": {},
4033
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
4034
+ "examples": [
4035
+ {
4036
+ "command": "<%= config.bin %> <%= command.id %>",
4037
+ "description": "Configure Sanity MCP server for detected AI editors"
4038
+ }
4039
+ ],
4040
+ "flags": {},
4041
+ "hasDynamicHelp": false,
4042
+ "hiddenAliases": [],
4043
+ "id": "mcp:configure",
3996
4044
  "pluginAlias": "@sanity/cli",
3997
4045
  "pluginName": "@sanity/cli",
3998
4046
  "pluginType": "core",
@@ -4468,45 +4516,6 @@
4468
4516
  "run.js"
4469
4517
  ]
4470
4518
  },
4471
- "manifest:extract": {
4472
- "aliases": [],
4473
- "args": {},
4474
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
4475
- "examples": [
4476
- {
4477
- "command": "<%= config.bin %> <%= command.id %>",
4478
- "description": "Extracts manifests"
4479
- },
4480
- {
4481
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4482
- "description": "Extracts manifests into /public/static"
4483
- }
4484
- ],
4485
- "flags": {
4486
- "path": {
4487
- "description": "Optional path to specify destination directory of the manifest files",
4488
- "name": "path",
4489
- "default": "dist/static",
4490
- "hasDynamicHelp": false,
4491
- "multiple": false,
4492
- "type": "option"
4493
- }
4494
- },
4495
- "hasDynamicHelp": false,
4496
- "hiddenAliases": [],
4497
- "id": "manifest:extract",
4498
- "pluginAlias": "@sanity/cli",
4499
- "pluginName": "@sanity/cli",
4500
- "pluginType": "core",
4501
- "strict": true,
4502
- "isESM": true,
4503
- "relativePath": [
4504
- "dist",
4505
- "commands",
4506
- "manifest",
4507
- "extract.js"
4508
- ]
4509
- },
4510
4519
  "openapi:get": {
4511
4520
  "aliases": [],
4512
4521
  "args": {
@@ -4866,6 +4875,196 @@
4866
4875
  "update.js"
4867
4876
  ]
4868
4877
  },
4878
+ "projects:create": {
4879
+ "aliases": [],
4880
+ "args": {
4881
+ "projectName": {
4882
+ "description": "Name of the project to create",
4883
+ "name": "projectName",
4884
+ "required": false
4885
+ }
4886
+ },
4887
+ "description": "Create a new Sanity project",
4888
+ "examples": [
4889
+ {
4890
+ "command": "<%= config.bin %> <%= command.id %>",
4891
+ "description": "Interactively create a project"
4892
+ },
4893
+ {
4894
+ "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4895
+ "description": "Create a project named \"My New Project\""
4896
+ },
4897
+ {
4898
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4899
+ "description": "Create a project in a specific organization"
4900
+ },
4901
+ {
4902
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4903
+ "description": "Create a project with a private dataset named \"staging\""
4904
+ },
4905
+ {
4906
+ "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4907
+ "description": "Create a project non-interactively with JSON output"
4908
+ }
4909
+ ],
4910
+ "flags": {
4911
+ "dataset": {
4912
+ "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4913
+ "name": "dataset",
4914
+ "hasDynamicHelp": false,
4915
+ "multiple": false,
4916
+ "type": "option"
4917
+ },
4918
+ "dataset-visibility": {
4919
+ "description": "Dataset visibility: public or private",
4920
+ "name": "dataset-visibility",
4921
+ "hasDynamicHelp": false,
4922
+ "multiple": false,
4923
+ "options": [
4924
+ "private",
4925
+ "public"
4926
+ ],
4927
+ "type": "option"
4928
+ },
4929
+ "json": {
4930
+ "description": "Output in JSON format",
4931
+ "name": "json",
4932
+ "allowNo": false,
4933
+ "type": "boolean"
4934
+ },
4935
+ "organization": {
4936
+ "description": "Organization to create the project in",
4937
+ "name": "organization",
4938
+ "hasDynamicHelp": false,
4939
+ "helpValue": "<slug|id>",
4940
+ "multiple": false,
4941
+ "type": "option"
4942
+ },
4943
+ "yes": {
4944
+ "char": "y",
4945
+ "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4946
+ "name": "yes",
4947
+ "allowNo": false,
4948
+ "type": "boolean"
4949
+ }
4950
+ },
4951
+ "hasDynamicHelp": false,
4952
+ "hiddenAliases": [
4953
+ "project:create"
4954
+ ],
4955
+ "id": "projects:create",
4956
+ "pluginAlias": "@sanity/cli",
4957
+ "pluginName": "@sanity/cli",
4958
+ "pluginType": "core",
4959
+ "strict": true,
4960
+ "isESM": true,
4961
+ "relativePath": [
4962
+ "dist",
4963
+ "commands",
4964
+ "projects",
4965
+ "create.js"
4966
+ ]
4967
+ },
4968
+ "projects:list": {
4969
+ "aliases": [],
4970
+ "args": {},
4971
+ "description": "List your projects",
4972
+ "examples": [
4973
+ {
4974
+ "command": "<%= config.bin %> <%= command.id %>",
4975
+ "description": "List projects"
4976
+ },
4977
+ {
4978
+ "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4979
+ "description": "List projects sorted by member count, ascending"
4980
+ }
4981
+ ],
4982
+ "flags": {
4983
+ "order": {
4984
+ "description": "Sort direction",
4985
+ "name": "order",
4986
+ "default": "desc",
4987
+ "hasDynamicHelp": false,
4988
+ "multiple": false,
4989
+ "options": [
4990
+ "asc",
4991
+ "desc"
4992
+ ],
4993
+ "type": "option"
4994
+ },
4995
+ "sort": {
4996
+ "description": "Sort field",
4997
+ "name": "sort",
4998
+ "default": "created",
4999
+ "hasDynamicHelp": false,
5000
+ "multiple": false,
5001
+ "options": [
5002
+ "id",
5003
+ "members",
5004
+ "name",
5005
+ "url",
5006
+ "created"
5007
+ ],
5008
+ "type": "option"
5009
+ }
5010
+ },
5011
+ "hasDynamicHelp": false,
5012
+ "hiddenAliases": [
5013
+ "project:list"
5014
+ ],
5015
+ "id": "projects:list",
5016
+ "pluginAlias": "@sanity/cli",
5017
+ "pluginName": "@sanity/cli",
5018
+ "pluginType": "core",
5019
+ "strict": true,
5020
+ "isESM": true,
5021
+ "relativePath": [
5022
+ "dist",
5023
+ "commands",
5024
+ "projects",
5025
+ "list.js"
5026
+ ]
5027
+ },
5028
+ "projects:unclaimed": {
5029
+ "aliases": [],
5030
+ "args": {},
5031
+ "description": "Recover details for unclaimed projects created on this machine",
5032
+ "examples": [
5033
+ {
5034
+ "command": "<%= config.bin %> <%= command.id %>",
5035
+ "description": "List locally recorded unclaimed projects"
5036
+ },
5037
+ {
5038
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5039
+ "description": "Show recovery details for one project"
5040
+ }
5041
+ ],
5042
+ "flags": {
5043
+ "project-id": {
5044
+ "description": "Project ID to recover",
5045
+ "name": "project-id",
5046
+ "hasDynamicHelp": false,
5047
+ "multiple": false,
5048
+ "type": "option"
5049
+ }
5050
+ },
5051
+ "hasDynamicHelp": false,
5052
+ "hiddenAliases": [
5053
+ "project:unclaimed"
5054
+ ],
5055
+ "id": "projects:unclaimed",
5056
+ "pluginAlias": "@sanity/cli",
5057
+ "pluginName": "@sanity/cli",
5058
+ "pluginType": "core",
5059
+ "strict": true,
5060
+ "isESM": true,
5061
+ "relativePath": [
5062
+ "dist",
5063
+ "commands",
5064
+ "projects",
5065
+ "unclaimed.js"
5066
+ ]
5067
+ },
4869
5068
  "schemas:delete": {
4870
5069
  "aliases": [],
4871
5070
  "args": {},
@@ -5829,251 +6028,6 @@
5829
6028
  "list.js"
5830
6029
  ]
5831
6030
  },
5832
- "projects:create": {
5833
- "aliases": [],
5834
- "args": {
5835
- "projectName": {
5836
- "description": "Name of the project to create",
5837
- "name": "projectName",
5838
- "required": false
5839
- }
5840
- },
5841
- "description": "Create a new Sanity project",
5842
- "examples": [
5843
- {
5844
- "command": "<%= config.bin %> <%= command.id %>",
5845
- "description": "Interactively create a project"
5846
- },
5847
- {
5848
- "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
5849
- "description": "Create a project named \"My New Project\""
5850
- },
5851
- {
5852
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
5853
- "description": "Create a project in a specific organization"
5854
- },
5855
- {
5856
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
5857
- "description": "Create a project with a private dataset named \"staging\""
5858
- },
5859
- {
5860
- "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
5861
- "description": "Create a project non-interactively with JSON output"
5862
- }
5863
- ],
5864
- "flags": {
5865
- "dataset": {
5866
- "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
5867
- "name": "dataset",
5868
- "hasDynamicHelp": false,
5869
- "multiple": false,
5870
- "type": "option"
5871
- },
5872
- "dataset-visibility": {
5873
- "description": "Dataset visibility: public or private",
5874
- "name": "dataset-visibility",
5875
- "hasDynamicHelp": false,
5876
- "multiple": false,
5877
- "options": [
5878
- "private",
5879
- "public"
5880
- ],
5881
- "type": "option"
5882
- },
5883
- "json": {
5884
- "description": "Output in JSON format",
5885
- "name": "json",
5886
- "allowNo": false,
5887
- "type": "boolean"
5888
- },
5889
- "organization": {
5890
- "description": "Organization to create the project in",
5891
- "name": "organization",
5892
- "hasDynamicHelp": false,
5893
- "helpValue": "<slug|id>",
5894
- "multiple": false,
5895
- "type": "option"
5896
- },
5897
- "yes": {
5898
- "char": "y",
5899
- "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
5900
- "name": "yes",
5901
- "allowNo": false,
5902
- "type": "boolean"
5903
- }
5904
- },
5905
- "hasDynamicHelp": false,
5906
- "hiddenAliases": [
5907
- "project:create"
5908
- ],
5909
- "id": "projects:create",
5910
- "pluginAlias": "@sanity/cli",
5911
- "pluginName": "@sanity/cli",
5912
- "pluginType": "core",
5913
- "strict": true,
5914
- "isESM": true,
5915
- "relativePath": [
5916
- "dist",
5917
- "commands",
5918
- "projects",
5919
- "create.js"
5920
- ]
5921
- },
5922
- "projects:list": {
5923
- "aliases": [],
5924
- "args": {},
5925
- "description": "List your projects",
5926
- "examples": [
5927
- {
5928
- "command": "<%= config.bin %> <%= command.id %>",
5929
- "description": "List projects"
5930
- },
5931
- {
5932
- "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
5933
- "description": "List projects sorted by member count, ascending"
5934
- }
5935
- ],
5936
- "flags": {
5937
- "order": {
5938
- "description": "Sort direction",
5939
- "name": "order",
5940
- "default": "desc",
5941
- "hasDynamicHelp": false,
5942
- "multiple": false,
5943
- "options": [
5944
- "asc",
5945
- "desc"
5946
- ],
5947
- "type": "option"
5948
- },
5949
- "sort": {
5950
- "description": "Sort field",
5951
- "name": "sort",
5952
- "default": "created",
5953
- "hasDynamicHelp": false,
5954
- "multiple": false,
5955
- "options": [
5956
- "id",
5957
- "members",
5958
- "name",
5959
- "url",
5960
- "created"
5961
- ],
5962
- "type": "option"
5963
- }
5964
- },
5965
- "hasDynamicHelp": false,
5966
- "hiddenAliases": [
5967
- "project:list"
5968
- ],
5969
- "id": "projects:list",
5970
- "pluginAlias": "@sanity/cli",
5971
- "pluginName": "@sanity/cli",
5972
- "pluginType": "core",
5973
- "strict": true,
5974
- "isESM": true,
5975
- "relativePath": [
5976
- "dist",
5977
- "commands",
5978
- "projects",
5979
- "list.js"
5980
- ]
5981
- },
5982
- "projects:unclaimed": {
5983
- "aliases": [],
5984
- "args": {},
5985
- "description": "Recover details for unclaimed projects created on this machine",
5986
- "examples": [
5987
- {
5988
- "command": "<%= config.bin %> <%= command.id %>",
5989
- "description": "List locally recorded unclaimed projects"
5990
- },
5991
- {
5992
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5993
- "description": "Show recovery details for one project"
5994
- }
5995
- ],
5996
- "flags": {
5997
- "project-id": {
5998
- "description": "Project ID to recover",
5999
- "name": "project-id",
6000
- "hasDynamicHelp": false,
6001
- "multiple": false,
6002
- "type": "option"
6003
- }
6004
- },
6005
- "hasDynamicHelp": false,
6006
- "hiddenAliases": [
6007
- "project:unclaimed"
6008
- ],
6009
- "id": "projects:unclaimed",
6010
- "pluginAlias": "@sanity/cli",
6011
- "pluginName": "@sanity/cli",
6012
- "pluginType": "core",
6013
- "strict": true,
6014
- "isESM": true,
6015
- "relativePath": [
6016
- "dist",
6017
- "commands",
6018
- "projects",
6019
- "unclaimed.js"
6020
- ]
6021
- },
6022
- "context:jobs:get": {
6023
- "aliases": [],
6024
- "args": {
6025
- "knowledgeBaseId": {
6026
- "description": "Knowledge base ID",
6027
- "name": "knowledgeBaseId",
6028
- "required": true
6029
- },
6030
- "jobId": {
6031
- "description": "Job ID",
6032
- "name": "jobId",
6033
- "required": true
6034
- }
6035
- },
6036
- "description": "Get the status of a knowledge base job",
6037
- "examples": [
6038
- {
6039
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
6040
- "description": "Get the current status of a job"
6041
- },
6042
- {
6043
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
6044
- "description": "Wait for the job to finish (non-zero exit if it does not succeed)"
6045
- }
6046
- ],
6047
- "flags": {
6048
- "json": {
6049
- "description": "Output the job in JSON format",
6050
- "name": "json",
6051
- "allowNo": false,
6052
- "type": "boolean"
6053
- },
6054
- "watch": {
6055
- "description": "Poll until the job reaches a terminal state",
6056
- "name": "watch",
6057
- "allowNo": false,
6058
- "type": "boolean"
6059
- }
6060
- },
6061
- "hasDynamicHelp": false,
6062
- "hiddenAliases": [],
6063
- "id": "context:jobs:get",
6064
- "pluginAlias": "@sanity/cli",
6065
- "pluginName": "@sanity/cli",
6066
- "pluginType": "core",
6067
- "strict": true,
6068
- "isESM": true,
6069
- "relativePath": [
6070
- "dist",
6071
- "commands",
6072
- "context",
6073
- "jobs",
6074
- "get.js"
6075
- ]
6076
- },
6077
6031
  "context:imports:create": {
6078
6032
  "aliases": [],
6079
6033
  "args": {
@@ -6440,6 +6394,61 @@
6440
6394
  "list.js"
6441
6395
  ]
6442
6396
  },
6397
+ "context:jobs:get": {
6398
+ "aliases": [],
6399
+ "args": {
6400
+ "knowledgeBaseId": {
6401
+ "description": "Knowledge base ID",
6402
+ "name": "knowledgeBaseId",
6403
+ "required": true
6404
+ },
6405
+ "jobId": {
6406
+ "description": "Job ID",
6407
+ "name": "jobId",
6408
+ "required": true
6409
+ }
6410
+ },
6411
+ "description": "Get the status of a knowledge base job",
6412
+ "examples": [
6413
+ {
6414
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
6415
+ "description": "Get the current status of a job"
6416
+ },
6417
+ {
6418
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
6419
+ "description": "Wait for the job to finish (non-zero exit if it does not succeed)"
6420
+ }
6421
+ ],
6422
+ "flags": {
6423
+ "json": {
6424
+ "description": "Output the job in JSON format",
6425
+ "name": "json",
6426
+ "allowNo": false,
6427
+ "type": "boolean"
6428
+ },
6429
+ "watch": {
6430
+ "description": "Poll until the job reaches a terminal state",
6431
+ "name": "watch",
6432
+ "allowNo": false,
6433
+ "type": "boolean"
6434
+ }
6435
+ },
6436
+ "hasDynamicHelp": false,
6437
+ "hiddenAliases": [],
6438
+ "id": "context:jobs:get",
6439
+ "pluginAlias": "@sanity/cli",
6440
+ "pluginName": "@sanity/cli",
6441
+ "pluginType": "core",
6442
+ "strict": true,
6443
+ "isESM": true,
6444
+ "relativePath": [
6445
+ "dist",
6446
+ "commands",
6447
+ "context",
6448
+ "jobs",
6449
+ "get.js"
6450
+ ]
6451
+ },
6443
6452
  "datasets:alias:create": {
6444
6453
  "aliases": [],
6445
6454
  "args": {
@@ -6955,5 +6964,5 @@
6955
6964
  ]
6956
6965
  }
6957
6966
  },
6958
- "version": "8.9.1"
6967
+ "version": "8.11.0"
6959
6968
  }