@sanity/cli 8.8.0 → 8.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deploy/deployApp.js +1 -0
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +1 -0
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/typegen/parseTypegenConfig.js +21 -0
- package/dist/actions/typegen/parseTypegenConfig.js.map +1 -0
- package/dist/commands/typegen/generate.js +4 -3
- package/dist/commands/typegen/generate.js.map +1 -1
- package/dist/server/vite/plugin-typegen.js +3 -2
- package/dist/server/vite/plugin-typegen.js.map +1 -1
- package/oclif.manifest.json +1178 -1178
- package/package.json +9 -8
package/oclif.manifest.json
CHANGED
|
@@ -1713,6 +1713,167 @@
|
|
|
1713
1713
|
"list.js"
|
|
1714
1714
|
]
|
|
1715
1715
|
},
|
|
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
|
+
},
|
|
1716
1877
|
"context:build": {
|
|
1717
1878
|
"aliases": [],
|
|
1718
1879
|
"args": {
|
|
@@ -2100,38 +2261,63 @@
|
|
|
2100
2261
|
"update.js"
|
|
2101
2262
|
]
|
|
2102
2263
|
},
|
|
2103
|
-
"
|
|
2264
|
+
"datasets:copy": {
|
|
2104
2265
|
"aliases": [],
|
|
2105
2266
|
"args": {
|
|
2106
|
-
"
|
|
2107
|
-
"description": "
|
|
2108
|
-
"name": "
|
|
2109
|
-
"required":
|
|
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
|
|
2110
2276
|
}
|
|
2111
2277
|
},
|
|
2112
|
-
"description": "
|
|
2278
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2113
2279
|
"examples": [
|
|
2114
2280
|
{
|
|
2115
2281
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2116
|
-
"description": "Interactively
|
|
2282
|
+
"description": "Interactively copy a dataset"
|
|
2117
2283
|
},
|
|
2118
2284
|
{
|
|
2119
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2120
|
-
"description": "
|
|
2285
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2286
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2121
2287
|
},
|
|
2122
2288
|
{
|
|
2123
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2124
|
-
"description": "
|
|
2289
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2290
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2125
2291
|
},
|
|
2126
2292
|
{
|
|
2127
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2128
|
-
"description": "
|
|
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"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2306
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2310
|
+
"description": "List all dataset copy jobs"
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2314
|
+
"description": "List copy jobs with pagination"
|
|
2129
2315
|
}
|
|
2130
2316
|
],
|
|
2131
2317
|
"flags": {
|
|
2132
2318
|
"project-id": {
|
|
2133
2319
|
"char": "p",
|
|
2134
|
-
"description": "Project ID to
|
|
2320
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2135
2321
|
"helpGroup": "OVERRIDE",
|
|
2136
2322
|
"name": "project-id",
|
|
2137
2323
|
"hasDynamicHelp": false,
|
|
@@ -2139,213 +2325,27 @@
|
|
|
2139
2325
|
"multiple": false,
|
|
2140
2326
|
"type": "option"
|
|
2141
2327
|
},
|
|
2142
|
-
"
|
|
2143
|
-
"description": "
|
|
2144
|
-
"
|
|
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",
|
|
2145
2336
|
"required": false,
|
|
2146
|
-
"
|
|
2147
|
-
"
|
|
2337
|
+
"hasDynamicHelp": false,
|
|
2338
|
+
"multiple": false,
|
|
2339
|
+
"type": "option"
|
|
2148
2340
|
},
|
|
2149
|
-
"
|
|
2150
|
-
"
|
|
2151
|
-
"
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
"hasDynamicHelp": false,
|
|
2158
|
-
"hiddenAliases": [],
|
|
2159
|
-
"id": "cors:add",
|
|
2160
|
-
"pluginAlias": "@sanity/cli",
|
|
2161
|
-
"pluginName": "@sanity/cli",
|
|
2162
|
-
"pluginType": "core",
|
|
2163
|
-
"strict": true,
|
|
2164
|
-
"isESM": true,
|
|
2165
|
-
"relativePath": [
|
|
2166
|
-
"dist",
|
|
2167
|
-
"commands",
|
|
2168
|
-
"cors",
|
|
2169
|
-
"add.js"
|
|
2170
|
-
]
|
|
2171
|
-
},
|
|
2172
|
-
"cors:delete": {
|
|
2173
|
-
"aliases": [],
|
|
2174
|
-
"args": {
|
|
2175
|
-
"origin": {
|
|
2176
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2177
|
-
"name": "origin",
|
|
2178
|
-
"required": false
|
|
2179
|
-
}
|
|
2180
|
-
},
|
|
2181
|
-
"description": "Delete a CORS origin from the project",
|
|
2182
|
-
"examples": [
|
|
2183
|
-
{
|
|
2184
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2185
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2186
|
-
},
|
|
2187
|
-
{
|
|
2188
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2189
|
-
"description": "Delete a specific CORS origin"
|
|
2190
|
-
},
|
|
2191
|
-
{
|
|
2192
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2193
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2194
|
-
}
|
|
2195
|
-
],
|
|
2196
|
-
"flags": {
|
|
2197
|
-
"project-id": {
|
|
2198
|
-
"char": "p",
|
|
2199
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2200
|
-
"helpGroup": "OVERRIDE",
|
|
2201
|
-
"name": "project-id",
|
|
2202
|
-
"hasDynamicHelp": false,
|
|
2203
|
-
"helpValue": "<id>",
|
|
2204
|
-
"multiple": false,
|
|
2205
|
-
"type": "option"
|
|
2206
|
-
}
|
|
2207
|
-
},
|
|
2208
|
-
"hasDynamicHelp": false,
|
|
2209
|
-
"hiddenAliases": [],
|
|
2210
|
-
"id": "cors:delete",
|
|
2211
|
-
"pluginAlias": "@sanity/cli",
|
|
2212
|
-
"pluginName": "@sanity/cli",
|
|
2213
|
-
"pluginType": "core",
|
|
2214
|
-
"strict": true,
|
|
2215
|
-
"isESM": true,
|
|
2216
|
-
"relativePath": [
|
|
2217
|
-
"dist",
|
|
2218
|
-
"commands",
|
|
2219
|
-
"cors",
|
|
2220
|
-
"delete.js"
|
|
2221
|
-
]
|
|
2222
|
-
},
|
|
2223
|
-
"cors:list": {
|
|
2224
|
-
"aliases": [],
|
|
2225
|
-
"args": {},
|
|
2226
|
-
"description": "List CORS origins for the project",
|
|
2227
|
-
"examples": [
|
|
2228
|
-
{
|
|
2229
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2230
|
-
"description": "List CORS origins for the project"
|
|
2231
|
-
},
|
|
2232
|
-
{
|
|
2233
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2234
|
-
"description": "List CORS origins for a specific project"
|
|
2235
|
-
}
|
|
2236
|
-
],
|
|
2237
|
-
"flags": {
|
|
2238
|
-
"project-id": {
|
|
2239
|
-
"char": "p",
|
|
2240
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2241
|
-
"helpGroup": "OVERRIDE",
|
|
2242
|
-
"name": "project-id",
|
|
2243
|
-
"hasDynamicHelp": false,
|
|
2244
|
-
"helpValue": "<id>",
|
|
2245
|
-
"multiple": false,
|
|
2246
|
-
"type": "option"
|
|
2247
|
-
}
|
|
2248
|
-
},
|
|
2249
|
-
"hasDynamicHelp": false,
|
|
2250
|
-
"hiddenAliases": [],
|
|
2251
|
-
"id": "cors:list",
|
|
2252
|
-
"pluginAlias": "@sanity/cli",
|
|
2253
|
-
"pluginName": "@sanity/cli",
|
|
2254
|
-
"pluginType": "core",
|
|
2255
|
-
"strict": true,
|
|
2256
|
-
"isESM": true,
|
|
2257
|
-
"relativePath": [
|
|
2258
|
-
"dist",
|
|
2259
|
-
"commands",
|
|
2260
|
-
"cors",
|
|
2261
|
-
"list.js"
|
|
2262
|
-
]
|
|
2263
|
-
},
|
|
2264
|
-
"datasets:copy": {
|
|
2265
|
-
"aliases": [],
|
|
2266
|
-
"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
|
|
2276
|
-
}
|
|
2277
|
-
},
|
|
2278
|
-
"description": "Copy a dataset or manage copy jobs",
|
|
2279
|
-
"examples": [
|
|
2280
|
-
{
|
|
2281
|
-
"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"
|
|
2303
|
-
},
|
|
2304
|
-
{
|
|
2305
|
-
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2306
|
-
"description": "Attach to a running copy job to follow progress"
|
|
2307
|
-
},
|
|
2308
|
-
{
|
|
2309
|
-
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2310
|
-
"description": "List all dataset copy jobs"
|
|
2311
|
-
},
|
|
2312
|
-
{
|
|
2313
|
-
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2314
|
-
"description": "List copy jobs with pagination"
|
|
2315
|
-
}
|
|
2316
|
-
],
|
|
2317
|
-
"flags": {
|
|
2318
|
-
"project-id": {
|
|
2319
|
-
"char": "p",
|
|
2320
|
-
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2321
|
-
"helpGroup": "OVERRIDE",
|
|
2322
|
-
"name": "project-id",
|
|
2323
|
-
"hasDynamicHelp": false,
|
|
2324
|
-
"helpValue": "<id>",
|
|
2325
|
-
"multiple": false,
|
|
2326
|
-
"type": "option"
|
|
2327
|
-
},
|
|
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",
|
|
2336
|
-
"required": false,
|
|
2337
|
-
"hasDynamicHelp": false,
|
|
2338
|
-
"multiple": false,
|
|
2339
|
-
"type": "option"
|
|
2340
|
-
},
|
|
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,
|
|
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,
|
|
2349
2349
|
"allowNo": false,
|
|
2350
2350
|
"type": "boolean"
|
|
2351
2351
|
},
|
|
@@ -2883,160 +2883,36 @@
|
|
|
2883
2883
|
"list.js"
|
|
2884
2884
|
]
|
|
2885
2885
|
},
|
|
2886
|
-
"
|
|
2887
|
-
"aliases": [],
|
|
2888
|
-
"args": {},
|
|
2889
|
-
"description": "Open Sanity docs in your browser",
|
|
2890
|
-
"flags": {},
|
|
2891
|
-
"hasDynamicHelp": false,
|
|
2892
|
-
"hiddenAliases": [],
|
|
2893
|
-
"id": "docs:browse",
|
|
2894
|
-
"pluginAlias": "@sanity/cli",
|
|
2895
|
-
"pluginName": "@sanity/cli",
|
|
2896
|
-
"pluginType": "core",
|
|
2897
|
-
"strict": true,
|
|
2898
|
-
"enableJsonFlag": false,
|
|
2899
|
-
"isESM": true,
|
|
2900
|
-
"relativePath": [
|
|
2901
|
-
"dist",
|
|
2902
|
-
"commands",
|
|
2903
|
-
"docs",
|
|
2904
|
-
"browse.js"
|
|
2905
|
-
]
|
|
2906
|
-
},
|
|
2907
|
-
"docs:read": {
|
|
2886
|
+
"documents:create": {
|
|
2908
2887
|
"aliases": [],
|
|
2909
2888
|
"args": {
|
|
2910
|
-
"
|
|
2911
|
-
"description": "
|
|
2912
|
-
"name": "
|
|
2913
|
-
"required":
|
|
2889
|
+
"file": {
|
|
2890
|
+
"description": "JSON file to create document(s) from",
|
|
2891
|
+
"name": "file",
|
|
2892
|
+
"required": false
|
|
2914
2893
|
}
|
|
2915
2894
|
},
|
|
2916
|
-
"description": "
|
|
2895
|
+
"description": "Create one or more documents",
|
|
2917
2896
|
"examples": [
|
|
2918
2897
|
{
|
|
2919
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2920
|
-
"description": "
|
|
2898
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
2899
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
2921
2900
|
},
|
|
2922
2901
|
{
|
|
2923
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2924
|
-
"description": "
|
|
2902
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2903
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
2925
2904
|
},
|
|
2926
2905
|
{
|
|
2927
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2928
|
-
"description": "
|
|
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"
|
|
2929
2908
|
},
|
|
2930
2909
|
{
|
|
2931
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2932
|
-
"description": "Open
|
|
2933
|
-
}
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
"aliases": [
|
|
2938
|
-
"w"
|
|
2939
|
-
],
|
|
2940
|
-
"description": "Open in a web browser",
|
|
2941
|
-
"name": "web",
|
|
2942
|
-
"allowNo": false,
|
|
2943
|
-
"type": "boolean"
|
|
2944
|
-
}
|
|
2945
|
-
},
|
|
2946
|
-
"hasDynamicHelp": false,
|
|
2947
|
-
"hiddenAliases": [],
|
|
2948
|
-
"id": "docs:read",
|
|
2949
|
-
"pluginAlias": "@sanity/cli",
|
|
2950
|
-
"pluginName": "@sanity/cli",
|
|
2951
|
-
"pluginType": "core",
|
|
2952
|
-
"strict": true,
|
|
2953
|
-
"isESM": true,
|
|
2954
|
-
"relativePath": [
|
|
2955
|
-
"dist",
|
|
2956
|
-
"commands",
|
|
2957
|
-
"docs",
|
|
2958
|
-
"read.js"
|
|
2959
|
-
]
|
|
2960
|
-
},
|
|
2961
|
-
"docs:search": {
|
|
2962
|
-
"aliases": [],
|
|
2963
|
-
"args": {
|
|
2964
|
-
"query": {
|
|
2965
|
-
"description": "Search query for documentation",
|
|
2966
|
-
"name": "query",
|
|
2967
|
-
"required": true
|
|
2968
|
-
}
|
|
2969
|
-
},
|
|
2970
|
-
"description": "Search Sanity docs",
|
|
2971
|
-
"examples": [
|
|
2972
|
-
{
|
|
2973
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2974
|
-
"description": "Search for documentation about schemas"
|
|
2975
|
-
},
|
|
2976
|
-
{
|
|
2977
|
-
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2978
|
-
"description": "Search with phrase"
|
|
2979
|
-
},
|
|
2980
|
-
{
|
|
2981
|
-
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2982
|
-
"description": "Limit search results"
|
|
2983
|
-
}
|
|
2984
|
-
],
|
|
2985
|
-
"flags": {
|
|
2986
|
-
"limit": {
|
|
2987
|
-
"description": "Maximum number of results to return",
|
|
2988
|
-
"name": "limit",
|
|
2989
|
-
"default": 10,
|
|
2990
|
-
"hasDynamicHelp": false,
|
|
2991
|
-
"multiple": false,
|
|
2992
|
-
"type": "option"
|
|
2993
|
-
}
|
|
2994
|
-
},
|
|
2995
|
-
"hasDynamicHelp": false,
|
|
2996
|
-
"hiddenAliases": [],
|
|
2997
|
-
"id": "docs:search",
|
|
2998
|
-
"pluginAlias": "@sanity/cli",
|
|
2999
|
-
"pluginName": "@sanity/cli",
|
|
3000
|
-
"pluginType": "core",
|
|
3001
|
-
"strict": true,
|
|
3002
|
-
"isESM": true,
|
|
3003
|
-
"relativePath": [
|
|
3004
|
-
"dist",
|
|
3005
|
-
"commands",
|
|
3006
|
-
"docs",
|
|
3007
|
-
"search.js"
|
|
3008
|
-
]
|
|
3009
|
-
},
|
|
3010
|
-
"documents:create": {
|
|
3011
|
-
"aliases": [],
|
|
3012
|
-
"args": {
|
|
3013
|
-
"file": {
|
|
3014
|
-
"description": "JSON file to create document(s) from",
|
|
3015
|
-
"name": "file",
|
|
3016
|
-
"required": false
|
|
3017
|
-
}
|
|
3018
|
-
},
|
|
3019
|
-
"description": "Create one or more documents",
|
|
3020
|
-
"examples": [
|
|
3021
|
-
{
|
|
3022
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3023
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
3024
|
-
},
|
|
3025
|
-
{
|
|
3026
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3027
|
-
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3028
|
-
},
|
|
3029
|
-
{
|
|
3030
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3031
|
-
"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"
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
3035
|
-
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
3036
|
-
},
|
|
3037
|
-
{
|
|
3038
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
3039
|
-
"description": "Create documents in a specific project"
|
|
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."
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
2915
|
+
"description": "Create documents in a specific project"
|
|
3040
2916
|
}
|
|
3041
2917
|
],
|
|
3042
2918
|
"flags": {
|
|
@@ -3480,6 +3356,130 @@
|
|
|
3480
3356
|
"validate.js"
|
|
3481
3357
|
]
|
|
3482
3358
|
},
|
|
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
3483
|
"graphql:deploy": {
|
|
3484
3484
|
"aliases": [],
|
|
3485
3485
|
"args": {},
|
|
@@ -3731,45 +3731,6 @@
|
|
|
3731
3731
|
"undeploy.js"
|
|
3732
3732
|
]
|
|
3733
3733
|
},
|
|
3734
|
-
"manifest:extract": {
|
|
3735
|
-
"aliases": [],
|
|
3736
|
-
"args": {},
|
|
3737
|
-
"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.",
|
|
3738
|
-
"examples": [
|
|
3739
|
-
{
|
|
3740
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3741
|
-
"description": "Extracts manifests"
|
|
3742
|
-
},
|
|
3743
|
-
{
|
|
3744
|
-
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
3745
|
-
"description": "Extracts manifests into /public/static"
|
|
3746
|
-
}
|
|
3747
|
-
],
|
|
3748
|
-
"flags": {
|
|
3749
|
-
"path": {
|
|
3750
|
-
"description": "Optional path to specify destination directory of the manifest files",
|
|
3751
|
-
"name": "path",
|
|
3752
|
-
"default": "dist/static",
|
|
3753
|
-
"hasDynamicHelp": false,
|
|
3754
|
-
"multiple": false,
|
|
3755
|
-
"type": "option"
|
|
3756
|
-
}
|
|
3757
|
-
},
|
|
3758
|
-
"hasDynamicHelp": false,
|
|
3759
|
-
"hiddenAliases": [],
|
|
3760
|
-
"id": "manifest:extract",
|
|
3761
|
-
"pluginAlias": "@sanity/cli",
|
|
3762
|
-
"pluginName": "@sanity/cli",
|
|
3763
|
-
"pluginType": "core",
|
|
3764
|
-
"strict": true,
|
|
3765
|
-
"isESM": true,
|
|
3766
|
-
"relativePath": [
|
|
3767
|
-
"dist",
|
|
3768
|
-
"commands",
|
|
3769
|
-
"manifest",
|
|
3770
|
-
"extract.js"
|
|
3771
|
-
]
|
|
3772
|
-
},
|
|
3773
3734
|
"hooks:attempt": {
|
|
3774
3735
|
"aliases": [],
|
|
3775
3736
|
"args": {
|
|
@@ -4044,32 +4005,35 @@
|
|
|
4044
4005
|
"configure.js"
|
|
4045
4006
|
]
|
|
4046
4007
|
},
|
|
4047
|
-
"
|
|
4008
|
+
"media:create-aspect": {
|
|
4048
4009
|
"aliases": [],
|
|
4049
|
-
"args": {
|
|
4050
|
-
|
|
4051
|
-
"description": "Title of migration",
|
|
4052
|
-
"name": "title",
|
|
4053
|
-
"required": false
|
|
4054
|
-
}
|
|
4055
|
-
},
|
|
4056
|
-
"description": "Create a new migration within your project",
|
|
4010
|
+
"args": {},
|
|
4011
|
+
"description": "Create a new aspect definition file",
|
|
4057
4012
|
"examples": [
|
|
4058
4013
|
{
|
|
4059
4014
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4060
|
-
"description": "Create a new
|
|
4061
|
-
},
|
|
4062
|
-
{
|
|
4063
|
-
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
4064
|
-
"description": "Create a new migration with the provided title, prompting for options"
|
|
4015
|
+
"description": "Create a new aspect definition file"
|
|
4065
4016
|
}
|
|
4066
4017
|
],
|
|
4067
|
-
"flags": {
|
|
4018
|
+
"flags": {
|
|
4019
|
+
"name": {
|
|
4020
|
+
"description": "Aspect name. Defaults to the title in camel case",
|
|
4021
|
+
"name": "name",
|
|
4022
|
+
"hasDynamicHelp": false,
|
|
4023
|
+
"multiple": false,
|
|
4024
|
+
"type": "option"
|
|
4025
|
+
},
|
|
4026
|
+
"title": {
|
|
4027
|
+
"description": "Aspect title",
|
|
4028
|
+
"name": "title",
|
|
4029
|
+
"hasDynamicHelp": false,
|
|
4030
|
+
"multiple": false,
|
|
4031
|
+
"type": "option"
|
|
4032
|
+
}
|
|
4033
|
+
},
|
|
4068
4034
|
"hasDynamicHelp": false,
|
|
4069
|
-
"hiddenAliases": [
|
|
4070
|
-
|
|
4071
|
-
],
|
|
4072
|
-
"id": "migrations:create",
|
|
4035
|
+
"hiddenAliases": [],
|
|
4036
|
+
"id": "media:create-aspect",
|
|
4073
4037
|
"pluginAlias": "@sanity/cli",
|
|
4074
4038
|
"pluginName": "@sanity/cli",
|
|
4075
4039
|
"pluginType": "core",
|
|
@@ -4078,26 +4042,55 @@
|
|
|
4078
4042
|
"relativePath": [
|
|
4079
4043
|
"dist",
|
|
4080
4044
|
"commands",
|
|
4081
|
-
"
|
|
4082
|
-
"create.js"
|
|
4045
|
+
"media",
|
|
4046
|
+
"create-aspect.js"
|
|
4083
4047
|
]
|
|
4084
4048
|
},
|
|
4085
|
-
"
|
|
4049
|
+
"media:delete-aspect": {
|
|
4086
4050
|
"aliases": [],
|
|
4087
|
-
"args": {
|
|
4088
|
-
|
|
4051
|
+
"args": {
|
|
4052
|
+
"aspectName": {
|
|
4053
|
+
"description": "Name of the aspect to delete",
|
|
4054
|
+
"name": "aspectName",
|
|
4055
|
+
"required": true
|
|
4056
|
+
}
|
|
4057
|
+
},
|
|
4058
|
+
"description": "Delete an aspect definition",
|
|
4089
4059
|
"examples": [
|
|
4090
4060
|
{
|
|
4091
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4092
|
-
"description": "
|
|
4061
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
4062
|
+
"description": "Delete the aspect named \"someAspect\""
|
|
4093
4063
|
}
|
|
4094
4064
|
],
|
|
4095
|
-
"flags": {
|
|
4065
|
+
"flags": {
|
|
4066
|
+
"project-id": {
|
|
4067
|
+
"char": "p",
|
|
4068
|
+
"description": "Project ID to delete media aspect from (overrides CLI configuration)",
|
|
4069
|
+
"helpGroup": "OVERRIDE",
|
|
4070
|
+
"name": "project-id",
|
|
4071
|
+
"hasDynamicHelp": false,
|
|
4072
|
+
"helpValue": "<id>",
|
|
4073
|
+
"multiple": false,
|
|
4074
|
+
"type": "option"
|
|
4075
|
+
},
|
|
4076
|
+
"media-library-id": {
|
|
4077
|
+
"description": "The id of the target media library",
|
|
4078
|
+
"name": "media-library-id",
|
|
4079
|
+
"hasDynamicHelp": false,
|
|
4080
|
+
"multiple": false,
|
|
4081
|
+
"type": "option"
|
|
4082
|
+
},
|
|
4083
|
+
"yes": {
|
|
4084
|
+
"char": "y",
|
|
4085
|
+
"description": "Run without prompts and confirm deletion",
|
|
4086
|
+
"name": "yes",
|
|
4087
|
+
"allowNo": false,
|
|
4088
|
+
"type": "boolean"
|
|
4089
|
+
}
|
|
4090
|
+
},
|
|
4096
4091
|
"hasDynamicHelp": false,
|
|
4097
|
-
"hiddenAliases": [
|
|
4098
|
-
|
|
4099
|
-
],
|
|
4100
|
-
"id": "migrations:list",
|
|
4092
|
+
"hiddenAliases": [],
|
|
4093
|
+
"id": "media:delete-aspect",
|
|
4101
4094
|
"pluginAlias": "@sanity/cli",
|
|
4102
4095
|
"pluginName": "@sanity/cli",
|
|
4103
4096
|
"pluginType": "core",
|
|
@@ -4106,95 +4099,59 @@
|
|
|
4106
4099
|
"relativePath": [
|
|
4107
4100
|
"dist",
|
|
4108
4101
|
"commands",
|
|
4109
|
-
"
|
|
4110
|
-
"
|
|
4102
|
+
"media",
|
|
4103
|
+
"delete-aspect.js"
|
|
4111
4104
|
]
|
|
4112
4105
|
},
|
|
4113
|
-
"
|
|
4106
|
+
"media:deploy-aspect": {
|
|
4114
4107
|
"aliases": [],
|
|
4115
4108
|
"args": {
|
|
4116
|
-
"
|
|
4117
|
-
"description": "
|
|
4118
|
-
"name": "
|
|
4109
|
+
"aspectName": {
|
|
4110
|
+
"description": "Name of the aspect to deploy",
|
|
4111
|
+
"name": "aspectName",
|
|
4119
4112
|
"required": false
|
|
4120
4113
|
}
|
|
4121
4114
|
},
|
|
4122
|
-
"description": "
|
|
4115
|
+
"description": "Deploy an aspect",
|
|
4123
4116
|
"examples": [
|
|
4124
4117
|
{
|
|
4125
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4126
|
-
"description": "
|
|
4127
|
-
},
|
|
4128
|
-
{
|
|
4129
|
-
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
4130
|
-
"description": "execute the migration against a dataset"
|
|
4118
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
4119
|
+
"description": "Deploy the aspect named \"someAspect\""
|
|
4131
4120
|
},
|
|
4132
4121
|
{
|
|
4133
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4134
|
-
"description": "
|
|
4122
|
+
"command": "<%= config.bin %> <%= command.id %> --all",
|
|
4123
|
+
"description": "Deploy all aspects"
|
|
4135
4124
|
}
|
|
4136
4125
|
],
|
|
4137
4126
|
"flags": {
|
|
4138
|
-
"
|
|
4139
|
-
"
|
|
4140
|
-
"
|
|
4141
|
-
"
|
|
4142
|
-
"
|
|
4143
|
-
"type": "option"
|
|
4144
|
-
},
|
|
4145
|
-
"concurrency": {
|
|
4146
|
-
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
4147
|
-
"name": "concurrency",
|
|
4148
|
-
"default": 6,
|
|
4149
|
-
"hasDynamicHelp": false,
|
|
4150
|
-
"multiple": false,
|
|
4151
|
-
"type": "option"
|
|
4152
|
-
},
|
|
4153
|
-
"confirm": {
|
|
4154
|
-
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
4155
|
-
"name": "confirm",
|
|
4156
|
-
"allowNo": true,
|
|
4157
|
-
"type": "boolean"
|
|
4158
|
-
},
|
|
4159
|
-
"dataset": {
|
|
4160
|
-
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
4161
|
-
"name": "dataset",
|
|
4162
|
-
"hasDynamicHelp": false,
|
|
4163
|
-
"multiple": false,
|
|
4164
|
-
"type": "option"
|
|
4165
|
-
},
|
|
4166
|
-
"dry-run": {
|
|
4167
|
-
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
4168
|
-
"name": "dry-run",
|
|
4169
|
-
"allowNo": true,
|
|
4170
|
-
"type": "boolean"
|
|
4171
|
-
},
|
|
4172
|
-
"from-export": {
|
|
4173
|
-
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
4174
|
-
"name": "from-export",
|
|
4127
|
+
"project-id": {
|
|
4128
|
+
"char": "p",
|
|
4129
|
+
"description": "Project ID to deploy media aspect to (overrides CLI configuration)",
|
|
4130
|
+
"helpGroup": "OVERRIDE",
|
|
4131
|
+
"name": "project-id",
|
|
4175
4132
|
"hasDynamicHelp": false,
|
|
4133
|
+
"helpValue": "<id>",
|
|
4176
4134
|
"multiple": false,
|
|
4177
4135
|
"type": "option"
|
|
4178
4136
|
},
|
|
4179
|
-
"
|
|
4180
|
-
"description": "
|
|
4181
|
-
"name": "
|
|
4182
|
-
"
|
|
4137
|
+
"all": {
|
|
4138
|
+
"description": "Deploy all aspects",
|
|
4139
|
+
"name": "all",
|
|
4140
|
+
"required": false,
|
|
4141
|
+
"allowNo": false,
|
|
4183
4142
|
"type": "boolean"
|
|
4184
4143
|
},
|
|
4185
|
-
"
|
|
4186
|
-
"description": "
|
|
4187
|
-
"name": "
|
|
4144
|
+
"media-library-id": {
|
|
4145
|
+
"description": "The id of the target media library",
|
|
4146
|
+
"name": "media-library-id",
|
|
4188
4147
|
"hasDynamicHelp": false,
|
|
4189
4148
|
"multiple": false,
|
|
4190
4149
|
"type": "option"
|
|
4191
4150
|
}
|
|
4192
4151
|
},
|
|
4193
4152
|
"hasDynamicHelp": false,
|
|
4194
|
-
"hiddenAliases": [
|
|
4195
|
-
|
|
4196
|
-
],
|
|
4197
|
-
"id": "migrations:run",
|
|
4153
|
+
"hiddenAliases": [],
|
|
4154
|
+
"id": "media:deploy-aspect",
|
|
4198
4155
|
"pluginAlias": "@sanity/cli",
|
|
4199
4156
|
"pluginName": "@sanity/cli",
|
|
4200
4157
|
"pluginType": "core",
|
|
@@ -4203,62 +4160,75 @@
|
|
|
4203
4160
|
"relativePath": [
|
|
4204
4161
|
"dist",
|
|
4205
4162
|
"commands",
|
|
4206
|
-
"
|
|
4207
|
-
"
|
|
4163
|
+
"media",
|
|
4164
|
+
"deploy-aspect.js"
|
|
4208
4165
|
]
|
|
4209
4166
|
},
|
|
4210
|
-
"
|
|
4167
|
+
"media:export": {
|
|
4211
4168
|
"aliases": [],
|
|
4212
4169
|
"args": {
|
|
4213
|
-
"
|
|
4214
|
-
"description": "
|
|
4215
|
-
"name": "
|
|
4216
|
-
"required": true
|
|
4170
|
+
"destination": {
|
|
4171
|
+
"description": "Output destination file path",
|
|
4172
|
+
"name": "destination"
|
|
4217
4173
|
}
|
|
4218
4174
|
},
|
|
4219
|
-
"description": "
|
|
4175
|
+
"description": "Export file and image assets from a media library (excludes video)",
|
|
4220
4176
|
"examples": [
|
|
4221
4177
|
{
|
|
4222
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4223
|
-
"description": "
|
|
4224
|
-
},
|
|
4225
|
-
{
|
|
4226
|
-
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
4227
|
-
"description": "Get specification in JSON format"
|
|
4178
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4179
|
+
"description": "Export media library interactively"
|
|
4228
4180
|
},
|
|
4229
4181
|
{
|
|
4230
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4231
|
-
"description": "
|
|
4182
|
+
"command": "<%= config.bin %> <%= command.id %> output.tar.gz",
|
|
4183
|
+
"description": "Export media library to output.tar.gz"
|
|
4232
4184
|
},
|
|
4233
4185
|
{
|
|
4234
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4235
|
-
"description": "
|
|
4186
|
+
"command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
|
|
4187
|
+
"description": "Export specific media library"
|
|
4236
4188
|
}
|
|
4237
4189
|
],
|
|
4238
4190
|
"flags": {
|
|
4239
|
-
"
|
|
4240
|
-
"
|
|
4241
|
-
"
|
|
4242
|
-
"
|
|
4191
|
+
"project-id": {
|
|
4192
|
+
"char": "p",
|
|
4193
|
+
"description": "Project ID to export media from (overrides CLI configuration)",
|
|
4194
|
+
"helpGroup": "OVERRIDE",
|
|
4195
|
+
"name": "project-id",
|
|
4243
4196
|
"hasDynamicHelp": false,
|
|
4197
|
+
"helpValue": "<id>",
|
|
4244
4198
|
"multiple": false,
|
|
4245
|
-
"options": [
|
|
4246
|
-
"yaml",
|
|
4247
|
-
"json"
|
|
4248
|
-
],
|
|
4249
4199
|
"type": "option"
|
|
4250
4200
|
},
|
|
4251
|
-
"
|
|
4252
|
-
"
|
|
4253
|
-
"
|
|
4254
|
-
"
|
|
4201
|
+
"asset-concurrency": {
|
|
4202
|
+
"description": "Concurrent number of asset downloads",
|
|
4203
|
+
"name": "asset-concurrency",
|
|
4204
|
+
"default": 8,
|
|
4205
|
+
"hasDynamicHelp": false,
|
|
4206
|
+
"multiple": false,
|
|
4207
|
+
"type": "option"
|
|
4208
|
+
},
|
|
4209
|
+
"media-library-id": {
|
|
4210
|
+
"description": "The id of the target media library",
|
|
4211
|
+
"name": "media-library-id",
|
|
4212
|
+
"hasDynamicHelp": false,
|
|
4213
|
+
"multiple": false,
|
|
4214
|
+
"type": "option"
|
|
4215
|
+
},
|
|
4216
|
+
"no-compress": {
|
|
4217
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
4218
|
+
"name": "no-compress",
|
|
4219
|
+
"allowNo": false,
|
|
4220
|
+
"type": "boolean"
|
|
4221
|
+
},
|
|
4222
|
+
"overwrite": {
|
|
4223
|
+
"description": "Overwrite any file with the same name",
|
|
4224
|
+
"name": "overwrite",
|
|
4255
4225
|
"allowNo": false,
|
|
4256
4226
|
"type": "boolean"
|
|
4257
4227
|
}
|
|
4258
4228
|
},
|
|
4259
4229
|
"hasDynamicHelp": false,
|
|
4260
4230
|
"hiddenAliases": [],
|
|
4261
|
-
"id": "
|
|
4231
|
+
"id": "media:export",
|
|
4262
4232
|
"pluginAlias": "@sanity/cli",
|
|
4263
4233
|
"pluginName": "@sanity/cli",
|
|
4264
4234
|
"pluginType": "core",
|
|
@@ -4267,180 +4237,38 @@
|
|
|
4267
4237
|
"relativePath": [
|
|
4268
4238
|
"dist",
|
|
4269
4239
|
"commands",
|
|
4270
|
-
"
|
|
4271
|
-
"
|
|
4240
|
+
"media",
|
|
4241
|
+
"export.js"
|
|
4272
4242
|
]
|
|
4273
4243
|
},
|
|
4274
|
-
"
|
|
4275
|
-
"aliases": [],
|
|
4276
|
-
"args": {},
|
|
4277
|
-
"description": "List all available OpenAPI specifications",
|
|
4278
|
-
"examples": [
|
|
4279
|
-
{
|
|
4280
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4281
|
-
"description": "List all available OpenAPI specs"
|
|
4282
|
-
},
|
|
4283
|
-
{
|
|
4284
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4285
|
-
"description": "List with JSON output"
|
|
4286
|
-
},
|
|
4287
|
-
{
|
|
4288
|
-
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
4289
|
-
"description": "Open HTTP Reference in browser"
|
|
4290
|
-
}
|
|
4291
|
-
],
|
|
4292
|
-
"flags": {
|
|
4293
|
-
"json": {
|
|
4294
|
-
"description": "Output JSON",
|
|
4295
|
-
"name": "json",
|
|
4296
|
-
"allowNo": false,
|
|
4297
|
-
"type": "boolean"
|
|
4298
|
-
},
|
|
4299
|
-
"web": {
|
|
4300
|
-
"char": "w",
|
|
4301
|
-
"description": "Open HTTP Reference in web browser",
|
|
4302
|
-
"name": "web",
|
|
4303
|
-
"allowNo": false,
|
|
4304
|
-
"type": "boolean"
|
|
4305
|
-
}
|
|
4306
|
-
},
|
|
4307
|
-
"hasDynamicHelp": false,
|
|
4308
|
-
"hiddenAliases": [],
|
|
4309
|
-
"id": "openapi:list",
|
|
4310
|
-
"pluginAlias": "@sanity/cli",
|
|
4311
|
-
"pluginName": "@sanity/cli",
|
|
4312
|
-
"pluginType": "core",
|
|
4313
|
-
"strict": true,
|
|
4314
|
-
"isESM": true,
|
|
4315
|
-
"relativePath": [
|
|
4316
|
-
"dist",
|
|
4317
|
-
"commands",
|
|
4318
|
-
"openapi",
|
|
4319
|
-
"list.js"
|
|
4320
|
-
]
|
|
4321
|
-
},
|
|
4322
|
-
"media:create-aspect": {
|
|
4323
|
-
"aliases": [],
|
|
4324
|
-
"args": {},
|
|
4325
|
-
"description": "Create a new aspect definition file",
|
|
4326
|
-
"examples": [
|
|
4327
|
-
{
|
|
4328
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4329
|
-
"description": "Create a new aspect definition file"
|
|
4330
|
-
}
|
|
4331
|
-
],
|
|
4332
|
-
"flags": {
|
|
4333
|
-
"name": {
|
|
4334
|
-
"description": "Aspect name. Defaults to the title in camel case",
|
|
4335
|
-
"name": "name",
|
|
4336
|
-
"hasDynamicHelp": false,
|
|
4337
|
-
"multiple": false,
|
|
4338
|
-
"type": "option"
|
|
4339
|
-
},
|
|
4340
|
-
"title": {
|
|
4341
|
-
"description": "Aspect title",
|
|
4342
|
-
"name": "title",
|
|
4343
|
-
"hasDynamicHelp": false,
|
|
4344
|
-
"multiple": false,
|
|
4345
|
-
"type": "option"
|
|
4346
|
-
}
|
|
4347
|
-
},
|
|
4348
|
-
"hasDynamicHelp": false,
|
|
4349
|
-
"hiddenAliases": [],
|
|
4350
|
-
"id": "media:create-aspect",
|
|
4351
|
-
"pluginAlias": "@sanity/cli",
|
|
4352
|
-
"pluginName": "@sanity/cli",
|
|
4353
|
-
"pluginType": "core",
|
|
4354
|
-
"strict": true,
|
|
4355
|
-
"isESM": true,
|
|
4356
|
-
"relativePath": [
|
|
4357
|
-
"dist",
|
|
4358
|
-
"commands",
|
|
4359
|
-
"media",
|
|
4360
|
-
"create-aspect.js"
|
|
4361
|
-
]
|
|
4362
|
-
},
|
|
4363
|
-
"media:delete-aspect": {
|
|
4244
|
+
"media:import": {
|
|
4364
4245
|
"aliases": [],
|
|
4365
4246
|
"args": {
|
|
4366
|
-
"
|
|
4367
|
-
"description": "
|
|
4368
|
-
"name": "
|
|
4247
|
+
"source": {
|
|
4248
|
+
"description": "Image file or folder to import from",
|
|
4249
|
+
"name": "source",
|
|
4369
4250
|
"required": true
|
|
4370
4251
|
}
|
|
4371
4252
|
},
|
|
4372
|
-
"description": "
|
|
4253
|
+
"description": "Import a set of assets to the target media library.",
|
|
4373
4254
|
"examples": [
|
|
4374
4255
|
{
|
|
4375
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4376
|
-
"description": "
|
|
4377
|
-
}
|
|
4378
|
-
],
|
|
4379
|
-
"flags": {
|
|
4380
|
-
"project-id": {
|
|
4381
|
-
"char": "p",
|
|
4382
|
-
"description": "Project ID to delete media aspect from (overrides CLI configuration)",
|
|
4383
|
-
"helpGroup": "OVERRIDE",
|
|
4384
|
-
"name": "project-id",
|
|
4385
|
-
"hasDynamicHelp": false,
|
|
4386
|
-
"helpValue": "<id>",
|
|
4387
|
-
"multiple": false,
|
|
4388
|
-
"type": "option"
|
|
4389
|
-
},
|
|
4390
|
-
"media-library-id": {
|
|
4391
|
-
"description": "The id of the target media library",
|
|
4392
|
-
"name": "media-library-id",
|
|
4393
|
-
"hasDynamicHelp": false,
|
|
4394
|
-
"multiple": false,
|
|
4395
|
-
"type": "option"
|
|
4256
|
+
"command": "<%= config.bin %> <%= command.id %> products",
|
|
4257
|
+
"description": "Import all assets from the \"products\" directory"
|
|
4396
4258
|
},
|
|
4397
|
-
"yes": {
|
|
4398
|
-
"char": "y",
|
|
4399
|
-
"description": "Run without prompts and confirm deletion",
|
|
4400
|
-
"name": "yes",
|
|
4401
|
-
"allowNo": false,
|
|
4402
|
-
"type": "boolean"
|
|
4403
|
-
}
|
|
4404
|
-
},
|
|
4405
|
-
"hasDynamicHelp": false,
|
|
4406
|
-
"hiddenAliases": [],
|
|
4407
|
-
"id": "media:delete-aspect",
|
|
4408
|
-
"pluginAlias": "@sanity/cli",
|
|
4409
|
-
"pluginName": "@sanity/cli",
|
|
4410
|
-
"pluginType": "core",
|
|
4411
|
-
"strict": true,
|
|
4412
|
-
"isESM": true,
|
|
4413
|
-
"relativePath": [
|
|
4414
|
-
"dist",
|
|
4415
|
-
"commands",
|
|
4416
|
-
"media",
|
|
4417
|
-
"delete-aspect.js"
|
|
4418
|
-
]
|
|
4419
|
-
},
|
|
4420
|
-
"media:deploy-aspect": {
|
|
4421
|
-
"aliases": [],
|
|
4422
|
-
"args": {
|
|
4423
|
-
"aspectName": {
|
|
4424
|
-
"description": "Name of the aspect to deploy",
|
|
4425
|
-
"name": "aspectName",
|
|
4426
|
-
"required": false
|
|
4427
|
-
}
|
|
4428
|
-
},
|
|
4429
|
-
"description": "Deploy an aspect",
|
|
4430
|
-
"examples": [
|
|
4431
4259
|
{
|
|
4432
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4433
|
-
"description": "
|
|
4260
|
+
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4261
|
+
"description": "Import all assets from \"gallery\" archive"
|
|
4434
4262
|
},
|
|
4435
4263
|
{
|
|
4436
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4437
|
-
"description": "
|
|
4264
|
+
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4265
|
+
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4438
4266
|
}
|
|
4439
4267
|
],
|
|
4440
4268
|
"flags": {
|
|
4441
4269
|
"project-id": {
|
|
4442
4270
|
"char": "p",
|
|
4443
|
-
"description": "Project ID to
|
|
4271
|
+
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
4444
4272
|
"helpGroup": "OVERRIDE",
|
|
4445
4273
|
"name": "project-id",
|
|
4446
4274
|
"hasDynamicHelp": false,
|
|
@@ -4448,24 +4276,23 @@
|
|
|
4448
4276
|
"multiple": false,
|
|
4449
4277
|
"type": "option"
|
|
4450
4278
|
},
|
|
4451
|
-
"all": {
|
|
4452
|
-
"description": "Deploy all aspects",
|
|
4453
|
-
"name": "all",
|
|
4454
|
-
"required": false,
|
|
4455
|
-
"allowNo": false,
|
|
4456
|
-
"type": "boolean"
|
|
4457
|
-
},
|
|
4458
4279
|
"media-library-id": {
|
|
4459
4280
|
"description": "The id of the target media library",
|
|
4460
4281
|
"name": "media-library-id",
|
|
4461
4282
|
"hasDynamicHelp": false,
|
|
4462
4283
|
"multiple": false,
|
|
4463
4284
|
"type": "option"
|
|
4285
|
+
},
|
|
4286
|
+
"replace-aspects": {
|
|
4287
|
+
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
4288
|
+
"name": "replace-aspects",
|
|
4289
|
+
"allowNo": false,
|
|
4290
|
+
"type": "boolean"
|
|
4464
4291
|
}
|
|
4465
4292
|
},
|
|
4466
4293
|
"hasDynamicHelp": false,
|
|
4467
4294
|
"hiddenAliases": [],
|
|
4468
|
-
"id": "media:
|
|
4295
|
+
"id": "media:import",
|
|
4469
4296
|
"pluginAlias": "@sanity/cli",
|
|
4470
4297
|
"pluginName": "@sanity/cli",
|
|
4471
4298
|
"pluginType": "core",
|
|
@@ -4475,138 +4302,63 @@
|
|
|
4475
4302
|
"dist",
|
|
4476
4303
|
"commands",
|
|
4477
4304
|
"media",
|
|
4478
|
-
"
|
|
4305
|
+
"import.js"
|
|
4479
4306
|
]
|
|
4480
4307
|
},
|
|
4481
|
-
"
|
|
4308
|
+
"migrations:create": {
|
|
4482
4309
|
"aliases": [],
|
|
4483
4310
|
"args": {
|
|
4484
|
-
"
|
|
4485
|
-
"description": "
|
|
4486
|
-
"name": "
|
|
4311
|
+
"title": {
|
|
4312
|
+
"description": "Title of migration",
|
|
4313
|
+
"name": "title",
|
|
4314
|
+
"required": false
|
|
4487
4315
|
}
|
|
4488
4316
|
},
|
|
4489
|
-
"description": "
|
|
4317
|
+
"description": "Create a new migration within your project",
|
|
4490
4318
|
"examples": [
|
|
4491
4319
|
{
|
|
4492
4320
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4493
|
-
"description": "
|
|
4494
|
-
},
|
|
4495
|
-
{
|
|
4496
|
-
"command": "<%= config.bin %> <%= command.id %> output.tar.gz",
|
|
4497
|
-
"description": "Export media library to output.tar.gz"
|
|
4321
|
+
"description": "Create a new migration, prompting for title and options"
|
|
4498
4322
|
},
|
|
4499
4323
|
{
|
|
4500
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4501
|
-
"description": "
|
|
4324
|
+
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
4325
|
+
"description": "Create a new migration with the provided title, prompting for options"
|
|
4502
4326
|
}
|
|
4503
4327
|
],
|
|
4504
|
-
"flags": {
|
|
4505
|
-
"project-id": {
|
|
4506
|
-
"char": "p",
|
|
4507
|
-
"description": "Project ID to export media from (overrides CLI configuration)",
|
|
4508
|
-
"helpGroup": "OVERRIDE",
|
|
4509
|
-
"name": "project-id",
|
|
4510
|
-
"hasDynamicHelp": false,
|
|
4511
|
-
"helpValue": "<id>",
|
|
4512
|
-
"multiple": false,
|
|
4513
|
-
"type": "option"
|
|
4514
|
-
},
|
|
4515
|
-
"asset-concurrency": {
|
|
4516
|
-
"description": "Concurrent number of asset downloads",
|
|
4517
|
-
"name": "asset-concurrency",
|
|
4518
|
-
"default": 8,
|
|
4519
|
-
"hasDynamicHelp": false,
|
|
4520
|
-
"multiple": false,
|
|
4521
|
-
"type": "option"
|
|
4522
|
-
},
|
|
4523
|
-
"media-library-id": {
|
|
4524
|
-
"description": "The id of the target media library",
|
|
4525
|
-
"name": "media-library-id",
|
|
4526
|
-
"hasDynamicHelp": false,
|
|
4527
|
-
"multiple": false,
|
|
4528
|
-
"type": "option"
|
|
4529
|
-
},
|
|
4530
|
-
"no-compress": {
|
|
4531
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
4532
|
-
"name": "no-compress",
|
|
4533
|
-
"allowNo": false,
|
|
4534
|
-
"type": "boolean"
|
|
4535
|
-
},
|
|
4536
|
-
"overwrite": {
|
|
4537
|
-
"description": "Overwrite any file with the same name",
|
|
4538
|
-
"name": "overwrite",
|
|
4539
|
-
"allowNo": false,
|
|
4540
|
-
"type": "boolean"
|
|
4541
|
-
}
|
|
4542
|
-
},
|
|
4328
|
+
"flags": {},
|
|
4543
4329
|
"hasDynamicHelp": false,
|
|
4544
|
-
"hiddenAliases": [
|
|
4545
|
-
|
|
4330
|
+
"hiddenAliases": [
|
|
4331
|
+
"migration:create"
|
|
4332
|
+
],
|
|
4333
|
+
"id": "migrations:create",
|
|
4546
4334
|
"pluginAlias": "@sanity/cli",
|
|
4547
4335
|
"pluginName": "@sanity/cli",
|
|
4548
4336
|
"pluginType": "core",
|
|
4549
|
-
"strict": true,
|
|
4550
|
-
"isESM": true,
|
|
4551
|
-
"relativePath": [
|
|
4552
|
-
"dist",
|
|
4553
|
-
"commands",
|
|
4554
|
-
"
|
|
4555
|
-
"
|
|
4556
|
-
]
|
|
4557
|
-
},
|
|
4558
|
-
"
|
|
4559
|
-
"aliases": [],
|
|
4560
|
-
"args": {
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
"
|
|
4565
|
-
|
|
4566
|
-
},
|
|
4567
|
-
"description": "Import a set of assets to the target media library.",
|
|
4568
|
-
"examples": [
|
|
4569
|
-
{
|
|
4570
|
-
"command": "<%= config.bin %> <%= command.id %> products",
|
|
4571
|
-
"description": "Import all assets from the \"products\" directory"
|
|
4572
|
-
},
|
|
4573
|
-
{
|
|
4574
|
-
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4575
|
-
"description": "Import all assets from \"gallery\" archive"
|
|
4576
|
-
},
|
|
4577
|
-
{
|
|
4578
|
-
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4579
|
-
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4580
|
-
}
|
|
4581
|
-
],
|
|
4582
|
-
"flags": {
|
|
4583
|
-
"project-id": {
|
|
4584
|
-
"char": "p",
|
|
4585
|
-
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
4586
|
-
"helpGroup": "OVERRIDE",
|
|
4587
|
-
"name": "project-id",
|
|
4588
|
-
"hasDynamicHelp": false,
|
|
4589
|
-
"helpValue": "<id>",
|
|
4590
|
-
"multiple": false,
|
|
4591
|
-
"type": "option"
|
|
4592
|
-
},
|
|
4593
|
-
"media-library-id": {
|
|
4594
|
-
"description": "The id of the target media library",
|
|
4595
|
-
"name": "media-library-id",
|
|
4596
|
-
"hasDynamicHelp": false,
|
|
4597
|
-
"multiple": false,
|
|
4598
|
-
"type": "option"
|
|
4599
|
-
},
|
|
4600
|
-
"replace-aspects": {
|
|
4601
|
-
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
4602
|
-
"name": "replace-aspects",
|
|
4603
|
-
"allowNo": false,
|
|
4604
|
-
"type": "boolean"
|
|
4337
|
+
"strict": true,
|
|
4338
|
+
"isESM": true,
|
|
4339
|
+
"relativePath": [
|
|
4340
|
+
"dist",
|
|
4341
|
+
"commands",
|
|
4342
|
+
"migrations",
|
|
4343
|
+
"create.js"
|
|
4344
|
+
]
|
|
4345
|
+
},
|
|
4346
|
+
"migrations:list": {
|
|
4347
|
+
"aliases": [],
|
|
4348
|
+
"args": {},
|
|
4349
|
+
"description": "List available migrations",
|
|
4350
|
+
"examples": [
|
|
4351
|
+
{
|
|
4352
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4353
|
+
"description": "List all available migrations in the project"
|
|
4605
4354
|
}
|
|
4606
|
-
|
|
4355
|
+
],
|
|
4356
|
+
"flags": {},
|
|
4607
4357
|
"hasDynamicHelp": false,
|
|
4608
|
-
"hiddenAliases": [
|
|
4609
|
-
|
|
4358
|
+
"hiddenAliases": [
|
|
4359
|
+
"migration:list"
|
|
4360
|
+
],
|
|
4361
|
+
"id": "migrations:list",
|
|
4610
4362
|
"pluginAlias": "@sanity/cli",
|
|
4611
4363
|
"pluginName": "@sanity/cli",
|
|
4612
4364
|
"pluginType": "core",
|
|
@@ -4615,88 +4367,95 @@
|
|
|
4615
4367
|
"relativePath": [
|
|
4616
4368
|
"dist",
|
|
4617
4369
|
"commands",
|
|
4618
|
-
"
|
|
4619
|
-
"
|
|
4370
|
+
"migrations",
|
|
4371
|
+
"list.js"
|
|
4620
4372
|
]
|
|
4621
4373
|
},
|
|
4622
|
-
"
|
|
4374
|
+
"migrations:run": {
|
|
4623
4375
|
"aliases": [],
|
|
4624
4376
|
"args": {
|
|
4625
|
-
"
|
|
4626
|
-
"description": "
|
|
4627
|
-
"name": "
|
|
4377
|
+
"id": {
|
|
4378
|
+
"description": "ID",
|
|
4379
|
+
"name": "id",
|
|
4628
4380
|
"required": false
|
|
4629
4381
|
}
|
|
4630
4382
|
},
|
|
4631
|
-
"description": "
|
|
4383
|
+
"description": "Run a migration against a dataset",
|
|
4632
4384
|
"examples": [
|
|
4633
4385
|
{
|
|
4634
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4635
|
-
"description": "
|
|
4636
|
-
},
|
|
4637
|
-
{
|
|
4638
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
4639
|
-
"description": "Create a project named \"My New Project\""
|
|
4640
|
-
},
|
|
4641
|
-
{
|
|
4642
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
4643
|
-
"description": "Create a project in a specific organization"
|
|
4386
|
+
"command": "<%= config.bin %> <%= command.id %> <id>",
|
|
4387
|
+
"description": "dry run the migration"
|
|
4644
4388
|
},
|
|
4645
4389
|
{
|
|
4646
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4647
|
-
"description": "
|
|
4390
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
4391
|
+
"description": "execute the migration against a dataset"
|
|
4648
4392
|
},
|
|
4649
4393
|
{
|
|
4650
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4651
|
-
"description": "
|
|
4394
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
|
|
4395
|
+
"description": "execute the migration using a dataset export as the source"
|
|
4652
4396
|
}
|
|
4653
4397
|
],
|
|
4654
4398
|
"flags": {
|
|
4655
|
-
"
|
|
4656
|
-
"description": "
|
|
4657
|
-
"name": "
|
|
4399
|
+
"api-version": {
|
|
4400
|
+
"description": "API version to use when migrating. Defaults to v2024-01-29.",
|
|
4401
|
+
"name": "api-version",
|
|
4658
4402
|
"hasDynamicHelp": false,
|
|
4659
4403
|
"multiple": false,
|
|
4660
4404
|
"type": "option"
|
|
4661
4405
|
},
|
|
4662
|
-
"
|
|
4663
|
-
"description": "
|
|
4664
|
-
"name": "
|
|
4406
|
+
"concurrency": {
|
|
4407
|
+
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
4408
|
+
"name": "concurrency",
|
|
4409
|
+
"default": 6,
|
|
4665
4410
|
"hasDynamicHelp": false,
|
|
4666
4411
|
"multiple": false,
|
|
4667
|
-
"options": [
|
|
4668
|
-
"private",
|
|
4669
|
-
"public"
|
|
4670
|
-
],
|
|
4671
4412
|
"type": "option"
|
|
4672
4413
|
},
|
|
4673
|
-
"
|
|
4674
|
-
"description": "
|
|
4675
|
-
"name": "
|
|
4676
|
-
"allowNo":
|
|
4414
|
+
"confirm": {
|
|
4415
|
+
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
4416
|
+
"name": "confirm",
|
|
4417
|
+
"allowNo": true,
|
|
4677
4418
|
"type": "boolean"
|
|
4678
4419
|
},
|
|
4679
|
-
"
|
|
4680
|
-
"description": "
|
|
4681
|
-
"name": "
|
|
4420
|
+
"dataset": {
|
|
4421
|
+
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
4422
|
+
"name": "dataset",
|
|
4682
4423
|
"hasDynamicHelp": false,
|
|
4683
|
-
"helpValue": "<slug|id>",
|
|
4684
4424
|
"multiple": false,
|
|
4685
4425
|
"type": "option"
|
|
4686
4426
|
},
|
|
4687
|
-
"
|
|
4688
|
-
"
|
|
4689
|
-
"
|
|
4690
|
-
"
|
|
4691
|
-
"
|
|
4427
|
+
"dry-run": {
|
|
4428
|
+
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
4429
|
+
"name": "dry-run",
|
|
4430
|
+
"allowNo": true,
|
|
4431
|
+
"type": "boolean"
|
|
4432
|
+
},
|
|
4433
|
+
"from-export": {
|
|
4434
|
+
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
4435
|
+
"name": "from-export",
|
|
4436
|
+
"hasDynamicHelp": false,
|
|
4437
|
+
"multiple": false,
|
|
4438
|
+
"type": "option"
|
|
4439
|
+
},
|
|
4440
|
+
"progress": {
|
|
4441
|
+
"description": "Display progress during migration (default: true). Use --no-progress to hide output.",
|
|
4442
|
+
"name": "progress",
|
|
4443
|
+
"allowNo": true,
|
|
4692
4444
|
"type": "boolean"
|
|
4445
|
+
},
|
|
4446
|
+
"project": {
|
|
4447
|
+
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
4448
|
+
"name": "project",
|
|
4449
|
+
"hasDynamicHelp": false,
|
|
4450
|
+
"multiple": false,
|
|
4451
|
+
"type": "option"
|
|
4693
4452
|
}
|
|
4694
4453
|
},
|
|
4695
4454
|
"hasDynamicHelp": false,
|
|
4696
4455
|
"hiddenAliases": [
|
|
4697
|
-
"
|
|
4456
|
+
"migration:run"
|
|
4698
4457
|
],
|
|
4699
|
-
"id": "
|
|
4458
|
+
"id": "migrations:run",
|
|
4700
4459
|
"pluginAlias": "@sanity/cli",
|
|
4701
4460
|
"pluginName": "@sanity/cli",
|
|
4702
4461
|
"pluginType": "core",
|
|
@@ -4705,58 +4464,101 @@
|
|
|
4705
4464
|
"relativePath": [
|
|
4706
4465
|
"dist",
|
|
4707
4466
|
"commands",
|
|
4708
|
-
"
|
|
4709
|
-
"
|
|
4467
|
+
"migrations",
|
|
4468
|
+
"run.js"
|
|
4710
4469
|
]
|
|
4711
4470
|
},
|
|
4712
|
-
"
|
|
4471
|
+
"manifest:extract": {
|
|
4713
4472
|
"aliases": [],
|
|
4714
4473
|
"args": {},
|
|
4715
|
-
"description": "
|
|
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.",
|
|
4716
4475
|
"examples": [
|
|
4717
4476
|
{
|
|
4718
4477
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4719
|
-
"description": "
|
|
4478
|
+
"description": "Extracts manifests"
|
|
4720
4479
|
},
|
|
4721
4480
|
{
|
|
4722
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4723
|
-
"description": "
|
|
4481
|
+
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
4482
|
+
"description": "Extracts manifests into /public/static"
|
|
4724
4483
|
}
|
|
4725
4484
|
],
|
|
4726
4485
|
"flags": {
|
|
4727
|
-
"
|
|
4728
|
-
"description": "
|
|
4729
|
-
"name": "
|
|
4730
|
-
"default": "
|
|
4486
|
+
"path": {
|
|
4487
|
+
"description": "Optional path to specify destination directory of the manifest files",
|
|
4488
|
+
"name": "path",
|
|
4489
|
+
"default": "dist/static",
|
|
4731
4490
|
"hasDynamicHelp": false,
|
|
4732
4491
|
"multiple": false,
|
|
4733
|
-
"options": [
|
|
4734
|
-
"asc",
|
|
4735
|
-
"desc"
|
|
4736
|
-
],
|
|
4737
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
|
+
"openapi:get": {
|
|
4511
|
+
"aliases": [],
|
|
4512
|
+
"args": {
|
|
4513
|
+
"slug": {
|
|
4514
|
+
"description": "Slug of the OpenAPI specification to retrieve",
|
|
4515
|
+
"name": "slug",
|
|
4516
|
+
"required": true
|
|
4517
|
+
}
|
|
4518
|
+
},
|
|
4519
|
+
"description": "Get an OpenAPI specification by slug",
|
|
4520
|
+
"examples": [
|
|
4521
|
+
{
|
|
4522
|
+
"command": "<%= config.bin %> <%= command.id %> query",
|
|
4523
|
+
"description": "Get a specification (YAML format, default)"
|
|
4738
4524
|
},
|
|
4739
|
-
|
|
4740
|
-
"
|
|
4741
|
-
"
|
|
4742
|
-
|
|
4525
|
+
{
|
|
4526
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
4527
|
+
"description": "Get specification in JSON format"
|
|
4528
|
+
},
|
|
4529
|
+
{
|
|
4530
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
4531
|
+
"description": "Open specification in browser"
|
|
4532
|
+
},
|
|
4533
|
+
{
|
|
4534
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
4535
|
+
"description": "Pipe to file"
|
|
4536
|
+
}
|
|
4537
|
+
],
|
|
4538
|
+
"flags": {
|
|
4539
|
+
"format": {
|
|
4540
|
+
"description": "Output format: yaml (default), json",
|
|
4541
|
+
"name": "format",
|
|
4542
|
+
"default": "yaml",
|
|
4743
4543
|
"hasDynamicHelp": false,
|
|
4744
4544
|
"multiple": false,
|
|
4745
4545
|
"options": [
|
|
4746
|
-
"
|
|
4747
|
-
"
|
|
4748
|
-
"name",
|
|
4749
|
-
"url",
|
|
4750
|
-
"created"
|
|
4546
|
+
"yaml",
|
|
4547
|
+
"json"
|
|
4751
4548
|
],
|
|
4752
4549
|
"type": "option"
|
|
4550
|
+
},
|
|
4551
|
+
"web": {
|
|
4552
|
+
"char": "w",
|
|
4553
|
+
"description": "Open in web browser",
|
|
4554
|
+
"name": "web",
|
|
4555
|
+
"allowNo": false,
|
|
4556
|
+
"type": "boolean"
|
|
4753
4557
|
}
|
|
4754
4558
|
},
|
|
4755
4559
|
"hasDynamicHelp": false,
|
|
4756
|
-
"hiddenAliases": [
|
|
4757
|
-
|
|
4758
|
-
],
|
|
4759
|
-
"id": "projects:list",
|
|
4560
|
+
"hiddenAliases": [],
|
|
4561
|
+
"id": "openapi:get",
|
|
4760
4562
|
"pluginAlias": "@sanity/cli",
|
|
4761
4563
|
"pluginName": "@sanity/cli",
|
|
4762
4564
|
"pluginType": "core",
|
|
@@ -4765,38 +4567,46 @@
|
|
|
4765
4567
|
"relativePath": [
|
|
4766
4568
|
"dist",
|
|
4767
4569
|
"commands",
|
|
4768
|
-
"
|
|
4769
|
-
"
|
|
4570
|
+
"openapi",
|
|
4571
|
+
"get.js"
|
|
4770
4572
|
]
|
|
4771
4573
|
},
|
|
4772
|
-
"
|
|
4574
|
+
"openapi:list": {
|
|
4773
4575
|
"aliases": [],
|
|
4774
4576
|
"args": {},
|
|
4775
|
-
"description": "
|
|
4577
|
+
"description": "List all available OpenAPI specifications",
|
|
4776
4578
|
"examples": [
|
|
4777
4579
|
{
|
|
4778
4580
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4779
|
-
"description": "List
|
|
4581
|
+
"description": "List all available OpenAPI specs"
|
|
4780
4582
|
},
|
|
4781
4583
|
{
|
|
4782
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4783
|
-
"description": "
|
|
4584
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4585
|
+
"description": "List with JSON output"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
4589
|
+
"description": "Open HTTP Reference in browser"
|
|
4784
4590
|
}
|
|
4785
4591
|
],
|
|
4786
4592
|
"flags": {
|
|
4787
|
-
"
|
|
4788
|
-
"description": "
|
|
4789
|
-
"name": "
|
|
4790
|
-
"
|
|
4791
|
-
"
|
|
4792
|
-
|
|
4593
|
+
"json": {
|
|
4594
|
+
"description": "Output JSON",
|
|
4595
|
+
"name": "json",
|
|
4596
|
+
"allowNo": false,
|
|
4597
|
+
"type": "boolean"
|
|
4598
|
+
},
|
|
4599
|
+
"web": {
|
|
4600
|
+
"char": "w",
|
|
4601
|
+
"description": "Open HTTP Reference in web browser",
|
|
4602
|
+
"name": "web",
|
|
4603
|
+
"allowNo": false,
|
|
4604
|
+
"type": "boolean"
|
|
4793
4605
|
}
|
|
4794
4606
|
},
|
|
4795
4607
|
"hasDynamicHelp": false,
|
|
4796
|
-
"hiddenAliases": [
|
|
4797
|
-
|
|
4798
|
-
],
|
|
4799
|
-
"id": "projects:unclaimed",
|
|
4608
|
+
"hiddenAliases": [],
|
|
4609
|
+
"id": "openapi:list",
|
|
4800
4610
|
"pluginAlias": "@sanity/cli",
|
|
4801
4611
|
"pluginName": "@sanity/cli",
|
|
4802
4612
|
"pluginType": "core",
|
|
@@ -4805,8 +4615,8 @@
|
|
|
4805
4615
|
"relativePath": [
|
|
4806
4616
|
"dist",
|
|
4807
4617
|
"commands",
|
|
4808
|
-
"
|
|
4809
|
-
"
|
|
4618
|
+
"openapi",
|
|
4619
|
+
"list.js"
|
|
4810
4620
|
]
|
|
4811
4621
|
},
|
|
4812
4622
|
"organizations:create": {
|
|
@@ -5539,14 +5349,279 @@
|
|
|
5539
5349
|
"description": "Check telemetry status for your account",
|
|
5540
5350
|
"examples": [
|
|
5541
5351
|
{
|
|
5542
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
5543
|
-
"description": "Check telemetry status for your account"
|
|
5352
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
5353
|
+
"description": "Check telemetry status for your account"
|
|
5354
|
+
}
|
|
5355
|
+
],
|
|
5356
|
+
"flags": {},
|
|
5357
|
+
"hasDynamicHelp": false,
|
|
5358
|
+
"hiddenAliases": [],
|
|
5359
|
+
"id": "telemetry:status",
|
|
5360
|
+
"pluginAlias": "@sanity/cli",
|
|
5361
|
+
"pluginName": "@sanity/cli",
|
|
5362
|
+
"pluginType": "core",
|
|
5363
|
+
"strict": true,
|
|
5364
|
+
"isESM": true,
|
|
5365
|
+
"relativePath": [
|
|
5366
|
+
"dist",
|
|
5367
|
+
"commands",
|
|
5368
|
+
"telemetry",
|
|
5369
|
+
"status.js"
|
|
5370
|
+
]
|
|
5371
|
+
},
|
|
5372
|
+
"tokens:create": {
|
|
5373
|
+
"aliases": [],
|
|
5374
|
+
"args": {
|
|
5375
|
+
"label": {
|
|
5376
|
+
"description": "Label for the new token",
|
|
5377
|
+
"name": "label",
|
|
5378
|
+
"required": false
|
|
5379
|
+
}
|
|
5380
|
+
},
|
|
5381
|
+
"description": "Create a new API token for the project",
|
|
5382
|
+
"examples": [
|
|
5383
|
+
{
|
|
5384
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
5385
|
+
"description": "Create a token with a label"
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
5389
|
+
"description": "Create a token with editor role"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
5393
|
+
"description": "Create a token in unattended mode"
|
|
5394
|
+
},
|
|
5395
|
+
{
|
|
5396
|
+
"command": "<%= config.bin %> <%= command.id %> \"Build Token\" --expires-at 2027-01-01",
|
|
5397
|
+
"description": "Create a token that expires on a given date"
|
|
5398
|
+
},
|
|
5399
|
+
{
|
|
5400
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
5401
|
+
"description": "Output token information as JSON"
|
|
5402
|
+
},
|
|
5403
|
+
{
|
|
5404
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
5405
|
+
"description": "Create a token for a specific project"
|
|
5406
|
+
}
|
|
5407
|
+
],
|
|
5408
|
+
"flags": {
|
|
5409
|
+
"project-id": {
|
|
5410
|
+
"char": "p",
|
|
5411
|
+
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
5412
|
+
"helpGroup": "OVERRIDE",
|
|
5413
|
+
"name": "project-id",
|
|
5414
|
+
"hasDynamicHelp": false,
|
|
5415
|
+
"helpValue": "<id>",
|
|
5416
|
+
"multiple": false,
|
|
5417
|
+
"type": "option"
|
|
5418
|
+
},
|
|
5419
|
+
"expires-at": {
|
|
5420
|
+
"description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
|
|
5421
|
+
"name": "expires-at",
|
|
5422
|
+
"hasDynamicHelp": false,
|
|
5423
|
+
"helpValue": "2027-01-01",
|
|
5424
|
+
"multiple": false,
|
|
5425
|
+
"type": "option"
|
|
5426
|
+
},
|
|
5427
|
+
"json": {
|
|
5428
|
+
"description": "Output as JSON",
|
|
5429
|
+
"name": "json",
|
|
5430
|
+
"allowNo": false,
|
|
5431
|
+
"type": "boolean"
|
|
5432
|
+
},
|
|
5433
|
+
"role": {
|
|
5434
|
+
"description": "Role to assign to the token (defaults to viewer in unattended mode)",
|
|
5435
|
+
"name": "role",
|
|
5436
|
+
"hasDynamicHelp": false,
|
|
5437
|
+
"helpValue": "viewer",
|
|
5438
|
+
"multiple": false,
|
|
5439
|
+
"type": "option"
|
|
5440
|
+
},
|
|
5441
|
+
"yes": {
|
|
5442
|
+
"char": "y",
|
|
5443
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
5444
|
+
"name": "yes",
|
|
5445
|
+
"allowNo": false,
|
|
5446
|
+
"type": "boolean"
|
|
5447
|
+
}
|
|
5448
|
+
},
|
|
5449
|
+
"hasDynamicHelp": false,
|
|
5450
|
+
"hiddenAliases": [
|
|
5451
|
+
"tokens:add",
|
|
5452
|
+
"token:add",
|
|
5453
|
+
"token:create"
|
|
5454
|
+
],
|
|
5455
|
+
"id": "tokens:create",
|
|
5456
|
+
"pluginAlias": "@sanity/cli",
|
|
5457
|
+
"pluginName": "@sanity/cli",
|
|
5458
|
+
"pluginType": "core",
|
|
5459
|
+
"strict": true,
|
|
5460
|
+
"isESM": true,
|
|
5461
|
+
"relativePath": [
|
|
5462
|
+
"dist",
|
|
5463
|
+
"commands",
|
|
5464
|
+
"tokens",
|
|
5465
|
+
"create.js"
|
|
5466
|
+
]
|
|
5467
|
+
},
|
|
5468
|
+
"tokens:delete": {
|
|
5469
|
+
"aliases": [],
|
|
5470
|
+
"args": {
|
|
5471
|
+
"tokenId": {
|
|
5472
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
5473
|
+
"name": "tokenId",
|
|
5474
|
+
"required": false
|
|
5475
|
+
}
|
|
5476
|
+
},
|
|
5477
|
+
"description": "Delete an API token from the project",
|
|
5478
|
+
"examples": [
|
|
5479
|
+
{
|
|
5480
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5481
|
+
"description": "Interactively select and delete a token"
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
5485
|
+
"description": "Delete a specific token by ID"
|
|
5486
|
+
},
|
|
5487
|
+
{
|
|
5488
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
5489
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
5490
|
+
},
|
|
5491
|
+
{
|
|
5492
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
5493
|
+
"description": "Delete a token from a specific project"
|
|
5494
|
+
}
|
|
5495
|
+
],
|
|
5496
|
+
"flags": {
|
|
5497
|
+
"project-id": {
|
|
5498
|
+
"char": "p",
|
|
5499
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
5500
|
+
"helpGroup": "OVERRIDE",
|
|
5501
|
+
"name": "project-id",
|
|
5502
|
+
"hasDynamicHelp": false,
|
|
5503
|
+
"helpValue": "<id>",
|
|
5504
|
+
"multiple": false,
|
|
5505
|
+
"type": "option"
|
|
5506
|
+
},
|
|
5507
|
+
"yes": {
|
|
5508
|
+
"char": "y",
|
|
5509
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
5510
|
+
"name": "yes",
|
|
5511
|
+
"allowNo": false,
|
|
5512
|
+
"type": "boolean"
|
|
5513
|
+
}
|
|
5514
|
+
},
|
|
5515
|
+
"hasDynamicHelp": false,
|
|
5516
|
+
"hiddenAliases": [
|
|
5517
|
+
"token:delete"
|
|
5518
|
+
],
|
|
5519
|
+
"id": "tokens:delete",
|
|
5520
|
+
"pluginAlias": "@sanity/cli",
|
|
5521
|
+
"pluginName": "@sanity/cli",
|
|
5522
|
+
"pluginType": "core",
|
|
5523
|
+
"strict": true,
|
|
5524
|
+
"isESM": true,
|
|
5525
|
+
"relativePath": [
|
|
5526
|
+
"dist",
|
|
5527
|
+
"commands",
|
|
5528
|
+
"tokens",
|
|
5529
|
+
"delete.js"
|
|
5530
|
+
]
|
|
5531
|
+
},
|
|
5532
|
+
"tokens:list": {
|
|
5533
|
+
"aliases": [],
|
|
5534
|
+
"args": {},
|
|
5535
|
+
"description": "List API tokens for the project",
|
|
5536
|
+
"examples": [
|
|
5537
|
+
{
|
|
5538
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5539
|
+
"description": "List tokens for the project"
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
5543
|
+
"description": "List tokens in JSON format"
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
5547
|
+
"description": "List tokens for a specific project"
|
|
5548
|
+
}
|
|
5549
|
+
],
|
|
5550
|
+
"flags": {
|
|
5551
|
+
"project-id": {
|
|
5552
|
+
"char": "p",
|
|
5553
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
5554
|
+
"helpGroup": "OVERRIDE",
|
|
5555
|
+
"name": "project-id",
|
|
5556
|
+
"hasDynamicHelp": false,
|
|
5557
|
+
"helpValue": "<id>",
|
|
5558
|
+
"multiple": false,
|
|
5559
|
+
"type": "option"
|
|
5560
|
+
},
|
|
5561
|
+
"json": {
|
|
5562
|
+
"description": "Output tokens in JSON format",
|
|
5563
|
+
"name": "json",
|
|
5564
|
+
"allowNo": false,
|
|
5565
|
+
"type": "boolean"
|
|
5566
|
+
}
|
|
5567
|
+
},
|
|
5568
|
+
"hasDynamicHelp": false,
|
|
5569
|
+
"hiddenAliases": [
|
|
5570
|
+
"token:list"
|
|
5571
|
+
],
|
|
5572
|
+
"id": "tokens:list",
|
|
5573
|
+
"pluginAlias": "@sanity/cli",
|
|
5574
|
+
"pluginName": "@sanity/cli",
|
|
5575
|
+
"pluginType": "core",
|
|
5576
|
+
"strict": true,
|
|
5577
|
+
"isESM": true,
|
|
5578
|
+
"relativePath": [
|
|
5579
|
+
"dist",
|
|
5580
|
+
"commands",
|
|
5581
|
+
"tokens",
|
|
5582
|
+
"list.js"
|
|
5583
|
+
]
|
|
5584
|
+
},
|
|
5585
|
+
"tokens:rotate": {
|
|
5586
|
+
"aliases": [],
|
|
5587
|
+
"args": {},
|
|
5588
|
+
"description": "Rotate an API token, replacing its secret with a new one",
|
|
5589
|
+
"examples": [
|
|
5590
|
+
{
|
|
5591
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
|
|
5592
|
+
"description": "Rotate the token piped on standard input"
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
5596
|
+
"description": "Rotate a token read from a file"
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
|
|
5600
|
+
"description": "Output the rotated token as JSON"
|
|
5544
5601
|
}
|
|
5545
5602
|
],
|
|
5546
|
-
"flags": {
|
|
5603
|
+
"flags": {
|
|
5604
|
+
"json": {
|
|
5605
|
+
"description": "Output as JSON",
|
|
5606
|
+
"name": "json",
|
|
5607
|
+
"allowNo": false,
|
|
5608
|
+
"type": "boolean"
|
|
5609
|
+
},
|
|
5610
|
+
"token": {
|
|
5611
|
+
"char": "t",
|
|
5612
|
+
"description": "Token to rotate (prefer standard input to keep it out of shell history)",
|
|
5613
|
+
"name": "token",
|
|
5614
|
+
"hasDynamicHelp": false,
|
|
5615
|
+
"helpValue": "<token>",
|
|
5616
|
+
"multiple": false,
|
|
5617
|
+
"type": "option"
|
|
5618
|
+
}
|
|
5619
|
+
},
|
|
5547
5620
|
"hasDynamicHelp": false,
|
|
5548
|
-
"hiddenAliases": [
|
|
5549
|
-
|
|
5621
|
+
"hiddenAliases": [
|
|
5622
|
+
"token:rotate"
|
|
5623
|
+
],
|
|
5624
|
+
"id": "tokens:rotate",
|
|
5550
5625
|
"pluginAlias": "@sanity/cli",
|
|
5551
5626
|
"pluginName": "@sanity/cli",
|
|
5552
5627
|
"pluginType": "core",
|
|
@@ -5555,8 +5630,8 @@
|
|
|
5555
5630
|
"relativePath": [
|
|
5556
5631
|
"dist",
|
|
5557
5632
|
"commands",
|
|
5558
|
-
"
|
|
5559
|
-
"
|
|
5633
|
+
"tokens",
|
|
5634
|
+
"rotate.js"
|
|
5560
5635
|
]
|
|
5561
5636
|
},
|
|
5562
5637
|
"typegen:generate": {
|
|
@@ -5601,46 +5676,38 @@
|
|
|
5601
5676
|
"generate.js"
|
|
5602
5677
|
]
|
|
5603
5678
|
},
|
|
5604
|
-
"
|
|
5679
|
+
"users:invite": {
|
|
5605
5680
|
"aliases": [],
|
|
5606
5681
|
"args": {
|
|
5607
|
-
"
|
|
5608
|
-
"description": "
|
|
5609
|
-
"name": "
|
|
5682
|
+
"email": {
|
|
5683
|
+
"description": "Email address to invite",
|
|
5684
|
+
"name": "email",
|
|
5610
5685
|
"required": false
|
|
5611
5686
|
}
|
|
5612
5687
|
},
|
|
5613
|
-
"description": "
|
|
5688
|
+
"description": "Invite a new user to the project",
|
|
5614
5689
|
"examples": [
|
|
5615
5690
|
{
|
|
5616
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5617
|
-
"description": "
|
|
5618
|
-
},
|
|
5619
|
-
{
|
|
5620
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
5621
|
-
"description": "Create a token with editor role"
|
|
5622
|
-
},
|
|
5623
|
-
{
|
|
5624
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
5625
|
-
"description": "Create a token in unattended mode"
|
|
5691
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5692
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
5626
5693
|
},
|
|
5627
5694
|
{
|
|
5628
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5629
|
-
"description": "
|
|
5695
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
5696
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
5630
5697
|
},
|
|
5631
5698
|
{
|
|
5632
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5633
|
-
"description": "
|
|
5699
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
5700
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
5634
5701
|
},
|
|
5635
5702
|
{
|
|
5636
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5637
|
-
"description": "
|
|
5703
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
5704
|
+
"description": "Invite a user to a specific project"
|
|
5638
5705
|
}
|
|
5639
5706
|
],
|
|
5640
5707
|
"flags": {
|
|
5641
5708
|
"project-id": {
|
|
5642
5709
|
"char": "p",
|
|
5643
|
-
"description": "Project ID to
|
|
5710
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
5644
5711
|
"helpGroup": "OVERRIDE",
|
|
5645
5712
|
"name": "project-id",
|
|
5646
5713
|
"hasDynamicHelp": false,
|
|
@@ -5648,43 +5715,19 @@
|
|
|
5648
5715
|
"multiple": false,
|
|
5649
5716
|
"type": "option"
|
|
5650
5717
|
},
|
|
5651
|
-
"expires-at": {
|
|
5652
|
-
"description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
|
|
5653
|
-
"name": "expires-at",
|
|
5654
|
-
"hasDynamicHelp": false,
|
|
5655
|
-
"helpValue": "2027-01-01",
|
|
5656
|
-
"multiple": false,
|
|
5657
|
-
"type": "option"
|
|
5658
|
-
},
|
|
5659
|
-
"json": {
|
|
5660
|
-
"description": "Output as JSON",
|
|
5661
|
-
"name": "json",
|
|
5662
|
-
"allowNo": false,
|
|
5663
|
-
"type": "boolean"
|
|
5664
|
-
},
|
|
5665
5718
|
"role": {
|
|
5666
|
-
"description": "Role to
|
|
5719
|
+
"description": "Role to invite the user as",
|
|
5667
5720
|
"name": "role",
|
|
5668
5721
|
"hasDynamicHelp": false,
|
|
5669
|
-
"helpValue": "viewer",
|
|
5670
5722
|
"multiple": false,
|
|
5671
5723
|
"type": "option"
|
|
5672
|
-
},
|
|
5673
|
-
"yes": {
|
|
5674
|
-
"char": "y",
|
|
5675
|
-
"description": "Skip prompts and use defaults (unattended mode)",
|
|
5676
|
-
"name": "yes",
|
|
5677
|
-
"allowNo": false,
|
|
5678
|
-
"type": "boolean"
|
|
5679
5724
|
}
|
|
5680
5725
|
},
|
|
5681
5726
|
"hasDynamicHelp": false,
|
|
5682
5727
|
"hiddenAliases": [
|
|
5683
|
-
"
|
|
5684
|
-
"token:add",
|
|
5685
|
-
"token:create"
|
|
5728
|
+
"user:invite"
|
|
5686
5729
|
],
|
|
5687
|
-
"id": "
|
|
5730
|
+
"id": "users:invite",
|
|
5688
5731
|
"pluginAlias": "@sanity/cli",
|
|
5689
5732
|
"pluginName": "@sanity/cli",
|
|
5690
5733
|
"pluginType": "core",
|
|
@@ -5693,42 +5736,36 @@
|
|
|
5693
5736
|
"relativePath": [
|
|
5694
5737
|
"dist",
|
|
5695
5738
|
"commands",
|
|
5696
|
-
"
|
|
5697
|
-
"
|
|
5739
|
+
"users",
|
|
5740
|
+
"invite.js"
|
|
5698
5741
|
]
|
|
5699
5742
|
},
|
|
5700
|
-
"
|
|
5743
|
+
"users:list": {
|
|
5701
5744
|
"aliases": [],
|
|
5702
|
-
"args": {
|
|
5703
|
-
|
|
5704
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
5705
|
-
"name": "tokenId",
|
|
5706
|
-
"required": false
|
|
5707
|
-
}
|
|
5708
|
-
},
|
|
5709
|
-
"description": "Delete an API token from the project",
|
|
5745
|
+
"args": {},
|
|
5746
|
+
"description": "List project members",
|
|
5710
5747
|
"examples": [
|
|
5711
5748
|
{
|
|
5712
5749
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5713
|
-
"description": "
|
|
5750
|
+
"description": "List all users of the project"
|
|
5714
5751
|
},
|
|
5715
5752
|
{
|
|
5716
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5717
|
-
"description": "
|
|
5753
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
5754
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
5718
5755
|
},
|
|
5719
5756
|
{
|
|
5720
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5721
|
-
"description": "
|
|
5757
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
5758
|
+
"description": "List all users, sorted by role"
|
|
5722
5759
|
},
|
|
5723
5760
|
{
|
|
5724
5761
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
5725
|
-
"description": "
|
|
5762
|
+
"description": "List users for a specific project"
|
|
5726
5763
|
}
|
|
5727
5764
|
],
|
|
5728
5765
|
"flags": {
|
|
5729
5766
|
"project-id": {
|
|
5730
5767
|
"char": "p",
|
|
5731
|
-
"description": "Project ID to
|
|
5768
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
5732
5769
|
"helpGroup": "OVERRIDE",
|
|
5733
5770
|
"name": "project-id",
|
|
5734
5771
|
"hasDynamicHelp": false,
|
|
@@ -5736,19 +5773,50 @@
|
|
|
5736
5773
|
"multiple": false,
|
|
5737
5774
|
"type": "option"
|
|
5738
5775
|
},
|
|
5739
|
-
"
|
|
5740
|
-
"
|
|
5741
|
-
"
|
|
5742
|
-
"
|
|
5743
|
-
"
|
|
5776
|
+
"invitations": {
|
|
5777
|
+
"description": "Includes or excludes pending invitations",
|
|
5778
|
+
"name": "invitations",
|
|
5779
|
+
"allowNo": true,
|
|
5780
|
+
"type": "boolean"
|
|
5781
|
+
},
|
|
5782
|
+
"order": {
|
|
5783
|
+
"description": "Sort output ascending/descending",
|
|
5784
|
+
"name": "order",
|
|
5785
|
+
"default": "asc",
|
|
5786
|
+
"hasDynamicHelp": false,
|
|
5787
|
+
"multiple": false,
|
|
5788
|
+
"options": [
|
|
5789
|
+
"asc",
|
|
5790
|
+
"desc"
|
|
5791
|
+
],
|
|
5792
|
+
"type": "option"
|
|
5793
|
+
},
|
|
5794
|
+
"robots": {
|
|
5795
|
+
"description": "Includes or excludes robots (token users)",
|
|
5796
|
+
"name": "robots",
|
|
5797
|
+
"allowNo": true,
|
|
5744
5798
|
"type": "boolean"
|
|
5799
|
+
},
|
|
5800
|
+
"sort": {
|
|
5801
|
+
"description": "Sort users by specified column",
|
|
5802
|
+
"name": "sort",
|
|
5803
|
+
"default": "date",
|
|
5804
|
+
"hasDynamicHelp": false,
|
|
5805
|
+
"multiple": false,
|
|
5806
|
+
"options": [
|
|
5807
|
+
"id",
|
|
5808
|
+
"name",
|
|
5809
|
+
"role",
|
|
5810
|
+
"date"
|
|
5811
|
+
],
|
|
5812
|
+
"type": "option"
|
|
5745
5813
|
}
|
|
5746
5814
|
},
|
|
5747
5815
|
"hasDynamicHelp": false,
|
|
5748
5816
|
"hiddenAliases": [
|
|
5749
|
-
"
|
|
5817
|
+
"user:list"
|
|
5750
5818
|
],
|
|
5751
|
-
"id": "
|
|
5819
|
+
"id": "users:list",
|
|
5752
5820
|
"pluginAlias": "@sanity/cli",
|
|
5753
5821
|
"pluginName": "@sanity/cli",
|
|
5754
5822
|
"pluginType": "core",
|
|
@@ -5757,51 +5825,88 @@
|
|
|
5757
5825
|
"relativePath": [
|
|
5758
5826
|
"dist",
|
|
5759
5827
|
"commands",
|
|
5760
|
-
"
|
|
5761
|
-
"
|
|
5828
|
+
"users",
|
|
5829
|
+
"list.js"
|
|
5762
5830
|
]
|
|
5763
5831
|
},
|
|
5764
|
-
"
|
|
5832
|
+
"projects:create": {
|
|
5765
5833
|
"aliases": [],
|
|
5766
|
-
"args": {
|
|
5767
|
-
|
|
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",
|
|
5768
5842
|
"examples": [
|
|
5769
5843
|
{
|
|
5770
5844
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5771
|
-
"description": "
|
|
5845
|
+
"description": "Interactively create a project"
|
|
5772
5846
|
},
|
|
5773
5847
|
{
|
|
5774
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5775
|
-
"description": "
|
|
5848
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
5849
|
+
"description": "Create a project named \"My New Project\""
|
|
5776
5850
|
},
|
|
5777
5851
|
{
|
|
5778
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5779
|
-
"description": "
|
|
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"
|
|
5780
5862
|
}
|
|
5781
5863
|
],
|
|
5782
5864
|
"flags": {
|
|
5783
|
-
"
|
|
5784
|
-
"
|
|
5785
|
-
"
|
|
5786
|
-
"
|
|
5787
|
-
"
|
|
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",
|
|
5788
5875
|
"hasDynamicHelp": false,
|
|
5789
|
-
"helpValue": "<id>",
|
|
5790
5876
|
"multiple": false,
|
|
5877
|
+
"options": [
|
|
5878
|
+
"private",
|
|
5879
|
+
"public"
|
|
5880
|
+
],
|
|
5791
5881
|
"type": "option"
|
|
5792
5882
|
},
|
|
5793
5883
|
"json": {
|
|
5794
|
-
"description": "Output
|
|
5884
|
+
"description": "Output in JSON format",
|
|
5795
5885
|
"name": "json",
|
|
5796
5886
|
"allowNo": false,
|
|
5797
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"
|
|
5798
5903
|
}
|
|
5799
5904
|
},
|
|
5800
5905
|
"hasDynamicHelp": false,
|
|
5801
5906
|
"hiddenAliases": [
|
|
5802
|
-
"
|
|
5907
|
+
"project:create"
|
|
5803
5908
|
],
|
|
5804
|
-
"id": "
|
|
5909
|
+
"id": "projects:create",
|
|
5805
5910
|
"pluginAlias": "@sanity/cli",
|
|
5806
5911
|
"pluginName": "@sanity/cli",
|
|
5807
5912
|
"pluginType": "core",
|
|
@@ -5809,51 +5914,59 @@
|
|
|
5809
5914
|
"isESM": true,
|
|
5810
5915
|
"relativePath": [
|
|
5811
5916
|
"dist",
|
|
5812
|
-
"commands",
|
|
5813
|
-
"
|
|
5814
|
-
"
|
|
5917
|
+
"commands",
|
|
5918
|
+
"projects",
|
|
5919
|
+
"create.js"
|
|
5815
5920
|
]
|
|
5816
5921
|
},
|
|
5817
|
-
"
|
|
5922
|
+
"projects:list": {
|
|
5818
5923
|
"aliases": [],
|
|
5819
5924
|
"args": {},
|
|
5820
|
-
"description": "
|
|
5925
|
+
"description": "List your projects",
|
|
5821
5926
|
"examples": [
|
|
5822
5927
|
{
|
|
5823
|
-
"command": "
|
|
5824
|
-
"description": "
|
|
5825
|
-
},
|
|
5826
|
-
{
|
|
5827
|
-
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
5828
|
-
"description": "Rotate a token read from a file"
|
|
5928
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5929
|
+
"description": "List projects"
|
|
5829
5930
|
},
|
|
5830
5931
|
{
|
|
5831
|
-
"command": "
|
|
5832
|
-
"description": "
|
|
5932
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
5933
|
+
"description": "List projects sorted by member count, ascending"
|
|
5833
5934
|
}
|
|
5834
5935
|
],
|
|
5835
5936
|
"flags": {
|
|
5836
|
-
"
|
|
5837
|
-
"description": "
|
|
5838
|
-
"name": "
|
|
5839
|
-
"
|
|
5840
|
-
"
|
|
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"
|
|
5841
5948
|
},
|
|
5842
|
-
"
|
|
5843
|
-
"
|
|
5844
|
-
"
|
|
5845
|
-
"
|
|
5949
|
+
"sort": {
|
|
5950
|
+
"description": "Sort field",
|
|
5951
|
+
"name": "sort",
|
|
5952
|
+
"default": "created",
|
|
5846
5953
|
"hasDynamicHelp": false,
|
|
5847
|
-
"helpValue": "<token>",
|
|
5848
5954
|
"multiple": false,
|
|
5955
|
+
"options": [
|
|
5956
|
+
"id",
|
|
5957
|
+
"members",
|
|
5958
|
+
"name",
|
|
5959
|
+
"url",
|
|
5960
|
+
"created"
|
|
5961
|
+
],
|
|
5849
5962
|
"type": "option"
|
|
5850
5963
|
}
|
|
5851
5964
|
},
|
|
5852
5965
|
"hasDynamicHelp": false,
|
|
5853
5966
|
"hiddenAliases": [
|
|
5854
|
-
"
|
|
5967
|
+
"project:list"
|
|
5855
5968
|
],
|
|
5856
|
-
"id": "
|
|
5969
|
+
"id": "projects:list",
|
|
5857
5970
|
"pluginAlias": "@sanity/cli",
|
|
5858
5971
|
"pluginName": "@sanity/cli",
|
|
5859
5972
|
"pluginType": "core",
|
|
@@ -5862,62 +5975,38 @@
|
|
|
5862
5975
|
"relativePath": [
|
|
5863
5976
|
"dist",
|
|
5864
5977
|
"commands",
|
|
5865
|
-
"
|
|
5866
|
-
"
|
|
5978
|
+
"projects",
|
|
5979
|
+
"list.js"
|
|
5867
5980
|
]
|
|
5868
5981
|
},
|
|
5869
|
-
"
|
|
5982
|
+
"projects:unclaimed": {
|
|
5870
5983
|
"aliases": [],
|
|
5871
|
-
"args": {
|
|
5872
|
-
|
|
5873
|
-
"description": "Email address to invite",
|
|
5874
|
-
"name": "email",
|
|
5875
|
-
"required": false
|
|
5876
|
-
}
|
|
5877
|
-
},
|
|
5878
|
-
"description": "Invite a new user to the project",
|
|
5984
|
+
"args": {},
|
|
5985
|
+
"description": "Recover details for unclaimed projects created on this machine",
|
|
5879
5986
|
"examples": [
|
|
5880
5987
|
{
|
|
5881
5988
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5882
|
-
"description": "
|
|
5883
|
-
},
|
|
5884
|
-
{
|
|
5885
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
5886
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
5887
|
-
},
|
|
5888
|
-
{
|
|
5889
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
5890
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
5989
|
+
"description": "List locally recorded unclaimed projects"
|
|
5891
5990
|
},
|
|
5892
5991
|
{
|
|
5893
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5894
|
-
"description": "
|
|
5992
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
5993
|
+
"description": "Show recovery details for one project"
|
|
5895
5994
|
}
|
|
5896
5995
|
],
|
|
5897
5996
|
"flags": {
|
|
5898
5997
|
"project-id": {
|
|
5899
|
-
"
|
|
5900
|
-
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
5901
|
-
"helpGroup": "OVERRIDE",
|
|
5998
|
+
"description": "Project ID to recover",
|
|
5902
5999
|
"name": "project-id",
|
|
5903
6000
|
"hasDynamicHelp": false,
|
|
5904
|
-
"helpValue": "<id>",
|
|
5905
|
-
"multiple": false,
|
|
5906
|
-
"type": "option"
|
|
5907
|
-
},
|
|
5908
|
-
"role": {
|
|
5909
|
-
"description": "Role to invite the user as",
|
|
5910
|
-
"name": "role",
|
|
5911
|
-
"hasDynamicHelp": false,
|
|
5912
6001
|
"multiple": false,
|
|
5913
6002
|
"type": "option"
|
|
5914
6003
|
}
|
|
5915
6004
|
},
|
|
5916
6005
|
"hasDynamicHelp": false,
|
|
5917
6006
|
"hiddenAliases": [
|
|
5918
|
-
"
|
|
6007
|
+
"project:unclaimed"
|
|
5919
6008
|
],
|
|
5920
|
-
"id": "
|
|
6009
|
+
"id": "projects:unclaimed",
|
|
5921
6010
|
"pluginAlias": "@sanity/cli",
|
|
5922
6011
|
"pluginName": "@sanity/cli",
|
|
5923
6012
|
"pluginType": "core",
|
|
@@ -5926,87 +6015,52 @@
|
|
|
5926
6015
|
"relativePath": [
|
|
5927
6016
|
"dist",
|
|
5928
6017
|
"commands",
|
|
5929
|
-
"
|
|
5930
|
-
"
|
|
6018
|
+
"projects",
|
|
6019
|
+
"unclaimed.js"
|
|
5931
6020
|
]
|
|
5932
6021
|
},
|
|
5933
|
-
"
|
|
6022
|
+
"context:jobs:get": {
|
|
5934
6023
|
"aliases": [],
|
|
5935
|
-
"args": {
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
"
|
|
5940
|
-
"description": "List all users of the project"
|
|
5941
|
-
},
|
|
5942
|
-
{
|
|
5943
|
-
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
5944
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6024
|
+
"args": {
|
|
6025
|
+
"knowledgeBaseId": {
|
|
6026
|
+
"description": "Knowledge base ID",
|
|
6027
|
+
"name": "knowledgeBaseId",
|
|
6028
|
+
"required": true
|
|
5945
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": [
|
|
5946
6038
|
{
|
|
5947
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5948
|
-
"description": "
|
|
6039
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
|
|
6040
|
+
"description": "Get the current status of a job"
|
|
5949
6041
|
},
|
|
5950
6042
|
{
|
|
5951
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5952
|
-
"description": "
|
|
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)"
|
|
5953
6045
|
}
|
|
5954
6046
|
],
|
|
5955
6047
|
"flags": {
|
|
5956
|
-
"
|
|
5957
|
-
"
|
|
5958
|
-
"
|
|
5959
|
-
"
|
|
5960
|
-
"name": "project-id",
|
|
5961
|
-
"hasDynamicHelp": false,
|
|
5962
|
-
"helpValue": "<id>",
|
|
5963
|
-
"multiple": false,
|
|
5964
|
-
"type": "option"
|
|
5965
|
-
},
|
|
5966
|
-
"invitations": {
|
|
5967
|
-
"description": "Includes or excludes pending invitations",
|
|
5968
|
-
"name": "invitations",
|
|
5969
|
-
"allowNo": true,
|
|
6048
|
+
"json": {
|
|
6049
|
+
"description": "Output the job in JSON format",
|
|
6050
|
+
"name": "json",
|
|
6051
|
+
"allowNo": false,
|
|
5970
6052
|
"type": "boolean"
|
|
5971
6053
|
},
|
|
5972
|
-
"
|
|
5973
|
-
"description": "
|
|
5974
|
-
"name": "
|
|
5975
|
-
"
|
|
5976
|
-
"hasDynamicHelp": false,
|
|
5977
|
-
"multiple": false,
|
|
5978
|
-
"options": [
|
|
5979
|
-
"asc",
|
|
5980
|
-
"desc"
|
|
5981
|
-
],
|
|
5982
|
-
"type": "option"
|
|
5983
|
-
},
|
|
5984
|
-
"robots": {
|
|
5985
|
-
"description": "Includes or excludes robots (token users)",
|
|
5986
|
-
"name": "robots",
|
|
5987
|
-
"allowNo": true,
|
|
6054
|
+
"watch": {
|
|
6055
|
+
"description": "Poll until the job reaches a terminal state",
|
|
6056
|
+
"name": "watch",
|
|
6057
|
+
"allowNo": false,
|
|
5988
6058
|
"type": "boolean"
|
|
5989
|
-
},
|
|
5990
|
-
"sort": {
|
|
5991
|
-
"description": "Sort users by specified column",
|
|
5992
|
-
"name": "sort",
|
|
5993
|
-
"default": "date",
|
|
5994
|
-
"hasDynamicHelp": false,
|
|
5995
|
-
"multiple": false,
|
|
5996
|
-
"options": [
|
|
5997
|
-
"id",
|
|
5998
|
-
"name",
|
|
5999
|
-
"role",
|
|
6000
|
-
"date"
|
|
6001
|
-
],
|
|
6002
|
-
"type": "option"
|
|
6003
6059
|
}
|
|
6004
6060
|
},
|
|
6005
6061
|
"hasDynamicHelp": false,
|
|
6006
|
-
"hiddenAliases": [
|
|
6007
|
-
|
|
6008
|
-
],
|
|
6009
|
-
"id": "users:list",
|
|
6062
|
+
"hiddenAliases": [],
|
|
6063
|
+
"id": "context:jobs:get",
|
|
6010
6064
|
"pluginAlias": "@sanity/cli",
|
|
6011
6065
|
"pluginName": "@sanity/cli",
|
|
6012
6066
|
"pluginType": "core",
|
|
@@ -6015,8 +6069,9 @@
|
|
|
6015
6069
|
"relativePath": [
|
|
6016
6070
|
"dist",
|
|
6017
6071
|
"commands",
|
|
6018
|
-
"
|
|
6019
|
-
"
|
|
6072
|
+
"context",
|
|
6073
|
+
"jobs",
|
|
6074
|
+
"get.js"
|
|
6020
6075
|
]
|
|
6021
6076
|
},
|
|
6022
6077
|
"context:imports:create": {
|
|
@@ -6385,61 +6440,6 @@
|
|
|
6385
6440
|
"list.js"
|
|
6386
6441
|
]
|
|
6387
6442
|
},
|
|
6388
|
-
"context:jobs:get": {
|
|
6389
|
-
"aliases": [],
|
|
6390
|
-
"args": {
|
|
6391
|
-
"knowledgeBaseId": {
|
|
6392
|
-
"description": "Knowledge base ID",
|
|
6393
|
-
"name": "knowledgeBaseId",
|
|
6394
|
-
"required": true
|
|
6395
|
-
},
|
|
6396
|
-
"jobId": {
|
|
6397
|
-
"description": "Job ID",
|
|
6398
|
-
"name": "jobId",
|
|
6399
|
-
"required": true
|
|
6400
|
-
}
|
|
6401
|
-
},
|
|
6402
|
-
"description": "Get the status of a knowledge base job",
|
|
6403
|
-
"examples": [
|
|
6404
|
-
{
|
|
6405
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
|
|
6406
|
-
"description": "Get the current status of a job"
|
|
6407
|
-
},
|
|
6408
|
-
{
|
|
6409
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
|
|
6410
|
-
"description": "Wait for the job to finish (non-zero exit if it does not succeed)"
|
|
6411
|
-
}
|
|
6412
|
-
],
|
|
6413
|
-
"flags": {
|
|
6414
|
-
"json": {
|
|
6415
|
-
"description": "Output the job in JSON format",
|
|
6416
|
-
"name": "json",
|
|
6417
|
-
"allowNo": false,
|
|
6418
|
-
"type": "boolean"
|
|
6419
|
-
},
|
|
6420
|
-
"watch": {
|
|
6421
|
-
"description": "Poll until the job reaches a terminal state",
|
|
6422
|
-
"name": "watch",
|
|
6423
|
-
"allowNo": false,
|
|
6424
|
-
"type": "boolean"
|
|
6425
|
-
}
|
|
6426
|
-
},
|
|
6427
|
-
"hasDynamicHelp": false,
|
|
6428
|
-
"hiddenAliases": [],
|
|
6429
|
-
"id": "context:jobs:get",
|
|
6430
|
-
"pluginAlias": "@sanity/cli",
|
|
6431
|
-
"pluginName": "@sanity/cli",
|
|
6432
|
-
"pluginType": "core",
|
|
6433
|
-
"strict": true,
|
|
6434
|
-
"isESM": true,
|
|
6435
|
-
"relativePath": [
|
|
6436
|
-
"dist",
|
|
6437
|
-
"commands",
|
|
6438
|
-
"context",
|
|
6439
|
-
"jobs",
|
|
6440
|
-
"get.js"
|
|
6441
|
-
]
|
|
6442
|
-
},
|
|
6443
6443
|
"datasets:alias:create": {
|
|
6444
6444
|
"aliases": [],
|
|
6445
6445
|
"args": {
|
|
@@ -6955,5 +6955,5 @@
|
|
|
6955
6955
|
]
|
|
6956
6956
|
}
|
|
6957
6957
|
},
|
|
6958
|
-
"version": "8.
|
|
6958
|
+
"version": "8.9.1"
|
|
6959
6959
|
}
|