@sanity/cli 8.38.1 → 8.38.2

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.
@@ -1987,179 +1987,6 @@
1987
1987
  "list.js"
1988
1988
  ]
1989
1989
  },
1990
- "cors:add": {
1991
- "aliases": [],
1992
- "args": {
1993
- "origin": {
1994
- "description": "Origin to allow (e.g., https://example.com)",
1995
- "name": "origin",
1996
- "required": true
1997
- }
1998
- },
1999
- "description": "Add a CORS origin to the project",
2000
- "examples": [
2001
- {
2002
- "command": "<%= config.bin %> <%= command.id %>",
2003
- "description": "Interactively add a CORS origin"
2004
- },
2005
- {
2006
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2007
- "description": "Add a localhost origin without credentials"
2008
- },
2009
- {
2010
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2011
- "description": "Add a production origin with credentials allowed"
2012
- },
2013
- {
2014
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
2015
- "description": "Add a CORS origin for a specific project"
2016
- }
2017
- ],
2018
- "flags": {
2019
- "project": {
2020
- "aliases": [
2021
- "project-id"
2022
- ],
2023
- "char": "p",
2024
- "deprecateAliases": true,
2025
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2026
- "helpGroup": "OVERRIDE",
2027
- "name": "project",
2028
- "hasDynamicHelp": false,
2029
- "helpValue": "<id>",
2030
- "multiple": false,
2031
- "type": "option"
2032
- },
2033
- "credentials": {
2034
- "description": "Allow credentials (token/cookie) to be sent from this origin",
2035
- "name": "credentials",
2036
- "required": false,
2037
- "allowNo": true,
2038
- "type": "boolean"
2039
- },
2040
- "yes": {
2041
- "char": "y",
2042
- "description": "Confirm risky wildcard origins without prompting",
2043
- "name": "yes",
2044
- "allowNo": false,
2045
- "type": "boolean"
2046
- }
2047
- },
2048
- "hasDynamicHelp": false,
2049
- "hiddenAliases": [],
2050
- "id": "cors:add",
2051
- "pluginAlias": "@sanity/cli",
2052
- "pluginName": "@sanity/cli",
2053
- "pluginType": "core",
2054
- "strict": true,
2055
- "isESM": true,
2056
- "relativePath": [
2057
- "dist",
2058
- "commands",
2059
- "cors",
2060
- "add.js"
2061
- ]
2062
- },
2063
- "cors:delete": {
2064
- "aliases": [],
2065
- "args": {
2066
- "origin": {
2067
- "description": "Origin to delete (will prompt if not provided)",
2068
- "name": "origin",
2069
- "required": false
2070
- }
2071
- },
2072
- "description": "Delete a CORS origin from the project",
2073
- "examples": [
2074
- {
2075
- "command": "<%= config.bin %> <%= command.id %>",
2076
- "description": "Interactively select and delete a CORS origin"
2077
- },
2078
- {
2079
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
2080
- "description": "Delete a specific CORS origin"
2081
- },
2082
- {
2083
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
2084
- "description": "Delete a CORS origin from a specific project"
2085
- }
2086
- ],
2087
- "flags": {
2088
- "project": {
2089
- "aliases": [
2090
- "project-id"
2091
- ],
2092
- "char": "p",
2093
- "deprecateAliases": true,
2094
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2095
- "helpGroup": "OVERRIDE",
2096
- "name": "project",
2097
- "hasDynamicHelp": false,
2098
- "helpValue": "<id>",
2099
- "multiple": false,
2100
- "type": "option"
2101
- }
2102
- },
2103
- "hasDynamicHelp": false,
2104
- "hiddenAliases": [],
2105
- "id": "cors:delete",
2106
- "pluginAlias": "@sanity/cli",
2107
- "pluginName": "@sanity/cli",
2108
- "pluginType": "core",
2109
- "strict": true,
2110
- "isESM": true,
2111
- "relativePath": [
2112
- "dist",
2113
- "commands",
2114
- "cors",
2115
- "delete.js"
2116
- ]
2117
- },
2118
- "cors:list": {
2119
- "aliases": [],
2120
- "args": {},
2121
- "description": "List CORS origins for the project",
2122
- "examples": [
2123
- {
2124
- "command": "<%= config.bin %> <%= command.id %>",
2125
- "description": "List CORS origins for the project"
2126
- },
2127
- {
2128
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
2129
- "description": "List CORS origins for a specific project"
2130
- }
2131
- ],
2132
- "flags": {
2133
- "project": {
2134
- "aliases": [
2135
- "project-id"
2136
- ],
2137
- "char": "p",
2138
- "deprecateAliases": true,
2139
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2140
- "helpGroup": "OVERRIDE",
2141
- "name": "project",
2142
- "hasDynamicHelp": false,
2143
- "helpValue": "<id>",
2144
- "multiple": false,
2145
- "type": "option"
2146
- }
2147
- },
2148
- "hasDynamicHelp": false,
2149
- "hiddenAliases": [],
2150
- "id": "cors:list",
2151
- "pluginAlias": "@sanity/cli",
2152
- "pluginName": "@sanity/cli",
2153
- "pluginType": "core",
2154
- "strict": true,
2155
- "isESM": true,
2156
- "relativePath": [
2157
- "dist",
2158
- "commands",
2159
- "cors",
2160
- "list.js"
2161
- ]
2162
- },
2163
1990
  "context:build": {
2164
1991
  "aliases": [],
2165
1992
  "args": {
@@ -3361,69 +3188,67 @@
3361
3188
  "list.js"
3362
3189
  ]
3363
3190
  },
3364
- "docs:browse": {
3365
- "aliases": [],
3366
- "args": {},
3367
- "description": "Open Sanity docs in your browser",
3368
- "flags": {},
3369
- "hasDynamicHelp": false,
3370
- "hiddenAliases": [],
3371
- "id": "docs:browse",
3372
- "pluginAlias": "@sanity/cli",
3373
- "pluginName": "@sanity/cli",
3374
- "pluginType": "core",
3375
- "strict": true,
3376
- "enableJsonFlag": false,
3377
- "isESM": true,
3378
- "relativePath": [
3379
- "dist",
3380
- "commands",
3381
- "docs",
3382
- "browse.js"
3383
- ]
3384
- },
3385
- "docs:read": {
3191
+ "cors:add": {
3386
3192
  "aliases": [],
3387
3193
  "args": {
3388
- "path": {
3389
- "description": "Path or URL to article, found in search results and docs content as links",
3390
- "name": "path",
3194
+ "origin": {
3195
+ "description": "Origin to allow (e.g., https://example.com)",
3196
+ "name": "origin",
3391
3197
  "required": true
3392
3198
  }
3393
3199
  },
3394
- "description": "Read an article in terminal",
3200
+ "description": "Add a CORS origin to the project",
3395
3201
  "examples": [
3396
3202
  {
3397
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3398
- "description": "Read as markdown in terminal"
3203
+ "command": "<%= config.bin %> <%= command.id %>",
3204
+ "description": "Interactively add a CORS origin"
3399
3205
  },
3400
3206
  {
3401
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3402
- "description": "Read using full URL"
3207
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
3208
+ "description": "Add a localhost origin without credentials"
3403
3209
  },
3404
3210
  {
3405
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3406
- "description": "Open in web browser"
3211
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
3212
+ "description": "Add a production origin with credentials allowed"
3407
3213
  },
3408
3214
  {
3409
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3410
- "description": "Open using full URL in web browser"
3215
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
3216
+ "description": "Add a CORS origin for a specific project"
3411
3217
  }
3412
3218
  ],
3413
3219
  "flags": {
3414
- "web": {
3220
+ "project": {
3415
3221
  "aliases": [
3416
- "w"
3222
+ "project-id"
3417
3223
  ],
3418
- "description": "Open in a web browser",
3419
- "name": "web",
3224
+ "char": "p",
3225
+ "deprecateAliases": true,
3226
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
3227
+ "helpGroup": "OVERRIDE",
3228
+ "name": "project",
3229
+ "hasDynamicHelp": false,
3230
+ "helpValue": "<id>",
3231
+ "multiple": false,
3232
+ "type": "option"
3233
+ },
3234
+ "credentials": {
3235
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
3236
+ "name": "credentials",
3237
+ "required": false,
3238
+ "allowNo": true,
3239
+ "type": "boolean"
3240
+ },
3241
+ "yes": {
3242
+ "char": "y",
3243
+ "description": "Confirm risky wildcard origins without prompting",
3244
+ "name": "yes",
3420
3245
  "allowNo": false,
3421
3246
  "type": "boolean"
3422
3247
  }
3423
3248
  },
3424
3249
  "hasDynamicHelp": false,
3425
3250
  "hiddenAliases": [],
3426
- "id": "docs:read",
3251
+ "id": "cors:add",
3427
3252
  "pluginAlias": "@sanity/cli",
3428
3253
  "pluginName": "@sanity/cli",
3429
3254
  "pluginType": "core",
@@ -3432,14 +3257,189 @@
3432
3257
  "relativePath": [
3433
3258
  "dist",
3434
3259
  "commands",
3435
- "docs",
3436
- "read.js"
3260
+ "cors",
3261
+ "add.js"
3437
3262
  ]
3438
3263
  },
3439
- "docs:search": {
3264
+ "cors:delete": {
3440
3265
  "aliases": [],
3441
3266
  "args": {
3442
- "query": {
3267
+ "origin": {
3268
+ "description": "Origin to delete (will prompt if not provided)",
3269
+ "name": "origin",
3270
+ "required": false
3271
+ }
3272
+ },
3273
+ "description": "Delete a CORS origin from the project",
3274
+ "examples": [
3275
+ {
3276
+ "command": "<%= config.bin %> <%= command.id %>",
3277
+ "description": "Interactively select and delete a CORS origin"
3278
+ },
3279
+ {
3280
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
3281
+ "description": "Delete a specific CORS origin"
3282
+ },
3283
+ {
3284
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
3285
+ "description": "Delete a CORS origin from a specific project"
3286
+ }
3287
+ ],
3288
+ "flags": {
3289
+ "project": {
3290
+ "aliases": [
3291
+ "project-id"
3292
+ ],
3293
+ "char": "p",
3294
+ "deprecateAliases": true,
3295
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
3296
+ "helpGroup": "OVERRIDE",
3297
+ "name": "project",
3298
+ "hasDynamicHelp": false,
3299
+ "helpValue": "<id>",
3300
+ "multiple": false,
3301
+ "type": "option"
3302
+ }
3303
+ },
3304
+ "hasDynamicHelp": false,
3305
+ "hiddenAliases": [],
3306
+ "id": "cors:delete",
3307
+ "pluginAlias": "@sanity/cli",
3308
+ "pluginName": "@sanity/cli",
3309
+ "pluginType": "core",
3310
+ "strict": true,
3311
+ "isESM": true,
3312
+ "relativePath": [
3313
+ "dist",
3314
+ "commands",
3315
+ "cors",
3316
+ "delete.js"
3317
+ ]
3318
+ },
3319
+ "cors:list": {
3320
+ "aliases": [],
3321
+ "args": {},
3322
+ "description": "List CORS origins for the project",
3323
+ "examples": [
3324
+ {
3325
+ "command": "<%= config.bin %> <%= command.id %>",
3326
+ "description": "List CORS origins for the project"
3327
+ },
3328
+ {
3329
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
3330
+ "description": "List CORS origins for a specific project"
3331
+ }
3332
+ ],
3333
+ "flags": {
3334
+ "project": {
3335
+ "aliases": [
3336
+ "project-id"
3337
+ ],
3338
+ "char": "p",
3339
+ "deprecateAliases": true,
3340
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
3341
+ "helpGroup": "OVERRIDE",
3342
+ "name": "project",
3343
+ "hasDynamicHelp": false,
3344
+ "helpValue": "<id>",
3345
+ "multiple": false,
3346
+ "type": "option"
3347
+ }
3348
+ },
3349
+ "hasDynamicHelp": false,
3350
+ "hiddenAliases": [],
3351
+ "id": "cors:list",
3352
+ "pluginAlias": "@sanity/cli",
3353
+ "pluginName": "@sanity/cli",
3354
+ "pluginType": "core",
3355
+ "strict": true,
3356
+ "isESM": true,
3357
+ "relativePath": [
3358
+ "dist",
3359
+ "commands",
3360
+ "cors",
3361
+ "list.js"
3362
+ ]
3363
+ },
3364
+ "docs:browse": {
3365
+ "aliases": [],
3366
+ "args": {},
3367
+ "description": "Open Sanity docs in your browser",
3368
+ "flags": {},
3369
+ "hasDynamicHelp": false,
3370
+ "hiddenAliases": [],
3371
+ "id": "docs:browse",
3372
+ "pluginAlias": "@sanity/cli",
3373
+ "pluginName": "@sanity/cli",
3374
+ "pluginType": "core",
3375
+ "strict": true,
3376
+ "enableJsonFlag": false,
3377
+ "isESM": true,
3378
+ "relativePath": [
3379
+ "dist",
3380
+ "commands",
3381
+ "docs",
3382
+ "browse.js"
3383
+ ]
3384
+ },
3385
+ "docs:read": {
3386
+ "aliases": [],
3387
+ "args": {
3388
+ "path": {
3389
+ "description": "Path or URL to article, found in search results and docs content as links",
3390
+ "name": "path",
3391
+ "required": true
3392
+ }
3393
+ },
3394
+ "description": "Read an article in terminal",
3395
+ "examples": [
3396
+ {
3397
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3398
+ "description": "Read as markdown in terminal"
3399
+ },
3400
+ {
3401
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3402
+ "description": "Read using full URL"
3403
+ },
3404
+ {
3405
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3406
+ "description": "Open in web browser"
3407
+ },
3408
+ {
3409
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3410
+ "description": "Open using full URL in web browser"
3411
+ }
3412
+ ],
3413
+ "flags": {
3414
+ "web": {
3415
+ "aliases": [
3416
+ "w"
3417
+ ],
3418
+ "description": "Open in a web browser",
3419
+ "name": "web",
3420
+ "allowNo": false,
3421
+ "type": "boolean"
3422
+ }
3423
+ },
3424
+ "hasDynamicHelp": false,
3425
+ "hiddenAliases": [],
3426
+ "id": "docs:read",
3427
+ "pluginAlias": "@sanity/cli",
3428
+ "pluginName": "@sanity/cli",
3429
+ "pluginType": "core",
3430
+ "strict": true,
3431
+ "isESM": true,
3432
+ "relativePath": [
3433
+ "dist",
3434
+ "commands",
3435
+ "docs",
3436
+ "read.js"
3437
+ ]
3438
+ },
3439
+ "docs:search": {
3440
+ "aliases": [],
3441
+ "args": {
3442
+ "query": {
3443
3443
  "description": "Search query for documentation",
3444
3444
  "name": "query",
3445
3445
  "required": true
@@ -5066,32 +5066,58 @@
5066
5066
  "pull-aspects.js"
5067
5067
  ]
5068
5068
  },
5069
- "migrations:create": {
5069
+ "openapi:get": {
5070
5070
  "aliases": [],
5071
5071
  "args": {
5072
- "title": {
5073
- "description": "Title of migration",
5074
- "name": "title",
5075
- "required": false
5072
+ "slug": {
5073
+ "description": "Slug of the OpenAPI specification to retrieve",
5074
+ "name": "slug",
5075
+ "required": true
5076
5076
  }
5077
5077
  },
5078
- "description": "Create a new migration within your project",
5078
+ "description": "Get an OpenAPI specification by slug",
5079
5079
  "examples": [
5080
5080
  {
5081
- "command": "<%= config.bin %> <%= command.id %>",
5082
- "description": "Create a new migration, prompting for title and options"
5081
+ "command": "<%= config.bin %> <%= command.id %> query",
5082
+ "description": "Get a specification (YAML format, default)"
5083
5083
  },
5084
5084
  {
5085
- "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
5086
- "description": "Create a new migration with the provided title, prompting for options"
5085
+ "command": "<%= config.bin %> <%= command.id %> query --format=json",
5086
+ "description": "Get specification in JSON format"
5087
+ },
5088
+ {
5089
+ "command": "<%= config.bin %> <%= command.id %> query --web",
5090
+ "description": "Open specification in browser"
5091
+ },
5092
+ {
5093
+ "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
5094
+ "description": "Pipe to file"
5087
5095
  }
5088
5096
  ],
5089
- "flags": {},
5097
+ "flags": {
5098
+ "format": {
5099
+ "description": "Output format: yaml (default), json",
5100
+ "name": "format",
5101
+ "default": "yaml",
5102
+ "hasDynamicHelp": false,
5103
+ "multiple": false,
5104
+ "options": [
5105
+ "yaml",
5106
+ "json"
5107
+ ],
5108
+ "type": "option"
5109
+ },
5110
+ "web": {
5111
+ "char": "w",
5112
+ "description": "Open in web browser",
5113
+ "name": "web",
5114
+ "allowNo": false,
5115
+ "type": "boolean"
5116
+ }
5117
+ },
5090
5118
  "hasDynamicHelp": false,
5091
- "hiddenAliases": [
5092
- "migration:create"
5093
- ],
5094
- "id": "migrations:create",
5119
+ "hiddenAliases": [],
5120
+ "id": "openapi:get",
5095
5121
  "pluginAlias": "@sanity/cli",
5096
5122
  "pluginName": "@sanity/cli",
5097
5123
  "pluginType": "core",
@@ -5100,26 +5126,114 @@
5100
5126
  "relativePath": [
5101
5127
  "dist",
5102
5128
  "commands",
5103
- "migrations",
5104
- "create.js"
5129
+ "openapi",
5130
+ "get.js"
5105
5131
  ]
5106
5132
  },
5107
- "migrations:list": {
5133
+ "openapi:list": {
5108
5134
  "aliases": [],
5109
5135
  "args": {},
5110
- "description": "List available migrations",
5136
+ "description": "List all available OpenAPI specifications",
5111
5137
  "examples": [
5112
5138
  {
5113
5139
  "command": "<%= config.bin %> <%= command.id %>",
5114
- "description": "List all available migrations in the project"
5140
+ "description": "List all available OpenAPI specs"
5141
+ },
5142
+ {
5143
+ "command": "<%= config.bin %> <%= command.id %> --json",
5144
+ "description": "List with JSON output"
5145
+ },
5146
+ {
5147
+ "command": "<%= config.bin %> <%= command.id %> --web",
5148
+ "description": "Open HTTP Reference in browser"
5115
5149
  }
5116
5150
  ],
5117
- "flags": {},
5118
- "hasDynamicHelp": false,
5119
- "hiddenAliases": [
5120
- "migration:list"
5121
- ],
5122
- "id": "migrations:list",
5151
+ "flags": {
5152
+ "json": {
5153
+ "description": "Format output as json.",
5154
+ "helpGroup": "GLOBAL",
5155
+ "name": "json",
5156
+ "allowNo": false,
5157
+ "type": "boolean"
5158
+ },
5159
+ "web": {
5160
+ "char": "w",
5161
+ "description": "Open HTTP Reference in web browser",
5162
+ "name": "web",
5163
+ "allowNo": false,
5164
+ "type": "boolean"
5165
+ }
5166
+ },
5167
+ "hasDynamicHelp": false,
5168
+ "hiddenAliases": [],
5169
+ "id": "openapi:list",
5170
+ "pluginAlias": "@sanity/cli",
5171
+ "pluginName": "@sanity/cli",
5172
+ "pluginType": "core",
5173
+ "strict": true,
5174
+ "enableJsonFlag": true,
5175
+ "isESM": true,
5176
+ "relativePath": [
5177
+ "dist",
5178
+ "commands",
5179
+ "openapi",
5180
+ "list.js"
5181
+ ]
5182
+ },
5183
+ "migrations:create": {
5184
+ "aliases": [],
5185
+ "args": {
5186
+ "title": {
5187
+ "description": "Title of migration",
5188
+ "name": "title",
5189
+ "required": false
5190
+ }
5191
+ },
5192
+ "description": "Create a new migration within your project",
5193
+ "examples": [
5194
+ {
5195
+ "command": "<%= config.bin %> <%= command.id %>",
5196
+ "description": "Create a new migration, prompting for title and options"
5197
+ },
5198
+ {
5199
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
5200
+ "description": "Create a new migration with the provided title, prompting for options"
5201
+ }
5202
+ ],
5203
+ "flags": {},
5204
+ "hasDynamicHelp": false,
5205
+ "hiddenAliases": [
5206
+ "migration:create"
5207
+ ],
5208
+ "id": "migrations:create",
5209
+ "pluginAlias": "@sanity/cli",
5210
+ "pluginName": "@sanity/cli",
5211
+ "pluginType": "core",
5212
+ "strict": true,
5213
+ "isESM": true,
5214
+ "relativePath": [
5215
+ "dist",
5216
+ "commands",
5217
+ "migrations",
5218
+ "create.js"
5219
+ ]
5220
+ },
5221
+ "migrations:list": {
5222
+ "aliases": [],
5223
+ "args": {},
5224
+ "description": "List available migrations",
5225
+ "examples": [
5226
+ {
5227
+ "command": "<%= config.bin %> <%= command.id %>",
5228
+ "description": "List all available migrations in the project"
5229
+ }
5230
+ ],
5231
+ "flags": {},
5232
+ "hasDynamicHelp": false,
5233
+ "hiddenAliases": [
5234
+ "migration:list"
5235
+ ],
5236
+ "id": "migrations:list",
5123
5237
  "pluginAlias": "@sanity/cli",
5124
5238
  "pluginName": "@sanity/cli",
5125
5239
  "pluginType": "core",
@@ -5246,120 +5360,6 @@
5246
5360
  "run.js"
5247
5361
  ]
5248
5362
  },
5249
- "openapi:get": {
5250
- "aliases": [],
5251
- "args": {
5252
- "slug": {
5253
- "description": "Slug of the OpenAPI specification to retrieve",
5254
- "name": "slug",
5255
- "required": true
5256
- }
5257
- },
5258
- "description": "Get an OpenAPI specification by slug",
5259
- "examples": [
5260
- {
5261
- "command": "<%= config.bin %> <%= command.id %> query",
5262
- "description": "Get a specification (YAML format, default)"
5263
- },
5264
- {
5265
- "command": "<%= config.bin %> <%= command.id %> query --format=json",
5266
- "description": "Get specification in JSON format"
5267
- },
5268
- {
5269
- "command": "<%= config.bin %> <%= command.id %> query --web",
5270
- "description": "Open specification in browser"
5271
- },
5272
- {
5273
- "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
5274
- "description": "Pipe to file"
5275
- }
5276
- ],
5277
- "flags": {
5278
- "format": {
5279
- "description": "Output format: yaml (default), json",
5280
- "name": "format",
5281
- "default": "yaml",
5282
- "hasDynamicHelp": false,
5283
- "multiple": false,
5284
- "options": [
5285
- "yaml",
5286
- "json"
5287
- ],
5288
- "type": "option"
5289
- },
5290
- "web": {
5291
- "char": "w",
5292
- "description": "Open in web browser",
5293
- "name": "web",
5294
- "allowNo": false,
5295
- "type": "boolean"
5296
- }
5297
- },
5298
- "hasDynamicHelp": false,
5299
- "hiddenAliases": [],
5300
- "id": "openapi:get",
5301
- "pluginAlias": "@sanity/cli",
5302
- "pluginName": "@sanity/cli",
5303
- "pluginType": "core",
5304
- "strict": true,
5305
- "isESM": true,
5306
- "relativePath": [
5307
- "dist",
5308
- "commands",
5309
- "openapi",
5310
- "get.js"
5311
- ]
5312
- },
5313
- "openapi:list": {
5314
- "aliases": [],
5315
- "args": {},
5316
- "description": "List all available OpenAPI specifications",
5317
- "examples": [
5318
- {
5319
- "command": "<%= config.bin %> <%= command.id %>",
5320
- "description": "List all available OpenAPI specs"
5321
- },
5322
- {
5323
- "command": "<%= config.bin %> <%= command.id %> --json",
5324
- "description": "List with JSON output"
5325
- },
5326
- {
5327
- "command": "<%= config.bin %> <%= command.id %> --web",
5328
- "description": "Open HTTP Reference in browser"
5329
- }
5330
- ],
5331
- "flags": {
5332
- "json": {
5333
- "description": "Format output as json.",
5334
- "helpGroup": "GLOBAL",
5335
- "name": "json",
5336
- "allowNo": false,
5337
- "type": "boolean"
5338
- },
5339
- "web": {
5340
- "char": "w",
5341
- "description": "Open HTTP Reference in web browser",
5342
- "name": "web",
5343
- "allowNo": false,
5344
- "type": "boolean"
5345
- }
5346
- },
5347
- "hasDynamicHelp": false,
5348
- "hiddenAliases": [],
5349
- "id": "openapi:list",
5350
- "pluginAlias": "@sanity/cli",
5351
- "pluginName": "@sanity/cli",
5352
- "pluginType": "core",
5353
- "strict": true,
5354
- "enableJsonFlag": true,
5355
- "isESM": true,
5356
- "relativePath": [
5357
- "dist",
5358
- "commands",
5359
- "openapi",
5360
- "list.js"
5361
- ]
5362
- },
5363
5363
  "organizations:create": {
5364
5364
  "aliases": [],
5365
5365
  "args": {},
@@ -9655,37 +9655,20 @@
9655
9655
  "upload.js"
9656
9656
  ]
9657
9657
  },
9658
- "datasets:alias:create": {
9658
+ "datasets:embeddings:disable": {
9659
9659
  "aliases": [],
9660
9660
  "args": {
9661
- "aliasName": {
9662
- "description": "Dataset alias name to create",
9663
- "name": "aliasName",
9664
- "required": false
9665
- },
9666
- "targetDataset": {
9667
- "description": "Target dataset name to link the alias to",
9668
- "name": "targetDataset",
9661
+ "dataset": {
9662
+ "description": "Dataset name to disable embeddings for",
9663
+ "name": "dataset",
9669
9664
  "required": false
9670
9665
  }
9671
9666
  },
9672
- "description": "Create a dataset alias for the project",
9667
+ "description": "Disable embeddings for a dataset",
9673
9668
  "examples": [
9674
9669
  {
9675
- "command": "<%= config.bin %> <%= command.id %> --project abc123 conference conf-2025",
9676
- "description": "Create alias in a specific project"
9677
- },
9678
- {
9679
- "command": "<%= config.bin %> <%= command.id %>",
9680
- "description": "Create an alias with interactive prompts"
9681
- },
9682
- {
9683
- "command": "<%= config.bin %> <%= command.id %> conference",
9684
- "description": "Create alias named \"conference\" with interactive dataset selection"
9685
- },
9686
- {
9687
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9688
- "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
9670
+ "command": "<%= config.bin %> <%= command.id %> production",
9671
+ "description": "Disable embeddings for the production dataset"
9689
9672
  }
9690
9673
  ],
9691
9674
  "flags": {
@@ -9695,7 +9678,7 @@
9695
9678
  ],
9696
9679
  "char": "p",
9697
9680
  "deprecateAliases": true,
9698
- "description": "Project ID to create dataset alias in (overrides CLI configuration)",
9681
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
9699
9682
  "helpGroup": "OVERRIDE",
9700
9683
  "name": "project",
9701
9684
  "hasDynamicHelp": false,
@@ -9706,9 +9689,9 @@
9706
9689
  },
9707
9690
  "hasDynamicHelp": false,
9708
9691
  "hiddenAliases": [
9709
- "dataset:alias:create"
9692
+ "dataset:embeddings:disable"
9710
9693
  ],
9711
- "id": "datasets:alias:create",
9694
+ "id": "datasets:embeddings:disable",
9712
9695
  "pluginAlias": "@sanity/cli",
9713
9696
  "pluginName": "@sanity/cli",
9714
9697
  "pluginType": "core",
@@ -9718,28 +9701,32 @@
9718
9701
  "dist",
9719
9702
  "commands",
9720
9703
  "datasets",
9721
- "alias",
9722
- "create.js"
9704
+ "embeddings",
9705
+ "disable.js"
9723
9706
  ]
9724
9707
  },
9725
- "datasets:alias:delete": {
9708
+ "datasets:embeddings:enable": {
9726
9709
  "aliases": [],
9727
9710
  "args": {
9728
- "aliasName": {
9729
- "description": "Dataset alias name to delete",
9730
- "name": "aliasName",
9731
- "required": true
9711
+ "dataset": {
9712
+ "description": "Dataset name to enable embeddings for",
9713
+ "name": "dataset",
9714
+ "required": false
9732
9715
  }
9733
9716
  },
9734
- "description": "Delete a dataset alias from the project",
9717
+ "description": "Enable embeddings for a dataset",
9735
9718
  "examples": [
9736
9719
  {
9737
- "command": "<%= config.bin %> <%= command.id %> conference",
9738
- "description": "Delete alias named \"conference\" with confirmation prompt"
9739
- },
9720
+ "command": "<%= config.bin %> <%= command.id %> production",
9721
+ "description": "Enable embeddings for the production dataset"
9722
+ },
9740
9723
  {
9741
- "command": "<%= config.bin %> <%= command.id %> conference --force",
9742
- "description": "Delete alias named \"conference\" without confirmation prompt"
9724
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
9725
+ "description": "Enable embeddings with a specific projection"
9726
+ },
9727
+ {
9728
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
9729
+ "description": "Enable embeddings and wait for processing to complete"
9743
9730
  }
9744
9731
  ],
9745
9732
  "flags": {
@@ -9749,7 +9736,7 @@
9749
9736
  ],
9750
9737
  "char": "p",
9751
9738
  "deprecateAliases": true,
9752
- "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
9739
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
9753
9740
  "helpGroup": "OVERRIDE",
9754
9741
  "name": "project",
9755
9742
  "hasDynamicHelp": false,
@@ -9757,62 +9744,63 @@
9757
9744
  "multiple": false,
9758
9745
  "type": "option"
9759
9746
  },
9760
- "force": {
9761
- "description": "Skip confirmation prompt and delete immediately",
9762
- "name": "force",
9747
+ "projection": {
9748
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
9749
+ "name": "projection",
9750
+ "required": false,
9751
+ "hasDynamicHelp": false,
9752
+ "multiple": false,
9753
+ "type": "option"
9754
+ },
9755
+ "wait": {
9756
+ "description": "Wait for embeddings processing to complete before returning",
9757
+ "name": "wait",
9763
9758
  "allowNo": false,
9764
9759
  "type": "boolean"
9765
9760
  }
9766
9761
  },
9767
9762
  "hasDynamicHelp": false,
9768
9763
  "hiddenAliases": [
9769
- "dataset:alias:delete"
9764
+ "dataset:embeddings:enable"
9770
9765
  ],
9771
- "id": "datasets:alias:delete",
9766
+ "id": "datasets:embeddings:enable",
9772
9767
  "pluginAlias": "@sanity/cli",
9773
9768
  "pluginName": "@sanity/cli",
9774
9769
  "pluginType": "core",
9775
9770
  "strict": true,
9771
+ "telemetry": {
9772
+ "redactedFlags": [
9773
+ {
9774
+ "canonical": "--projection",
9775
+ "flags": [
9776
+ "--projection"
9777
+ ]
9778
+ }
9779
+ ]
9780
+ },
9776
9781
  "isESM": true,
9777
9782
  "relativePath": [
9778
9783
  "dist",
9779
9784
  "commands",
9780
9785
  "datasets",
9781
- "alias",
9782
- "delete.js"
9786
+ "embeddings",
9787
+ "enable.js"
9783
9788
  ]
9784
9789
  },
9785
- "datasets:alias:link": {
9790
+ "datasets:embeddings:status": {
9786
9791
  "aliases": [],
9787
9792
  "args": {
9788
- "aliasName": {
9789
- "description": "Dataset alias name to link",
9790
- "name": "aliasName",
9791
- "required": false
9792
- },
9793
- "targetDataset": {
9794
- "description": "Target dataset name to link the alias to",
9795
- "name": "targetDataset",
9793
+ "dataset": {
9794
+ "description": "The name of the dataset to check embeddings status for",
9795
+ "name": "dataset",
9796
9796
  "required": false
9797
9797
  }
9798
9798
  },
9799
- "description": "Link a dataset alias to a dataset in the project",
9799
+ "description": "Show embeddings settings and status for a dataset",
9800
9800
  "examples": [
9801
9801
  {
9802
- "command": "<%= config.bin %> <%= command.id %>",
9803
- "description": "Link an alias with interactive prompts"
9804
- },
9805
- {
9806
- "command": "<%= config.bin %> <%= command.id %> conference",
9807
- "description": "Link alias named \"conference\" with interactive dataset selection"
9808
- },
9809
- {
9810
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9811
- "description": "Link alias \"conference\" to \"conf-2025\" dataset"
9812
- },
9813
- {
9814
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
9815
- "description": "Force link without confirmation (skip relink prompt)"
9802
+ "command": "<%= config.bin %> <%= command.id %> production",
9803
+ "description": "Show embeddings status for the production dataset"
9816
9804
  }
9817
9805
  ],
9818
9806
  "flags": {
@@ -9822,27 +9810,20 @@
9822
9810
  ],
9823
9811
  "char": "p",
9824
9812
  "deprecateAliases": true,
9825
- "description": "Project ID to link dataset alias in (overrides CLI configuration)",
9813
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
9826
9814
  "helpGroup": "OVERRIDE",
9827
9815
  "name": "project",
9828
9816
  "hasDynamicHelp": false,
9829
9817
  "helpValue": "<id>",
9830
9818
  "multiple": false,
9831
9819
  "type": "option"
9832
- },
9833
- "force": {
9834
- "description": "Skip confirmation prompt when relinking existing alias",
9835
- "name": "force",
9836
- "required": false,
9837
- "allowNo": false,
9838
- "type": "boolean"
9839
9820
  }
9840
9821
  },
9841
9822
  "hasDynamicHelp": false,
9842
9823
  "hiddenAliases": [
9843
- "dataset:alias:link"
9824
+ "dataset:embeddings:status"
9844
9825
  ],
9845
- "id": "datasets:alias:link",
9826
+ "id": "datasets:embeddings:status",
9846
9827
  "pluginAlias": "@sanity/cli",
9847
9828
  "pluginName": "@sanity/cli",
9848
9829
  "pluginType": "core",
@@ -9852,32 +9833,24 @@
9852
9833
  "dist",
9853
9834
  "commands",
9854
9835
  "datasets",
9855
- "alias",
9856
- "link.js"
9836
+ "embeddings",
9837
+ "status.js"
9857
9838
  ]
9858
9839
  },
9859
- "datasets:alias:unlink": {
9840
+ "datasets:visibility:get": {
9860
9841
  "aliases": [],
9861
9842
  "args": {
9862
- "aliasName": {
9863
- "description": "Dataset alias name to unlink",
9864
- "name": "aliasName",
9865
- "required": false
9843
+ "dataset": {
9844
+ "description": "The name of the dataset to get visibility for",
9845
+ "name": "dataset",
9846
+ "required": true
9866
9847
  }
9867
9848
  },
9868
- "description": "Unlink a dataset alias from its dataset in the project",
9849
+ "description": "Get the visibility of a dataset",
9869
9850
  "examples": [
9870
9851
  {
9871
- "command": "<%= config.bin %> <%= command.id %>",
9872
- "description": "Unlink an alias with interactive selection"
9873
- },
9874
- {
9875
- "command": "<%= config.bin %> <%= command.id %> conference",
9876
- "description": "Unlink alias \"conference\" with confirmation prompt"
9877
- },
9878
- {
9879
- "command": "<%= config.bin %> <%= command.id %> conference --force",
9880
- "description": "Unlink alias \"conference\" without confirmation prompt"
9852
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
9853
+ "description": "Check the visibility of a dataset"
9881
9854
  }
9882
9855
  ],
9883
9856
  "flags": {
@@ -9887,26 +9860,20 @@
9887
9860
  ],
9888
9861
  "char": "p",
9889
9862
  "deprecateAliases": true,
9890
- "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
9863
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
9891
9864
  "helpGroup": "OVERRIDE",
9892
9865
  "name": "project",
9893
9866
  "hasDynamicHelp": false,
9894
9867
  "helpValue": "<id>",
9895
9868
  "multiple": false,
9896
9869
  "type": "option"
9897
- },
9898
- "force": {
9899
- "description": "Skip confirmation prompt and unlink immediately",
9900
- "name": "force",
9901
- "allowNo": false,
9902
- "type": "boolean"
9903
9870
  }
9904
9871
  },
9905
9872
  "hasDynamicHelp": false,
9906
9873
  "hiddenAliases": [
9907
- "dataset:alias:unlink"
9874
+ "dataset:visibility:get"
9908
9875
  ],
9909
- "id": "datasets:alias:unlink",
9876
+ "id": "datasets:visibility:get",
9910
9877
  "pluginAlias": "@sanity/cli",
9911
9878
  "pluginName": "@sanity/cli",
9912
9879
  "pluginType": "core",
@@ -9916,24 +9883,37 @@
9916
9883
  "dist",
9917
9884
  "commands",
9918
9885
  "datasets",
9919
- "alias",
9920
- "unlink.js"
9886
+ "visibility",
9887
+ "get.js"
9921
9888
  ]
9922
9889
  },
9923
- "datasets:embeddings:disable": {
9890
+ "datasets:visibility:set": {
9924
9891
  "aliases": [],
9925
9892
  "args": {
9926
9893
  "dataset": {
9927
- "description": "Dataset name to disable embeddings for",
9894
+ "description": "The name of the dataset to set visibility for",
9928
9895
  "name": "dataset",
9929
- "required": false
9896
+ "required": true
9897
+ },
9898
+ "mode": {
9899
+ "description": "The visibility mode to set",
9900
+ "name": "mode",
9901
+ "options": [
9902
+ "public",
9903
+ "private"
9904
+ ],
9905
+ "required": true
9930
9906
  }
9931
9907
  },
9932
- "description": "Disable embeddings for a dataset",
9908
+ "description": "Set the visibility of a dataset",
9933
9909
  "examples": [
9934
9910
  {
9935
- "command": "<%= config.bin %> <%= command.id %> production",
9936
- "description": "Disable embeddings for the production dataset"
9911
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
9912
+ "description": "Make a dataset private"
9913
+ },
9914
+ {
9915
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
9916
+ "description": "Make a dataset public"
9937
9917
  }
9938
9918
  ],
9939
9919
  "flags": {
@@ -9943,7 +9923,7 @@
9943
9923
  ],
9944
9924
  "char": "p",
9945
9925
  "deprecateAliases": true,
9946
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
9926
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
9947
9927
  "helpGroup": "OVERRIDE",
9948
9928
  "name": "project",
9949
9929
  "hasDynamicHelp": false,
@@ -9954,9 +9934,9 @@
9954
9934
  },
9955
9935
  "hasDynamicHelp": false,
9956
9936
  "hiddenAliases": [
9957
- "dataset:embeddings:disable"
9937
+ "dataset:visibility:set"
9958
9938
  ],
9959
- "id": "datasets:embeddings:disable",
9939
+ "id": "datasets:visibility:set",
9960
9940
  "pluginAlias": "@sanity/cli",
9961
9941
  "pluginName": "@sanity/cli",
9962
9942
  "pluginType": "core",
@@ -9966,32 +9946,41 @@
9966
9946
  "dist",
9967
9947
  "commands",
9968
9948
  "datasets",
9969
- "embeddings",
9970
- "disable.js"
9949
+ "visibility",
9950
+ "set.js"
9971
9951
  ]
9972
9952
  },
9973
- "datasets:embeddings:enable": {
9953
+ "datasets:alias:create": {
9974
9954
  "aliases": [],
9975
9955
  "args": {
9976
- "dataset": {
9977
- "description": "Dataset name to enable embeddings for",
9978
- "name": "dataset",
9956
+ "aliasName": {
9957
+ "description": "Dataset alias name to create",
9958
+ "name": "aliasName",
9959
+ "required": false
9960
+ },
9961
+ "targetDataset": {
9962
+ "description": "Target dataset name to link the alias to",
9963
+ "name": "targetDataset",
9979
9964
  "required": false
9980
9965
  }
9981
9966
  },
9982
- "description": "Enable embeddings for a dataset",
9967
+ "description": "Create a dataset alias for the project",
9983
9968
  "examples": [
9984
9969
  {
9985
- "command": "<%= config.bin %> <%= command.id %> production",
9986
- "description": "Enable embeddings for the production dataset"
9970
+ "command": "<%= config.bin %> <%= command.id %> --project abc123 conference conf-2025",
9971
+ "description": "Create alias in a specific project"
9987
9972
  },
9988
9973
  {
9989
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
9990
- "description": "Enable embeddings with a specific projection"
9974
+ "command": "<%= config.bin %> <%= command.id %>",
9975
+ "description": "Create an alias with interactive prompts"
9991
9976
  },
9992
9977
  {
9993
- "command": "<%= config.bin %> <%= command.id %> production --wait",
9994
- "description": "Enable embeddings and wait for processing to complete"
9978
+ "command": "<%= config.bin %> <%= command.id %> conference",
9979
+ "description": "Create alias named \"conference\" with interactive dataset selection"
9980
+ },
9981
+ {
9982
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9983
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
9995
9984
  }
9996
9985
  ],
9997
9986
  "flags": {
@@ -10001,71 +9990,51 @@
10001
9990
  ],
10002
9991
  "char": "p",
10003
9992
  "deprecateAliases": true,
10004
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
9993
+ "description": "Project ID to create dataset alias in (overrides CLI configuration)",
10005
9994
  "helpGroup": "OVERRIDE",
10006
9995
  "name": "project",
10007
9996
  "hasDynamicHelp": false,
10008
9997
  "helpValue": "<id>",
10009
9998
  "multiple": false,
10010
9999
  "type": "option"
10011
- },
10012
- "projection": {
10013
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
10014
- "name": "projection",
10015
- "required": false,
10016
- "hasDynamicHelp": false,
10017
- "multiple": false,
10018
- "type": "option"
10019
- },
10020
- "wait": {
10021
- "description": "Wait for embeddings processing to complete before returning",
10022
- "name": "wait",
10023
- "allowNo": false,
10024
- "type": "boolean"
10025
10000
  }
10026
10001
  },
10027
10002
  "hasDynamicHelp": false,
10028
10003
  "hiddenAliases": [
10029
- "dataset:embeddings:enable"
10004
+ "dataset:alias:create"
10030
10005
  ],
10031
- "id": "datasets:embeddings:enable",
10006
+ "id": "datasets:alias:create",
10032
10007
  "pluginAlias": "@sanity/cli",
10033
10008
  "pluginName": "@sanity/cli",
10034
10009
  "pluginType": "core",
10035
10010
  "strict": true,
10036
- "telemetry": {
10037
- "redactedFlags": [
10038
- {
10039
- "canonical": "--projection",
10040
- "flags": [
10041
- "--projection"
10042
- ]
10043
- }
10044
- ]
10045
- },
10046
10011
  "isESM": true,
10047
10012
  "relativePath": [
10048
10013
  "dist",
10049
10014
  "commands",
10050
10015
  "datasets",
10051
- "embeddings",
10052
- "enable.js"
10016
+ "alias",
10017
+ "create.js"
10053
10018
  ]
10054
10019
  },
10055
- "datasets:embeddings:status": {
10020
+ "datasets:alias:delete": {
10056
10021
  "aliases": [],
10057
10022
  "args": {
10058
- "dataset": {
10059
- "description": "The name of the dataset to check embeddings status for",
10060
- "name": "dataset",
10061
- "required": false
10023
+ "aliasName": {
10024
+ "description": "Dataset alias name to delete",
10025
+ "name": "aliasName",
10026
+ "required": true
10062
10027
  }
10063
10028
  },
10064
- "description": "Show embeddings settings and status for a dataset",
10029
+ "description": "Delete a dataset alias from the project",
10065
10030
  "examples": [
10066
10031
  {
10067
- "command": "<%= config.bin %> <%= command.id %> production",
10068
- "description": "Show embeddings status for the production dataset"
10032
+ "command": "<%= config.bin %> <%= command.id %> conference",
10033
+ "description": "Delete alias named \"conference\" with confirmation prompt"
10034
+ },
10035
+ {
10036
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
10037
+ "description": "Delete alias named \"conference\" without confirmation prompt"
10069
10038
  }
10070
10039
  ],
10071
10040
  "flags": {
@@ -10075,20 +10044,26 @@
10075
10044
  ],
10076
10045
  "char": "p",
10077
10046
  "deprecateAliases": true,
10078
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
10047
+ "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
10079
10048
  "helpGroup": "OVERRIDE",
10080
10049
  "name": "project",
10081
10050
  "hasDynamicHelp": false,
10082
10051
  "helpValue": "<id>",
10083
10052
  "multiple": false,
10084
10053
  "type": "option"
10054
+ },
10055
+ "force": {
10056
+ "description": "Skip confirmation prompt and delete immediately",
10057
+ "name": "force",
10058
+ "allowNo": false,
10059
+ "type": "boolean"
10085
10060
  }
10086
10061
  },
10087
10062
  "hasDynamicHelp": false,
10088
10063
  "hiddenAliases": [
10089
- "dataset:embeddings:status"
10064
+ "dataset:alias:delete"
10090
10065
  ],
10091
- "id": "datasets:embeddings:status",
10066
+ "id": "datasets:alias:delete",
10092
10067
  "pluginAlias": "@sanity/cli",
10093
10068
  "pluginName": "@sanity/cli",
10094
10069
  "pluginType": "core",
@@ -10098,24 +10073,41 @@
10098
10073
  "dist",
10099
10074
  "commands",
10100
10075
  "datasets",
10101
- "embeddings",
10102
- "status.js"
10076
+ "alias",
10077
+ "delete.js"
10103
10078
  ]
10104
10079
  },
10105
- "datasets:visibility:get": {
10080
+ "datasets:alias:link": {
10106
10081
  "aliases": [],
10107
10082
  "args": {
10108
- "dataset": {
10109
- "description": "The name of the dataset to get visibility for",
10110
- "name": "dataset",
10111
- "required": true
10083
+ "aliasName": {
10084
+ "description": "Dataset alias name to link",
10085
+ "name": "aliasName",
10086
+ "required": false
10087
+ },
10088
+ "targetDataset": {
10089
+ "description": "Target dataset name to link the alias to",
10090
+ "name": "targetDataset",
10091
+ "required": false
10112
10092
  }
10113
10093
  },
10114
- "description": "Get the visibility of a dataset",
10094
+ "description": "Link a dataset alias to a dataset in the project",
10115
10095
  "examples": [
10116
10096
  {
10117
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
10118
- "description": "Check the visibility of a dataset"
10097
+ "command": "<%= config.bin %> <%= command.id %>",
10098
+ "description": "Link an alias with interactive prompts"
10099
+ },
10100
+ {
10101
+ "command": "<%= config.bin %> <%= command.id %> conference",
10102
+ "description": "Link alias named \"conference\" with interactive dataset selection"
10103
+ },
10104
+ {
10105
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
10106
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
10107
+ },
10108
+ {
10109
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
10110
+ "description": "Force link without confirmation (skip relink prompt)"
10119
10111
  }
10120
10112
  ],
10121
10113
  "flags": {
@@ -10125,20 +10117,27 @@
10125
10117
  ],
10126
10118
  "char": "p",
10127
10119
  "deprecateAliases": true,
10128
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
10120
+ "description": "Project ID to link dataset alias in (overrides CLI configuration)",
10129
10121
  "helpGroup": "OVERRIDE",
10130
10122
  "name": "project",
10131
10123
  "hasDynamicHelp": false,
10132
10124
  "helpValue": "<id>",
10133
10125
  "multiple": false,
10134
10126
  "type": "option"
10127
+ },
10128
+ "force": {
10129
+ "description": "Skip confirmation prompt when relinking existing alias",
10130
+ "name": "force",
10131
+ "required": false,
10132
+ "allowNo": false,
10133
+ "type": "boolean"
10135
10134
  }
10136
10135
  },
10137
10136
  "hasDynamicHelp": false,
10138
10137
  "hiddenAliases": [
10139
- "dataset:visibility:get"
10138
+ "dataset:alias:link"
10140
10139
  ],
10141
- "id": "datasets:visibility:get",
10140
+ "id": "datasets:alias:link",
10142
10141
  "pluginAlias": "@sanity/cli",
10143
10142
  "pluginName": "@sanity/cli",
10144
10143
  "pluginType": "core",
@@ -10148,37 +10147,32 @@
10148
10147
  "dist",
10149
10148
  "commands",
10150
10149
  "datasets",
10151
- "visibility",
10152
- "get.js"
10150
+ "alias",
10151
+ "link.js"
10153
10152
  ]
10154
10153
  },
10155
- "datasets:visibility:set": {
10154
+ "datasets:alias:unlink": {
10156
10155
  "aliases": [],
10157
10156
  "args": {
10158
- "dataset": {
10159
- "description": "The name of the dataset to set visibility for",
10160
- "name": "dataset",
10161
- "required": true
10162
- },
10163
- "mode": {
10164
- "description": "The visibility mode to set",
10165
- "name": "mode",
10166
- "options": [
10167
- "public",
10168
- "private"
10169
- ],
10170
- "required": true
10157
+ "aliasName": {
10158
+ "description": "Dataset alias name to unlink",
10159
+ "name": "aliasName",
10160
+ "required": false
10171
10161
  }
10172
10162
  },
10173
- "description": "Set the visibility of a dataset",
10163
+ "description": "Unlink a dataset alias from its dataset in the project",
10174
10164
  "examples": [
10175
10165
  {
10176
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
10177
- "description": "Make a dataset private"
10166
+ "command": "<%= config.bin %> <%= command.id %>",
10167
+ "description": "Unlink an alias with interactive selection"
10178
10168
  },
10179
10169
  {
10180
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
10181
- "description": "Make a dataset public"
10170
+ "command": "<%= config.bin %> <%= command.id %> conference",
10171
+ "description": "Unlink alias \"conference\" with confirmation prompt"
10172
+ },
10173
+ {
10174
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
10175
+ "description": "Unlink alias \"conference\" without confirmation prompt"
10182
10176
  }
10183
10177
  ],
10184
10178
  "flags": {
@@ -10188,20 +10182,26 @@
10188
10182
  ],
10189
10183
  "char": "p",
10190
10184
  "deprecateAliases": true,
10191
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
10185
+ "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
10192
10186
  "helpGroup": "OVERRIDE",
10193
10187
  "name": "project",
10194
10188
  "hasDynamicHelp": false,
10195
10189
  "helpValue": "<id>",
10196
10190
  "multiple": false,
10197
10191
  "type": "option"
10192
+ },
10193
+ "force": {
10194
+ "description": "Skip confirmation prompt and unlink immediately",
10195
+ "name": "force",
10196
+ "allowNo": false,
10197
+ "type": "boolean"
10198
10198
  }
10199
10199
  },
10200
10200
  "hasDynamicHelp": false,
10201
10201
  "hiddenAliases": [
10202
- "dataset:visibility:set"
10202
+ "dataset:alias:unlink"
10203
10203
  ],
10204
- "id": "datasets:visibility:set",
10204
+ "id": "datasets:alias:unlink",
10205
10205
  "pluginAlias": "@sanity/cli",
10206
10206
  "pluginName": "@sanity/cli",
10207
10207
  "pluginType": "core",
@@ -10211,8 +10211,8 @@
10211
10211
  "dist",
10212
10212
  "commands",
10213
10213
  "datasets",
10214
- "visibility",
10215
- "set.js"
10214
+ "alias",
10215
+ "unlink.js"
10216
10216
  ]
10217
10217
  },
10218
10218
  "context:sources:syncs:confirm": {
@@ -10462,5 +10462,5 @@
10462
10462
  ]
10463
10463
  }
10464
10464
  },
10465
- "version": "8.38.1"
10465
+ "version": "8.38.2"
10466
10466
  }