@sanity/cli 8.23.0 → 8.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +313 -0
- package/dist/actions/codemods/dashboard.js +136 -8
- package/dist/actions/codemods/dashboard.js.map +1 -1
- package/dist/actions/codemods/types.js.map +1 -1
- package/dist/actions/init/project/getOrCreateDataset.js +8 -5
- package/dist/actions/init/project/getOrCreateDataset.js.map +1 -1
- package/dist/actions/init/project/getOrCreateProject.js +7 -5
- package/dist/actions/init/project/getOrCreateProject.js.map +1 -1
- package/dist/actions/init/project/promptUserForOrganization.js +6 -4
- package/dist/actions/init/project/promptUserForOrganization.js.map +1 -1
- package/dist/commands/codemod.js +1 -0
- package/dist/commands/codemod.js.map +1 -1
- package/dist/util/searchChoices.js +52 -0
- package/dist/util/searchChoices.js.map +1 -0
- package/oclif.manifest.json +1673 -1673
- package/package.json +6 -6
- package/templates/shopify/.gitignore +0 -26
package/oclif.manifest.json
CHANGED
|
@@ -1825,156 +1825,55 @@
|
|
|
1825
1825
|
"list.js"
|
|
1826
1826
|
]
|
|
1827
1827
|
},
|
|
1828
|
-
"
|
|
1828
|
+
"cors:add": {
|
|
1829
1829
|
"aliases": [],
|
|
1830
1830
|
"args": {
|
|
1831
|
-
"
|
|
1832
|
-
"description": "
|
|
1833
|
-
"name": "
|
|
1831
|
+
"origin": {
|
|
1832
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1833
|
+
"name": "origin",
|
|
1834
1834
|
"required": true
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
|
-
"description": "
|
|
1837
|
+
"description": "Add a CORS origin to the project",
|
|
1838
1838
|
"examples": [
|
|
1839
1839
|
{
|
|
1840
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1841
|
-
"description": "
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --watch",
|
|
1845
|
-
"description": "Start a build and wait for it to finish (non-zero exit on failure)"
|
|
1840
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1841
|
+
"description": "Interactively add a CORS origin"
|
|
1846
1842
|
},
|
|
1847
1843
|
{
|
|
1848
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1849
|
-
"description": "
|
|
1850
|
-
}
|
|
1851
|
-
],
|
|
1852
|
-
"flags": {
|
|
1853
|
-
"cancel": {
|
|
1854
|
-
"description": "Cancel the running build instead of starting one",
|
|
1855
|
-
"exclusive": [
|
|
1856
|
-
"watch"
|
|
1857
|
-
],
|
|
1858
|
-
"name": "cancel",
|
|
1859
|
-
"allowNo": false,
|
|
1860
|
-
"type": "boolean"
|
|
1844
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1845
|
+
"description": "Add a localhost origin without credentials"
|
|
1861
1846
|
},
|
|
1862
|
-
"watch": {
|
|
1863
|
-
"description": "Wait for the build to finish, exiting non-zero if it fails",
|
|
1864
|
-
"name": "watch",
|
|
1865
|
-
"allowNo": false,
|
|
1866
|
-
"type": "boolean"
|
|
1867
|
-
}
|
|
1868
|
-
},
|
|
1869
|
-
"hasDynamicHelp": false,
|
|
1870
|
-
"hiddenAliases": [],
|
|
1871
|
-
"id": "context:build",
|
|
1872
|
-
"pluginAlias": "@sanity/cli",
|
|
1873
|
-
"pluginName": "@sanity/cli",
|
|
1874
|
-
"pluginType": "core",
|
|
1875
|
-
"strict": true,
|
|
1876
|
-
"isESM": true,
|
|
1877
|
-
"relativePath": [
|
|
1878
|
-
"dist",
|
|
1879
|
-
"commands",
|
|
1880
|
-
"context",
|
|
1881
|
-
"build.js"
|
|
1882
|
-
]
|
|
1883
|
-
},
|
|
1884
|
-
"context:create": {
|
|
1885
|
-
"aliases": [],
|
|
1886
|
-
"args": {},
|
|
1887
|
-
"description": "Create a knowledge base",
|
|
1888
|
-
"examples": [
|
|
1889
1847
|
{
|
|
1890
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1891
|
-
"description": "
|
|
1848
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1849
|
+
"description": "Add a production origin with credentials allowed"
|
|
1892
1850
|
},
|
|
1893
1851
|
{
|
|
1894
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
1895
|
-
"description": "
|
|
1852
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
1853
|
+
"description": "Add a CORS origin for a specific project"
|
|
1896
1854
|
}
|
|
1897
1855
|
],
|
|
1898
1856
|
"flags": {
|
|
1899
|
-
"
|
|
1900
|
-
"
|
|
1857
|
+
"project-id": {
|
|
1858
|
+
"char": "p",
|
|
1859
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1901
1860
|
"helpGroup": "OVERRIDE",
|
|
1902
|
-
"name": "
|
|
1861
|
+
"name": "project-id",
|
|
1903
1862
|
"hasDynamicHelp": false,
|
|
1904
1863
|
"helpValue": "<id>",
|
|
1905
1864
|
"multiple": false,
|
|
1906
1865
|
"type": "option"
|
|
1907
1866
|
},
|
|
1908
|
-
"
|
|
1909
|
-
"description": "
|
|
1910
|
-
"name": "
|
|
1911
|
-
"
|
|
1912
|
-
"
|
|
1913
|
-
"type": "
|
|
1914
|
-
},
|
|
1915
|
-
"title": {
|
|
1916
|
-
"description": "Knowledge base title",
|
|
1917
|
-
"name": "title",
|
|
1918
|
-
"hasDynamicHelp": false,
|
|
1919
|
-
"multiple": false,
|
|
1920
|
-
"type": "option"
|
|
1921
|
-
}
|
|
1922
|
-
},
|
|
1923
|
-
"hasDynamicHelp": false,
|
|
1924
|
-
"hiddenAliases": [],
|
|
1925
|
-
"id": "context:create",
|
|
1926
|
-
"pluginAlias": "@sanity/cli",
|
|
1927
|
-
"pluginName": "@sanity/cli",
|
|
1928
|
-
"pluginType": "core",
|
|
1929
|
-
"strict": true,
|
|
1930
|
-
"telemetry": {
|
|
1931
|
-
"redactedFlags": [
|
|
1932
|
-
{
|
|
1933
|
-
"canonical": "--title",
|
|
1934
|
-
"flags": [
|
|
1935
|
-
"--title"
|
|
1936
|
-
]
|
|
1937
|
-
},
|
|
1938
|
-
{
|
|
1939
|
-
"canonical": "--description",
|
|
1940
|
-
"flags": [
|
|
1941
|
-
"--description"
|
|
1942
|
-
]
|
|
1943
|
-
}
|
|
1944
|
-
]
|
|
1945
|
-
},
|
|
1946
|
-
"isESM": true,
|
|
1947
|
-
"relativePath": [
|
|
1948
|
-
"dist",
|
|
1949
|
-
"commands",
|
|
1950
|
-
"context",
|
|
1951
|
-
"create.js"
|
|
1952
|
-
]
|
|
1953
|
-
},
|
|
1954
|
-
"context:delete": {
|
|
1955
|
-
"aliases": [],
|
|
1956
|
-
"args": {
|
|
1957
|
-
"knowledgeBaseId": {
|
|
1958
|
-
"description": "Knowledge base ID",
|
|
1959
|
-
"name": "knowledgeBaseId",
|
|
1960
|
-
"required": true
|
|
1961
|
-
}
|
|
1962
|
-
},
|
|
1963
|
-
"description": "Delete a knowledge base and its generated content",
|
|
1964
|
-
"examples": [
|
|
1965
|
-
{
|
|
1966
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
1967
|
-
"description": "Delete a knowledge base after confirmation"
|
|
1867
|
+
"credentials": {
|
|
1868
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1869
|
+
"name": "credentials",
|
|
1870
|
+
"required": false,
|
|
1871
|
+
"allowNo": true,
|
|
1872
|
+
"type": "boolean"
|
|
1968
1873
|
},
|
|
1969
|
-
{
|
|
1970
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --yes",
|
|
1971
|
-
"description": "Delete a knowledge base without confirmation prompt"
|
|
1972
|
-
}
|
|
1973
|
-
],
|
|
1974
|
-
"flags": {
|
|
1975
1874
|
"yes": {
|
|
1976
1875
|
"char": "y",
|
|
1977
|
-
"description": "
|
|
1876
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
1978
1877
|
"name": "yes",
|
|
1979
1878
|
"allowNo": false,
|
|
1980
1879
|
"type": "boolean"
|
|
@@ -1982,7 +1881,7 @@
|
|
|
1982
1881
|
},
|
|
1983
1882
|
"hasDynamicHelp": false,
|
|
1984
1883
|
"hiddenAliases": [],
|
|
1985
|
-
"id": "
|
|
1884
|
+
"id": "cors:add",
|
|
1986
1885
|
"pluginAlias": "@sanity/cli",
|
|
1987
1886
|
"pluginName": "@sanity/cli",
|
|
1988
1887
|
"pluginType": "core",
|
|
@@ -1991,85 +1890,81 @@
|
|
|
1991
1890
|
"relativePath": [
|
|
1992
1891
|
"dist",
|
|
1993
1892
|
"commands",
|
|
1994
|
-
"
|
|
1995
|
-
"
|
|
1893
|
+
"cors",
|
|
1894
|
+
"add.js"
|
|
1996
1895
|
]
|
|
1997
1896
|
},
|
|
1998
|
-
"
|
|
1897
|
+
"cors:delete": {
|
|
1999
1898
|
"aliases": [],
|
|
2000
1899
|
"args": {
|
|
2001
|
-
"
|
|
2002
|
-
"description": "
|
|
2003
|
-
"name": "
|
|
2004
|
-
"required":
|
|
1900
|
+
"origin": {
|
|
1901
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
1902
|
+
"name": "origin",
|
|
1903
|
+
"required": false
|
|
2005
1904
|
}
|
|
2006
1905
|
},
|
|
2007
|
-
"description": "
|
|
1906
|
+
"description": "Delete a CORS origin from the project",
|
|
2008
1907
|
"examples": [
|
|
2009
1908
|
{
|
|
2010
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2011
|
-
"description": "
|
|
1909
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1910
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2012
1911
|
},
|
|
2013
1912
|
{
|
|
2014
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2015
|
-
"description": "
|
|
1913
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1914
|
+
"description": "Delete a specific CORS origin"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1918
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2016
1919
|
}
|
|
2017
1920
|
],
|
|
2018
1921
|
"flags": {
|
|
2019
|
-
"
|
|
2020
|
-
"
|
|
2021
|
-
"
|
|
2022
|
-
"
|
|
2023
|
-
"
|
|
2024
|
-
"
|
|
1922
|
+
"project-id": {
|
|
1923
|
+
"char": "p",
|
|
1924
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1925
|
+
"helpGroup": "OVERRIDE",
|
|
1926
|
+
"name": "project-id",
|
|
1927
|
+
"hasDynamicHelp": false,
|
|
1928
|
+
"helpValue": "<id>",
|
|
1929
|
+
"multiple": false,
|
|
1930
|
+
"type": "option"
|
|
2025
1931
|
}
|
|
2026
1932
|
},
|
|
2027
1933
|
"hasDynamicHelp": false,
|
|
2028
1934
|
"hiddenAliases": [],
|
|
2029
|
-
"id": "
|
|
1935
|
+
"id": "cors:delete",
|
|
2030
1936
|
"pluginAlias": "@sanity/cli",
|
|
2031
1937
|
"pluginName": "@sanity/cli",
|
|
2032
1938
|
"pluginType": "core",
|
|
2033
1939
|
"strict": true,
|
|
2034
|
-
"enableJsonFlag": true,
|
|
2035
1940
|
"isESM": true,
|
|
2036
1941
|
"relativePath": [
|
|
2037
1942
|
"dist",
|
|
2038
1943
|
"commands",
|
|
2039
|
-
"
|
|
2040
|
-
"
|
|
1944
|
+
"cors",
|
|
1945
|
+
"delete.js"
|
|
2041
1946
|
]
|
|
2042
1947
|
},
|
|
2043
|
-
"
|
|
1948
|
+
"cors:list": {
|
|
2044
1949
|
"aliases": [],
|
|
2045
1950
|
"args": {},
|
|
2046
|
-
"description": "List
|
|
1951
|
+
"description": "List CORS origins for the project",
|
|
2047
1952
|
"examples": [
|
|
2048
1953
|
{
|
|
2049
1954
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2050
|
-
"description": "List
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123",
|
|
2054
|
-
"description": "List knowledge bases in a specific organization"
|
|
1955
|
+
"description": "List CORS origins for the project"
|
|
2055
1956
|
},
|
|
2056
1957
|
{
|
|
2057
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2058
|
-
"description": "
|
|
1958
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1959
|
+
"description": "List CORS origins for a specific project"
|
|
2059
1960
|
}
|
|
2060
1961
|
],
|
|
2061
1962
|
"flags": {
|
|
2062
|
-
"
|
|
2063
|
-
"
|
|
2064
|
-
"
|
|
2065
|
-
"name": "json",
|
|
2066
|
-
"allowNo": false,
|
|
2067
|
-
"type": "boolean"
|
|
2068
|
-
},
|
|
2069
|
-
"organization": {
|
|
2070
|
-
"description": "Organization to list knowledge bases for (overrides CLI configuration)",
|
|
1963
|
+
"project-id": {
|
|
1964
|
+
"char": "p",
|
|
1965
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2071
1966
|
"helpGroup": "OVERRIDE",
|
|
2072
|
-
"name": "
|
|
1967
|
+
"name": "project-id",
|
|
2073
1968
|
"hasDynamicHelp": false,
|
|
2074
1969
|
"helpValue": "<id>",
|
|
2075
1970
|
"multiple": false,
|
|
@@ -2078,273 +1973,251 @@
|
|
|
2078
1973
|
},
|
|
2079
1974
|
"hasDynamicHelp": false,
|
|
2080
1975
|
"hiddenAliases": [],
|
|
2081
|
-
"id": "
|
|
1976
|
+
"id": "cors:list",
|
|
2082
1977
|
"pluginAlias": "@sanity/cli",
|
|
2083
1978
|
"pluginName": "@sanity/cli",
|
|
2084
1979
|
"pluginType": "core",
|
|
2085
1980
|
"strict": true,
|
|
2086
|
-
"enableJsonFlag": true,
|
|
2087
1981
|
"isESM": true,
|
|
2088
1982
|
"relativePath": [
|
|
2089
1983
|
"dist",
|
|
2090
1984
|
"commands",
|
|
2091
|
-
"
|
|
1985
|
+
"cors",
|
|
2092
1986
|
"list.js"
|
|
2093
1987
|
]
|
|
2094
1988
|
},
|
|
2095
|
-
"
|
|
1989
|
+
"datasets:copy": {
|
|
2096
1990
|
"aliases": [],
|
|
2097
1991
|
"args": {
|
|
2098
|
-
"
|
|
2099
|
-
"description": "
|
|
2100
|
-
"name": "
|
|
2101
|
-
"required":
|
|
1992
|
+
"source": {
|
|
1993
|
+
"description": "Name of the dataset to copy from",
|
|
1994
|
+
"name": "source",
|
|
1995
|
+
"required": false
|
|
1996
|
+
},
|
|
1997
|
+
"target": {
|
|
1998
|
+
"description": "Name of the dataset to copy to",
|
|
1999
|
+
"name": "target",
|
|
2000
|
+
"required": false
|
|
2102
2001
|
}
|
|
2103
2002
|
},
|
|
2104
|
-
"description": "
|
|
2003
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2105
2004
|
"examples": [
|
|
2106
2005
|
{
|
|
2107
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2108
|
-
"description": "
|
|
2006
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2007
|
+
"description": "Interactively copy a dataset"
|
|
2109
2008
|
},
|
|
2110
2009
|
{
|
|
2111
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2112
|
-
"description": "
|
|
2113
|
-
}
|
|
2114
|
-
],
|
|
2115
|
-
"flags": {
|
|
2116
|
-
"json": {
|
|
2117
|
-
"description": "Format output as json.",
|
|
2118
|
-
"helpGroup": "GLOBAL",
|
|
2119
|
-
"name": "json",
|
|
2120
|
-
"allowNo": false,
|
|
2121
|
-
"type": "boolean"
|
|
2010
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2011
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2122
2012
|
},
|
|
2123
|
-
|
|
2124
|
-
"
|
|
2125
|
-
"
|
|
2126
|
-
"name": "organization",
|
|
2127
|
-
"hasDynamicHelp": false,
|
|
2128
|
-
"helpValue": "<id>",
|
|
2129
|
-
"multiple": false,
|
|
2130
|
-
"type": "option"
|
|
2013
|
+
{
|
|
2014
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2015
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2131
2016
|
},
|
|
2132
|
-
"params": {
|
|
2133
|
-
"description": "Query parameters as a JSON object",
|
|
2134
|
-
"name": "params",
|
|
2135
|
-
"hasDynamicHelp": false,
|
|
2136
|
-
"helpValue": "<json>",
|
|
2137
|
-
"multiple": false,
|
|
2138
|
-
"type": "option"
|
|
2139
|
-
}
|
|
2140
|
-
},
|
|
2141
|
-
"hasDynamicHelp": false,
|
|
2142
|
-
"hiddenAliases": [],
|
|
2143
|
-
"id": "context:query",
|
|
2144
|
-
"pluginAlias": "@sanity/cli",
|
|
2145
|
-
"pluginName": "@sanity/cli",
|
|
2146
|
-
"pluginType": "core",
|
|
2147
|
-
"strict": true,
|
|
2148
|
-
"enableJsonFlag": true,
|
|
2149
|
-
"telemetry": {
|
|
2150
|
-
"redactedFlags": [
|
|
2151
|
-
{
|
|
2152
|
-
"canonical": "--params",
|
|
2153
|
-
"flags": [
|
|
2154
|
-
"--params"
|
|
2155
|
-
]
|
|
2156
|
-
}
|
|
2157
|
-
]
|
|
2158
|
-
},
|
|
2159
|
-
"isESM": true,
|
|
2160
|
-
"relativePath": [
|
|
2161
|
-
"dist",
|
|
2162
|
-
"commands",
|
|
2163
|
-
"context",
|
|
2164
|
-
"query.js"
|
|
2165
|
-
]
|
|
2166
|
-
},
|
|
2167
|
-
"context:refresh": {
|
|
2168
|
-
"aliases": [],
|
|
2169
|
-
"args": {
|
|
2170
|
-
"knowledgeBaseId": {
|
|
2171
|
-
"description": "Knowledge base ID",
|
|
2172
|
-
"name": "knowledgeBaseId",
|
|
2173
|
-
"required": true
|
|
2174
|
-
}
|
|
2175
|
-
},
|
|
2176
|
-
"description": "Refresh a knowledge base: re-check sources and apply what changed",
|
|
2177
|
-
"examples": [
|
|
2178
2017
|
{
|
|
2179
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2180
|
-
"description": "
|
|
2181
|
-
}
|
|
2182
|
-
],
|
|
2183
|
-
"flags": {},
|
|
2184
|
-
"hasDynamicHelp": false,
|
|
2185
|
-
"hiddenAliases": [],
|
|
2186
|
-
"id": "context:refresh",
|
|
2187
|
-
"pluginAlias": "@sanity/cli",
|
|
2188
|
-
"pluginName": "@sanity/cli",
|
|
2189
|
-
"pluginType": "core",
|
|
2190
|
-
"strict": true,
|
|
2191
|
-
"isESM": true,
|
|
2192
|
-
"relativePath": [
|
|
2193
|
-
"dist",
|
|
2194
|
-
"commands",
|
|
2195
|
-
"context",
|
|
2196
|
-
"refresh.js"
|
|
2197
|
-
]
|
|
2198
|
-
},
|
|
2199
|
-
"context:update": {
|
|
2200
|
-
"aliases": [],
|
|
2201
|
-
"args": {
|
|
2202
|
-
"knowledgeBaseId": {
|
|
2203
|
-
"description": "Knowledge base ID",
|
|
2204
|
-
"name": "knowledgeBaseId",
|
|
2205
|
-
"required": true
|
|
2206
|
-
}
|
|
2207
|
-
},
|
|
2208
|
-
"description": "Update a knowledge base",
|
|
2209
|
-
"examples": [
|
|
2018
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2019
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2020
|
+
},
|
|
2210
2021
|
{
|
|
2211
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2212
|
-
"description": "
|
|
2022
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2023
|
+
"description": "Copy without content release documents"
|
|
2213
2024
|
},
|
|
2214
2025
|
{
|
|
2215
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2216
|
-
"description": "
|
|
2026
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2027
|
+
"description": "Start copy job without waiting for completion"
|
|
2217
2028
|
},
|
|
2218
2029
|
{
|
|
2219
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2220
|
-
"description": "
|
|
2030
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2031
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2035
|
+
"description": "List all dataset copy jobs"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2039
|
+
"description": "List copy jobs with pagination"
|
|
2221
2040
|
}
|
|
2222
2041
|
],
|
|
2223
2042
|
"flags": {
|
|
2224
|
-
"
|
|
2225
|
-
"
|
|
2226
|
-
"
|
|
2043
|
+
"project-id": {
|
|
2044
|
+
"char": "p",
|
|
2045
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2046
|
+
"helpGroup": "OVERRIDE",
|
|
2047
|
+
"name": "project-id",
|
|
2048
|
+
"hasDynamicHelp": false,
|
|
2049
|
+
"helpValue": "<id>",
|
|
2050
|
+
"multiple": false,
|
|
2051
|
+
"type": "option"
|
|
2052
|
+
},
|
|
2053
|
+
"attach": {
|
|
2054
|
+
"description": "Attach to the running copy process to show progress",
|
|
2055
|
+
"exclusive": [
|
|
2056
|
+
"list",
|
|
2057
|
+
"detach",
|
|
2058
|
+
"skip-history"
|
|
2059
|
+
],
|
|
2060
|
+
"name": "attach",
|
|
2227
2061
|
"required": false,
|
|
2228
2062
|
"hasDynamicHelp": false,
|
|
2229
2063
|
"multiple": false,
|
|
2230
2064
|
"type": "option"
|
|
2231
2065
|
},
|
|
2232
|
-
"
|
|
2233
|
-
"description": "
|
|
2234
|
-
"
|
|
2066
|
+
"detach": {
|
|
2067
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2068
|
+
"exclusive": [
|
|
2069
|
+
"list",
|
|
2070
|
+
"attach"
|
|
2071
|
+
],
|
|
2072
|
+
"name": "detach",
|
|
2235
2073
|
"required": false,
|
|
2236
|
-
"allowNo":
|
|
2074
|
+
"allowNo": false,
|
|
2237
2075
|
"type": "boolean"
|
|
2238
2076
|
},
|
|
2239
|
-
"
|
|
2240
|
-
"
|
|
2241
|
-
|
|
2077
|
+
"limit": {
|
|
2078
|
+
"dependsOn": [
|
|
2079
|
+
"list"
|
|
2080
|
+
],
|
|
2081
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2082
|
+
"name": "limit",
|
|
2242
2083
|
"required": false,
|
|
2243
2084
|
"hasDynamicHelp": false,
|
|
2244
2085
|
"multiple": false,
|
|
2245
|
-
"options": [
|
|
2246
|
-
"weekly",
|
|
2247
|
-
"monthly"
|
|
2248
|
-
],
|
|
2249
2086
|
"type": "option"
|
|
2250
2087
|
},
|
|
2251
|
-
"
|
|
2252
|
-
"description": "
|
|
2253
|
-
"
|
|
2088
|
+
"list": {
|
|
2089
|
+
"description": "Lists all dataset copy jobs",
|
|
2090
|
+
"exclusive": [
|
|
2091
|
+
"attach",
|
|
2092
|
+
"detach",
|
|
2093
|
+
"skip-history"
|
|
2094
|
+
],
|
|
2095
|
+
"name": "list",
|
|
2096
|
+
"required": false,
|
|
2097
|
+
"allowNo": false,
|
|
2098
|
+
"type": "boolean"
|
|
2099
|
+
},
|
|
2100
|
+
"offset": {
|
|
2101
|
+
"dependsOn": [
|
|
2102
|
+
"list"
|
|
2103
|
+
],
|
|
2104
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2105
|
+
"name": "offset",
|
|
2254
2106
|
"required": false,
|
|
2255
2107
|
"hasDynamicHelp": false,
|
|
2256
2108
|
"multiple": false,
|
|
2257
2109
|
"type": "option"
|
|
2110
|
+
},
|
|
2111
|
+
"skip-content-releases": {
|
|
2112
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2113
|
+
"exclusive": [
|
|
2114
|
+
"list",
|
|
2115
|
+
"attach"
|
|
2116
|
+
],
|
|
2117
|
+
"name": "skip-content-releases",
|
|
2118
|
+
"required": false,
|
|
2119
|
+
"allowNo": false,
|
|
2120
|
+
"type": "boolean"
|
|
2121
|
+
},
|
|
2122
|
+
"skip-history": {
|
|
2123
|
+
"description": "Don't preserve document history on copy",
|
|
2124
|
+
"exclusive": [
|
|
2125
|
+
"list",
|
|
2126
|
+
"attach"
|
|
2127
|
+
],
|
|
2128
|
+
"name": "skip-history",
|
|
2129
|
+
"required": false,
|
|
2130
|
+
"allowNo": false,
|
|
2131
|
+
"type": "boolean"
|
|
2258
2132
|
}
|
|
2259
2133
|
},
|
|
2260
2134
|
"hasDynamicHelp": false,
|
|
2261
|
-
"hiddenAliases": [
|
|
2262
|
-
|
|
2135
|
+
"hiddenAliases": [
|
|
2136
|
+
"dataset:copy"
|
|
2137
|
+
],
|
|
2138
|
+
"id": "datasets:copy",
|
|
2263
2139
|
"pluginAlias": "@sanity/cli",
|
|
2264
2140
|
"pluginName": "@sanity/cli",
|
|
2265
2141
|
"pluginType": "core",
|
|
2266
2142
|
"strict": true,
|
|
2267
|
-
"telemetry": {
|
|
2268
|
-
"redactedFlags": [
|
|
2269
|
-
{
|
|
2270
|
-
"canonical": "--title",
|
|
2271
|
-
"flags": [
|
|
2272
|
-
"--title"
|
|
2273
|
-
]
|
|
2274
|
-
},
|
|
2275
|
-
{
|
|
2276
|
-
"canonical": "--description",
|
|
2277
|
-
"flags": [
|
|
2278
|
-
"--description"
|
|
2279
|
-
]
|
|
2280
|
-
}
|
|
2281
|
-
]
|
|
2282
|
-
},
|
|
2283
2143
|
"isESM": true,
|
|
2284
2144
|
"relativePath": [
|
|
2285
2145
|
"dist",
|
|
2286
2146
|
"commands",
|
|
2287
|
-
"
|
|
2288
|
-
"
|
|
2147
|
+
"datasets",
|
|
2148
|
+
"copy.js"
|
|
2289
2149
|
]
|
|
2290
2150
|
},
|
|
2291
|
-
"
|
|
2151
|
+
"datasets:create": {
|
|
2292
2152
|
"aliases": [],
|
|
2293
2153
|
"args": {
|
|
2294
|
-
"
|
|
2295
|
-
"description": "
|
|
2296
|
-
"name": "
|
|
2297
|
-
"required":
|
|
2154
|
+
"name": {
|
|
2155
|
+
"description": "Name of the dataset to create",
|
|
2156
|
+
"name": "name",
|
|
2157
|
+
"required": false
|
|
2298
2158
|
}
|
|
2299
2159
|
},
|
|
2300
|
-
"description": "
|
|
2160
|
+
"description": "Create a new dataset for the project",
|
|
2301
2161
|
"examples": [
|
|
2302
2162
|
{
|
|
2303
2163
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2304
|
-
"description": "Interactively
|
|
2305
|
-
},
|
|
2306
|
-
{
|
|
2307
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2308
|
-
"description": "Add a localhost origin without credentials"
|
|
2164
|
+
"description": "Interactively create a dataset"
|
|
2309
2165
|
},
|
|
2310
2166
|
{
|
|
2311
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2312
|
-
"description": "
|
|
2167
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2168
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2313
2169
|
},
|
|
2314
2170
|
{
|
|
2315
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2316
|
-
"description": "
|
|
2171
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2172
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2317
2173
|
}
|
|
2318
2174
|
],
|
|
2319
2175
|
"flags": {
|
|
2320
2176
|
"project-id": {
|
|
2321
2177
|
"char": "p",
|
|
2322
|
-
"description": "Project ID to
|
|
2178
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2323
2179
|
"helpGroup": "OVERRIDE",
|
|
2324
2180
|
"name": "project-id",
|
|
2325
2181
|
"hasDynamicHelp": false,
|
|
2326
|
-
"helpValue": "<id>",
|
|
2182
|
+
"helpValue": "<id>",
|
|
2183
|
+
"multiple": false,
|
|
2184
|
+
"type": "option"
|
|
2185
|
+
},
|
|
2186
|
+
"embeddings": {
|
|
2187
|
+
"description": "Enable embeddings for this dataset",
|
|
2188
|
+
"name": "embeddings",
|
|
2189
|
+
"allowNo": false,
|
|
2190
|
+
"type": "boolean"
|
|
2191
|
+
},
|
|
2192
|
+
"embeddings-projection": {
|
|
2193
|
+
"dependsOn": [
|
|
2194
|
+
"embeddings"
|
|
2195
|
+
],
|
|
2196
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2197
|
+
"name": "embeddings-projection",
|
|
2198
|
+
"hasDynamicHelp": false,
|
|
2327
2199
|
"multiple": false,
|
|
2328
2200
|
"type": "option"
|
|
2329
2201
|
},
|
|
2330
|
-
"
|
|
2331
|
-
"description": "
|
|
2332
|
-
"name": "
|
|
2202
|
+
"visibility": {
|
|
2203
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2204
|
+
"name": "visibility",
|
|
2333
2205
|
"required": false,
|
|
2334
|
-
"
|
|
2335
|
-
"
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
"
|
|
2342
|
-
"type": "boolean"
|
|
2206
|
+
"hasDynamicHelp": false,
|
|
2207
|
+
"multiple": false,
|
|
2208
|
+
"options": [
|
|
2209
|
+
"custom",
|
|
2210
|
+
"private",
|
|
2211
|
+
"public"
|
|
2212
|
+
],
|
|
2213
|
+
"type": "option"
|
|
2343
2214
|
}
|
|
2344
2215
|
},
|
|
2345
2216
|
"hasDynamicHelp": false,
|
|
2346
|
-
"hiddenAliases": [
|
|
2347
|
-
|
|
2217
|
+
"hiddenAliases": [
|
|
2218
|
+
"dataset:create"
|
|
2219
|
+
],
|
|
2220
|
+
"id": "datasets:create",
|
|
2348
2221
|
"pluginAlias": "@sanity/cli",
|
|
2349
2222
|
"pluginName": "@sanity/cli",
|
|
2350
2223
|
"pluginType": "core",
|
|
@@ -2353,49 +2226,53 @@
|
|
|
2353
2226
|
"relativePath": [
|
|
2354
2227
|
"dist",
|
|
2355
2228
|
"commands",
|
|
2356
|
-
"
|
|
2357
|
-
"
|
|
2229
|
+
"datasets",
|
|
2230
|
+
"create.js"
|
|
2358
2231
|
]
|
|
2359
2232
|
},
|
|
2360
|
-
"
|
|
2233
|
+
"datasets:delete": {
|
|
2361
2234
|
"aliases": [],
|
|
2362
2235
|
"args": {
|
|
2363
|
-
"
|
|
2364
|
-
"description": "
|
|
2365
|
-
"name": "
|
|
2366
|
-
"required":
|
|
2236
|
+
"datasetName": {
|
|
2237
|
+
"description": "Dataset name to delete",
|
|
2238
|
+
"name": "datasetName",
|
|
2239
|
+
"required": true
|
|
2367
2240
|
}
|
|
2368
2241
|
},
|
|
2369
|
-
"description": "Delete a
|
|
2242
|
+
"description": "Delete a dataset from the project",
|
|
2370
2243
|
"examples": [
|
|
2371
2244
|
{
|
|
2372
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2373
|
-
"description": "
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2377
|
-
"description": "Delete a specific CORS origin"
|
|
2245
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2246
|
+
"description": "Delete a specific dataset"
|
|
2378
2247
|
},
|
|
2379
2248
|
{
|
|
2380
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2381
|
-
"description": "Delete a
|
|
2249
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
2250
|
+
"description": "Delete a specific dataset without confirmation"
|
|
2382
2251
|
}
|
|
2383
2252
|
],
|
|
2384
2253
|
"flags": {
|
|
2385
2254
|
"project-id": {
|
|
2386
2255
|
"char": "p",
|
|
2387
|
-
"description": "Project ID to delete
|
|
2256
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
2388
2257
|
"helpGroup": "OVERRIDE",
|
|
2389
2258
|
"name": "project-id",
|
|
2390
2259
|
"hasDynamicHelp": false,
|
|
2391
2260
|
"helpValue": "<id>",
|
|
2392
2261
|
"multiple": false,
|
|
2393
2262
|
"type": "option"
|
|
2263
|
+
},
|
|
2264
|
+
"force": {
|
|
2265
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2266
|
+
"name": "force",
|
|
2267
|
+
"allowNo": false,
|
|
2268
|
+
"type": "boolean"
|
|
2394
2269
|
}
|
|
2395
2270
|
},
|
|
2396
2271
|
"hasDynamicHelp": false,
|
|
2397
|
-
"hiddenAliases": [
|
|
2398
|
-
|
|
2272
|
+
"hiddenAliases": [
|
|
2273
|
+
"dataset:delete"
|
|
2274
|
+
],
|
|
2275
|
+
"id": "datasets:delete",
|
|
2399
2276
|
"pluginAlias": "@sanity/cli",
|
|
2400
2277
|
"pluginName": "@sanity/cli",
|
|
2401
2278
|
"pluginType": "core",
|
|
@@ -2404,39 +2281,125 @@
|
|
|
2404
2281
|
"relativePath": [
|
|
2405
2282
|
"dist",
|
|
2406
2283
|
"commands",
|
|
2407
|
-
"
|
|
2284
|
+
"datasets",
|
|
2408
2285
|
"delete.js"
|
|
2409
2286
|
]
|
|
2410
2287
|
},
|
|
2411
|
-
"
|
|
2288
|
+
"datasets:export": {
|
|
2412
2289
|
"aliases": [],
|
|
2413
|
-
"args": {
|
|
2414
|
-
|
|
2290
|
+
"args": {
|
|
2291
|
+
"name": {
|
|
2292
|
+
"description": "Name of the dataset to export",
|
|
2293
|
+
"name": "name"
|
|
2294
|
+
},
|
|
2295
|
+
"destination": {
|
|
2296
|
+
"description": "Output destination file path",
|
|
2297
|
+
"name": "destination"
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
2415
2301
|
"examples": [
|
|
2416
2302
|
{
|
|
2417
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2418
|
-
"description": "
|
|
2303
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
2304
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
2419
2305
|
},
|
|
2420
2306
|
{
|
|
2421
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2422
|
-
"description": "
|
|
2307
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
2308
|
+
"description": "Export dataset without assets"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
2312
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
2316
|
+
"description": "Export specific document types"
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
2320
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
2423
2321
|
}
|
|
2424
2322
|
],
|
|
2425
2323
|
"flags": {
|
|
2426
2324
|
"project-id": {
|
|
2427
2325
|
"char": "p",
|
|
2428
|
-
"description": "Project ID to
|
|
2326
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
2429
2327
|
"helpGroup": "OVERRIDE",
|
|
2430
2328
|
"name": "project-id",
|
|
2431
2329
|
"hasDynamicHelp": false,
|
|
2432
2330
|
"helpValue": "<id>",
|
|
2433
2331
|
"multiple": false,
|
|
2434
2332
|
"type": "option"
|
|
2333
|
+
},
|
|
2334
|
+
"asset-concurrency": {
|
|
2335
|
+
"description": "Concurrent number of asset downloads",
|
|
2336
|
+
"name": "asset-concurrency",
|
|
2337
|
+
"default": 8,
|
|
2338
|
+
"hasDynamicHelp": false,
|
|
2339
|
+
"multiple": false,
|
|
2340
|
+
"type": "option"
|
|
2341
|
+
},
|
|
2342
|
+
"mode": {
|
|
2343
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
2344
|
+
"name": "mode",
|
|
2345
|
+
"default": "stream",
|
|
2346
|
+
"hasDynamicHelp": false,
|
|
2347
|
+
"multiple": false,
|
|
2348
|
+
"options": [
|
|
2349
|
+
"stream",
|
|
2350
|
+
"cursor"
|
|
2351
|
+
],
|
|
2352
|
+
"type": "option"
|
|
2353
|
+
},
|
|
2354
|
+
"no-assets": {
|
|
2355
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
2356
|
+
"name": "no-assets",
|
|
2357
|
+
"allowNo": false,
|
|
2358
|
+
"type": "boolean"
|
|
2359
|
+
},
|
|
2360
|
+
"no-compress": {
|
|
2361
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
2362
|
+
"name": "no-compress",
|
|
2363
|
+
"allowNo": false,
|
|
2364
|
+
"type": "boolean"
|
|
2365
|
+
},
|
|
2366
|
+
"no-drafts": {
|
|
2367
|
+
"description": "Export only published versions of documents",
|
|
2368
|
+
"name": "no-drafts",
|
|
2369
|
+
"allowNo": false,
|
|
2370
|
+
"type": "boolean"
|
|
2371
|
+
},
|
|
2372
|
+
"no-strict-asset-verification": {
|
|
2373
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2374
|
+
"name": "no-strict-asset-verification",
|
|
2375
|
+
"allowNo": false,
|
|
2376
|
+
"type": "boolean"
|
|
2377
|
+
},
|
|
2378
|
+
"overwrite": {
|
|
2379
|
+
"description": "Overwrite any file with the same name",
|
|
2380
|
+
"name": "overwrite",
|
|
2381
|
+
"allowNo": false,
|
|
2382
|
+
"type": "boolean"
|
|
2383
|
+
},
|
|
2384
|
+
"raw": {
|
|
2385
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
2386
|
+
"name": "raw",
|
|
2387
|
+
"allowNo": false,
|
|
2388
|
+
"type": "boolean"
|
|
2389
|
+
},
|
|
2390
|
+
"types": {
|
|
2391
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
2392
|
+
"name": "types",
|
|
2393
|
+
"hasDynamicHelp": false,
|
|
2394
|
+
"multiple": false,
|
|
2395
|
+
"type": "option"
|
|
2435
2396
|
}
|
|
2436
2397
|
},
|
|
2437
2398
|
"hasDynamicHelp": false,
|
|
2438
|
-
"hiddenAliases": [
|
|
2439
|
-
|
|
2399
|
+
"hiddenAliases": [
|
|
2400
|
+
"dataset:export"
|
|
2401
|
+
],
|
|
2402
|
+
"id": "datasets:export",
|
|
2440
2403
|
"pluginAlias": "@sanity/cli",
|
|
2441
2404
|
"pluginName": "@sanity/cli",
|
|
2442
2405
|
"pluginType": "core",
|
|
@@ -2445,160 +2408,151 @@
|
|
|
2445
2408
|
"relativePath": [
|
|
2446
2409
|
"dist",
|
|
2447
2410
|
"commands",
|
|
2448
|
-
"
|
|
2449
|
-
"
|
|
2411
|
+
"datasets",
|
|
2412
|
+
"export.js"
|
|
2450
2413
|
]
|
|
2451
2414
|
},
|
|
2452
|
-
"datasets:
|
|
2415
|
+
"datasets:import": {
|
|
2453
2416
|
"aliases": [],
|
|
2454
2417
|
"args": {
|
|
2455
2418
|
"source": {
|
|
2456
|
-
"description": "
|
|
2419
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
2457
2420
|
"name": "source",
|
|
2458
|
-
"required":
|
|
2421
|
+
"required": true
|
|
2459
2422
|
},
|
|
2460
|
-
"
|
|
2461
|
-
"description": "
|
|
2462
|
-
"name": "
|
|
2423
|
+
"targetDataset": {
|
|
2424
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
2425
|
+
"name": "targetDataset",
|
|
2463
2426
|
"required": false
|
|
2464
2427
|
}
|
|
2465
2428
|
},
|
|
2466
|
-
"description": "
|
|
2429
|
+
"description": "Import documents to a Sanity dataset",
|
|
2467
2430
|
"examples": [
|
|
2468
2431
|
{
|
|
2469
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2470
|
-
"description": "
|
|
2471
|
-
},
|
|
2472
|
-
{
|
|
2473
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2474
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2475
|
-
},
|
|
2476
|
-
{
|
|
2477
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2478
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2432
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
2433
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
2479
2434
|
},
|
|
2480
2435
|
{
|
|
2481
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2482
|
-
"description": "
|
|
2436
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
2437
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
2483
2438
|
},
|
|
2484
2439
|
{
|
|
2485
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2486
|
-
"description": "
|
|
2440
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
2441
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
2487
2442
|
},
|
|
2488
2443
|
{
|
|
2489
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2490
|
-
"description": "
|
|
2444
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
2445
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
2446
|
+
}
|
|
2447
|
+
],
|
|
2448
|
+
"flags": {
|
|
2449
|
+
"allow-assets-in-different-dataset": {
|
|
2450
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
2451
|
+
"name": "allow-assets-in-different-dataset",
|
|
2452
|
+
"allowNo": false,
|
|
2453
|
+
"type": "boolean"
|
|
2491
2454
|
},
|
|
2492
|
-
{
|
|
2493
|
-
"
|
|
2494
|
-
"
|
|
2455
|
+
"allow-failing-assets": {
|
|
2456
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
2457
|
+
"name": "allow-failing-assets",
|
|
2458
|
+
"allowNo": false,
|
|
2459
|
+
"type": "boolean"
|
|
2495
2460
|
},
|
|
2496
|
-
{
|
|
2497
|
-
"
|
|
2498
|
-
"
|
|
2461
|
+
"allow-replacement-characters": {
|
|
2462
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
2463
|
+
"name": "allow-replacement-characters",
|
|
2464
|
+
"allowNo": false,
|
|
2465
|
+
"type": "boolean"
|
|
2499
2466
|
},
|
|
2500
|
-
{
|
|
2501
|
-
"
|
|
2502
|
-
"
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
"
|
|
2507
|
-
"
|
|
2508
|
-
"
|
|
2509
|
-
"helpGroup": "OVERRIDE",
|
|
2510
|
-
"name": "project-id",
|
|
2467
|
+
"allow-system-documents": {
|
|
2468
|
+
"description": "Imports system documents",
|
|
2469
|
+
"name": "allow-system-documents",
|
|
2470
|
+
"allowNo": false,
|
|
2471
|
+
"type": "boolean"
|
|
2472
|
+
},
|
|
2473
|
+
"asset-concurrency": {
|
|
2474
|
+
"description": "Number of parallel asset imports",
|
|
2475
|
+
"name": "asset-concurrency",
|
|
2511
2476
|
"hasDynamicHelp": false,
|
|
2512
|
-
"helpValue": "<id>",
|
|
2513
2477
|
"multiple": false,
|
|
2514
2478
|
"type": "option"
|
|
2515
2479
|
},
|
|
2516
|
-
"
|
|
2517
|
-
"
|
|
2518
|
-
"
|
|
2519
|
-
|
|
2520
|
-
"detach",
|
|
2521
|
-
"skip-history"
|
|
2522
|
-
],
|
|
2523
|
-
"name": "attach",
|
|
2524
|
-
"required": false,
|
|
2480
|
+
"dataset": {
|
|
2481
|
+
"char": "d",
|
|
2482
|
+
"description": "Dataset to import to",
|
|
2483
|
+
"name": "dataset",
|
|
2525
2484
|
"hasDynamicHelp": false,
|
|
2485
|
+
"helpValue": "<name>",
|
|
2526
2486
|
"multiple": false,
|
|
2527
2487
|
"type": "option"
|
|
2528
2488
|
},
|
|
2529
|
-
"
|
|
2530
|
-
"description": "
|
|
2489
|
+
"missing": {
|
|
2490
|
+
"description": "Skip documents that already exist",
|
|
2531
2491
|
"exclusive": [
|
|
2532
|
-
"
|
|
2533
|
-
"attach"
|
|
2492
|
+
"replace"
|
|
2534
2493
|
],
|
|
2535
|
-
"name": "
|
|
2536
|
-
"required": false,
|
|
2494
|
+
"name": "missing",
|
|
2537
2495
|
"allowNo": false,
|
|
2538
2496
|
"type": "boolean"
|
|
2539
2497
|
},
|
|
2540
|
-
"
|
|
2541
|
-
"
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
"
|
|
2545
|
-
"name": "limit",
|
|
2546
|
-
"required": false,
|
|
2498
|
+
"project-id": {
|
|
2499
|
+
"char": "p",
|
|
2500
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
2501
|
+
"helpGroup": "OVERRIDE",
|
|
2502
|
+
"name": "project-id",
|
|
2547
2503
|
"hasDynamicHelp": false,
|
|
2504
|
+
"helpValue": "<id>",
|
|
2548
2505
|
"multiple": false,
|
|
2549
2506
|
"type": "option"
|
|
2550
2507
|
},
|
|
2551
|
-
"
|
|
2552
|
-
"
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
"name": "list",
|
|
2559
|
-
"required": false,
|
|
2560
|
-
"allowNo": false,
|
|
2561
|
-
"type": "boolean"
|
|
2562
|
-
},
|
|
2563
|
-
"offset": {
|
|
2564
|
-
"dependsOn": [
|
|
2565
|
-
"list"
|
|
2566
|
-
],
|
|
2567
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
2568
|
-
"name": "offset",
|
|
2569
|
-
"required": false,
|
|
2508
|
+
"project": {
|
|
2509
|
+
"deprecated": {
|
|
2510
|
+
"to": "project-id"
|
|
2511
|
+
},
|
|
2512
|
+
"description": "Project ID to import to",
|
|
2513
|
+
"hidden": true,
|
|
2514
|
+
"name": "project",
|
|
2570
2515
|
"hasDynamicHelp": false,
|
|
2571
2516
|
"multiple": false,
|
|
2572
2517
|
"type": "option"
|
|
2573
2518
|
},
|
|
2574
|
-
"
|
|
2575
|
-
"description": "
|
|
2519
|
+
"replace": {
|
|
2520
|
+
"description": "Replace documents with the same IDs",
|
|
2576
2521
|
"exclusive": [
|
|
2577
|
-
"
|
|
2578
|
-
"attach"
|
|
2522
|
+
"missing"
|
|
2579
2523
|
],
|
|
2580
|
-
"name": "
|
|
2581
|
-
"required": false,
|
|
2524
|
+
"name": "replace",
|
|
2582
2525
|
"allowNo": false,
|
|
2583
2526
|
"type": "boolean"
|
|
2584
2527
|
},
|
|
2585
|
-
"
|
|
2586
|
-
"description": "
|
|
2587
|
-
"
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
"
|
|
2528
|
+
"replace-assets": {
|
|
2529
|
+
"description": "Skip reuse of existing assets",
|
|
2530
|
+
"name": "replace-assets",
|
|
2531
|
+
"allowNo": false,
|
|
2532
|
+
"type": "boolean"
|
|
2533
|
+
},
|
|
2534
|
+
"skip-cross-dataset-references": {
|
|
2535
|
+
"description": "Skips references to other datasets",
|
|
2536
|
+
"name": "skip-cross-dataset-references",
|
|
2593
2537
|
"allowNo": false,
|
|
2594
2538
|
"type": "boolean"
|
|
2539
|
+
},
|
|
2540
|
+
"token": {
|
|
2541
|
+
"char": "t",
|
|
2542
|
+
"description": "Token to authenticate with",
|
|
2543
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
2544
|
+
"name": "token",
|
|
2545
|
+
"required": false,
|
|
2546
|
+
"hasDynamicHelp": false,
|
|
2547
|
+
"multiple": false,
|
|
2548
|
+
"type": "option"
|
|
2595
2549
|
}
|
|
2596
2550
|
},
|
|
2597
2551
|
"hasDynamicHelp": false,
|
|
2598
2552
|
"hiddenAliases": [
|
|
2599
|
-
"dataset:
|
|
2553
|
+
"dataset:import"
|
|
2600
2554
|
],
|
|
2601
|
-
"id": "datasets:
|
|
2555
|
+
"id": "datasets:import",
|
|
2602
2556
|
"pluginAlias": "@sanity/cli",
|
|
2603
2557
|
"pluginName": "@sanity/cli",
|
|
2604
2558
|
"pluginType": "core",
|
|
@@ -2608,79 +2562,115 @@
|
|
|
2608
2562
|
"dist",
|
|
2609
2563
|
"commands",
|
|
2610
2564
|
"datasets",
|
|
2611
|
-
"
|
|
2565
|
+
"import.js"
|
|
2612
2566
|
]
|
|
2613
2567
|
},
|
|
2614
|
-
"datasets:
|
|
2568
|
+
"datasets:list": {
|
|
2615
2569
|
"aliases": [],
|
|
2616
|
-
"args": {
|
|
2617
|
-
|
|
2618
|
-
"description": "Name of the dataset to create",
|
|
2619
|
-
"name": "name",
|
|
2620
|
-
"required": false
|
|
2621
|
-
}
|
|
2622
|
-
},
|
|
2623
|
-
"description": "Create a new dataset for the project",
|
|
2570
|
+
"args": {},
|
|
2571
|
+
"description": "List datasets for the project",
|
|
2624
2572
|
"examples": [
|
|
2625
2573
|
{
|
|
2626
2574
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2627
|
-
"description": "
|
|
2628
|
-
},
|
|
2629
|
-
{
|
|
2630
|
-
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2631
|
-
"description": "Create a dataset named \"my-dataset\""
|
|
2575
|
+
"description": "List datasets for the project"
|
|
2632
2576
|
},
|
|
2633
2577
|
{
|
|
2634
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2635
|
-
"description": "
|
|
2578
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2579
|
+
"description": "List datasets for a specific project"
|
|
2636
2580
|
}
|
|
2637
2581
|
],
|
|
2638
2582
|
"flags": {
|
|
2639
2583
|
"project-id": {
|
|
2640
2584
|
"char": "p",
|
|
2641
|
-
"description": "Project ID to
|
|
2585
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
2642
2586
|
"helpGroup": "OVERRIDE",
|
|
2643
2587
|
"name": "project-id",
|
|
2644
2588
|
"hasDynamicHelp": false,
|
|
2645
2589
|
"helpValue": "<id>",
|
|
2646
2590
|
"multiple": false,
|
|
2647
2591
|
"type": "option"
|
|
2648
|
-
},
|
|
2649
|
-
"embeddings": {
|
|
2650
|
-
"description": "Enable embeddings for this dataset",
|
|
2651
|
-
"name": "embeddings",
|
|
2652
|
-
"allowNo": false,
|
|
2653
|
-
"type": "boolean"
|
|
2654
|
-
},
|
|
2655
|
-
"embeddings-projection": {
|
|
2656
|
-
"dependsOn": [
|
|
2657
|
-
"embeddings"
|
|
2658
|
-
],
|
|
2659
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2660
|
-
"name": "embeddings-projection",
|
|
2661
|
-
"hasDynamicHelp": false,
|
|
2662
|
-
"multiple": false,
|
|
2663
|
-
"type": "option"
|
|
2664
|
-
},
|
|
2665
|
-
"visibility": {
|
|
2666
|
-
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2667
|
-
"name": "visibility",
|
|
2668
|
-
"required": false,
|
|
2669
|
-
"hasDynamicHelp": false,
|
|
2670
|
-
"multiple": false,
|
|
2671
|
-
"options": [
|
|
2672
|
-
"custom",
|
|
2673
|
-
"private",
|
|
2674
|
-
"public"
|
|
2675
|
-
],
|
|
2676
|
-
"type": "option"
|
|
2677
2592
|
}
|
|
2678
2593
|
},
|
|
2679
2594
|
"hasDynamicHelp": false,
|
|
2680
2595
|
"hiddenAliases": [
|
|
2681
|
-
"dataset:
|
|
2596
|
+
"dataset:list"
|
|
2682
2597
|
],
|
|
2683
|
-
"id": "datasets:
|
|
2598
|
+
"id": "datasets:list",
|
|
2599
|
+
"pluginAlias": "@sanity/cli",
|
|
2600
|
+
"pluginName": "@sanity/cli",
|
|
2601
|
+
"pluginType": "core",
|
|
2602
|
+
"strict": true,
|
|
2603
|
+
"isESM": true,
|
|
2604
|
+
"relativePath": [
|
|
2605
|
+
"dist",
|
|
2606
|
+
"commands",
|
|
2607
|
+
"datasets",
|
|
2608
|
+
"list.js"
|
|
2609
|
+
]
|
|
2610
|
+
},
|
|
2611
|
+
"docs:browse": {
|
|
2612
|
+
"aliases": [],
|
|
2613
|
+
"args": {},
|
|
2614
|
+
"description": "Open Sanity docs in your browser",
|
|
2615
|
+
"flags": {},
|
|
2616
|
+
"hasDynamicHelp": false,
|
|
2617
|
+
"hiddenAliases": [],
|
|
2618
|
+
"id": "docs:browse",
|
|
2619
|
+
"pluginAlias": "@sanity/cli",
|
|
2620
|
+
"pluginName": "@sanity/cli",
|
|
2621
|
+
"pluginType": "core",
|
|
2622
|
+
"strict": true,
|
|
2623
|
+
"enableJsonFlag": false,
|
|
2624
|
+
"isESM": true,
|
|
2625
|
+
"relativePath": [
|
|
2626
|
+
"dist",
|
|
2627
|
+
"commands",
|
|
2628
|
+
"docs",
|
|
2629
|
+
"browse.js"
|
|
2630
|
+
]
|
|
2631
|
+
},
|
|
2632
|
+
"docs:read": {
|
|
2633
|
+
"aliases": [],
|
|
2634
|
+
"args": {
|
|
2635
|
+
"path": {
|
|
2636
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
2637
|
+
"name": "path",
|
|
2638
|
+
"required": true
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2641
|
+
"description": "Read an article in terminal",
|
|
2642
|
+
"examples": [
|
|
2643
|
+
{
|
|
2644
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
2645
|
+
"description": "Read as markdown in terminal"
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2649
|
+
"description": "Read using full URL"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
2653
|
+
"description": "Open in web browser"
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
2657
|
+
"description": "Open using full URL in web browser"
|
|
2658
|
+
}
|
|
2659
|
+
],
|
|
2660
|
+
"flags": {
|
|
2661
|
+
"web": {
|
|
2662
|
+
"aliases": [
|
|
2663
|
+
"w"
|
|
2664
|
+
],
|
|
2665
|
+
"description": "Open in a web browser",
|
|
2666
|
+
"name": "web",
|
|
2667
|
+
"allowNo": false,
|
|
2668
|
+
"type": "boolean"
|
|
2669
|
+
}
|
|
2670
|
+
},
|
|
2671
|
+
"hasDynamicHelp": false,
|
|
2672
|
+
"hiddenAliases": [],
|
|
2673
|
+
"id": "docs:read",
|
|
2684
2674
|
"pluginAlias": "@sanity/cli",
|
|
2685
2675
|
"pluginName": "@sanity/cli",
|
|
2686
2676
|
"pluginType": "core",
|
|
@@ -2689,53 +2679,47 @@
|
|
|
2689
2679
|
"relativePath": [
|
|
2690
2680
|
"dist",
|
|
2691
2681
|
"commands",
|
|
2692
|
-
"
|
|
2693
|
-
"
|
|
2682
|
+
"docs",
|
|
2683
|
+
"read.js"
|
|
2694
2684
|
]
|
|
2695
2685
|
},
|
|
2696
|
-
"
|
|
2686
|
+
"docs:search": {
|
|
2697
2687
|
"aliases": [],
|
|
2698
2688
|
"args": {
|
|
2699
|
-
"
|
|
2700
|
-
"description": "
|
|
2701
|
-
"name": "
|
|
2689
|
+
"query": {
|
|
2690
|
+
"description": "Search query for documentation",
|
|
2691
|
+
"name": "query",
|
|
2702
2692
|
"required": true
|
|
2703
2693
|
}
|
|
2704
2694
|
},
|
|
2705
|
-
"description": "
|
|
2695
|
+
"description": "Search Sanity docs",
|
|
2706
2696
|
"examples": [
|
|
2707
2697
|
{
|
|
2708
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2709
|
-
"description": "
|
|
2698
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2699
|
+
"description": "Search for documentation about schemas"
|
|
2710
2700
|
},
|
|
2711
2701
|
{
|
|
2712
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2713
|
-
"description": "
|
|
2702
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2703
|
+
"description": "Search with phrase"
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2707
|
+
"description": "Limit search results"
|
|
2714
2708
|
}
|
|
2715
2709
|
],
|
|
2716
2710
|
"flags": {
|
|
2717
|
-
"
|
|
2718
|
-
"
|
|
2719
|
-
"
|
|
2720
|
-
"
|
|
2721
|
-
"name": "project-id",
|
|
2711
|
+
"limit": {
|
|
2712
|
+
"description": "Maximum number of results to return",
|
|
2713
|
+
"name": "limit",
|
|
2714
|
+
"default": 10,
|
|
2722
2715
|
"hasDynamicHelp": false,
|
|
2723
|
-
"helpValue": "<id>",
|
|
2724
2716
|
"multiple": false,
|
|
2725
2717
|
"type": "option"
|
|
2726
|
-
},
|
|
2727
|
-
"force": {
|
|
2728
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2729
|
-
"name": "force",
|
|
2730
|
-
"allowNo": false,
|
|
2731
|
-
"type": "boolean"
|
|
2732
2718
|
}
|
|
2733
2719
|
},
|
|
2734
2720
|
"hasDynamicHelp": false,
|
|
2735
|
-
"hiddenAliases": [
|
|
2736
|
-
|
|
2737
|
-
],
|
|
2738
|
-
"id": "datasets:delete",
|
|
2721
|
+
"hiddenAliases": [],
|
|
2722
|
+
"id": "docs:search",
|
|
2739
2723
|
"pluginAlias": "@sanity/cli",
|
|
2740
2724
|
"pluginName": "@sanity/cli",
|
|
2741
2725
|
"pluginType": "core",
|
|
@@ -2744,125 +2728,168 @@
|
|
|
2744
2728
|
"relativePath": [
|
|
2745
2729
|
"dist",
|
|
2746
2730
|
"commands",
|
|
2747
|
-
"
|
|
2748
|
-
"
|
|
2731
|
+
"docs",
|
|
2732
|
+
"search.js"
|
|
2749
2733
|
]
|
|
2750
2734
|
},
|
|
2751
|
-
"
|
|
2735
|
+
"context:build": {
|
|
2752
2736
|
"aliases": [],
|
|
2753
2737
|
"args": {
|
|
2754
|
-
"
|
|
2755
|
-
"description": "
|
|
2756
|
-
"name": "
|
|
2757
|
-
|
|
2758
|
-
"destination": {
|
|
2759
|
-
"description": "Output destination file path",
|
|
2760
|
-
"name": "destination"
|
|
2738
|
+
"knowledgeBaseId": {
|
|
2739
|
+
"description": "Knowledge base ID",
|
|
2740
|
+
"name": "knowledgeBaseId",
|
|
2741
|
+
"required": true
|
|
2761
2742
|
}
|
|
2762
2743
|
},
|
|
2763
|
-
"description": "
|
|
2744
|
+
"description": "Build a knowledge base from its imported content",
|
|
2764
2745
|
"examples": [
|
|
2765
2746
|
{
|
|
2766
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2767
|
-
"description": "
|
|
2747
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2748
|
+
"description": "Start a build and return the job ID"
|
|
2768
2749
|
},
|
|
2769
2750
|
{
|
|
2770
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2771
|
-
"description": "
|
|
2751
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --watch",
|
|
2752
|
+
"description": "Start a build and wait for it to finish (non-zero exit on failure)"
|
|
2772
2753
|
},
|
|
2773
2754
|
{
|
|
2774
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2775
|
-
"description": "
|
|
2755
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --cancel",
|
|
2756
|
+
"description": "Cancel the running build, if any"
|
|
2757
|
+
}
|
|
2758
|
+
],
|
|
2759
|
+
"flags": {
|
|
2760
|
+
"cancel": {
|
|
2761
|
+
"description": "Cancel the running build instead of starting one",
|
|
2762
|
+
"exclusive": [
|
|
2763
|
+
"watch"
|
|
2764
|
+
],
|
|
2765
|
+
"name": "cancel",
|
|
2766
|
+
"allowNo": false,
|
|
2767
|
+
"type": "boolean"
|
|
2776
2768
|
},
|
|
2769
|
+
"watch": {
|
|
2770
|
+
"description": "Wait for the build to finish, exiting non-zero if it fails",
|
|
2771
|
+
"name": "watch",
|
|
2772
|
+
"allowNo": false,
|
|
2773
|
+
"type": "boolean"
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
"hasDynamicHelp": false,
|
|
2777
|
+
"hiddenAliases": [],
|
|
2778
|
+
"id": "context:build",
|
|
2779
|
+
"pluginAlias": "@sanity/cli",
|
|
2780
|
+
"pluginName": "@sanity/cli",
|
|
2781
|
+
"pluginType": "core",
|
|
2782
|
+
"strict": true,
|
|
2783
|
+
"isESM": true,
|
|
2784
|
+
"relativePath": [
|
|
2785
|
+
"dist",
|
|
2786
|
+
"commands",
|
|
2787
|
+
"context",
|
|
2788
|
+
"build.js"
|
|
2789
|
+
]
|
|
2790
|
+
},
|
|
2791
|
+
"context:create": {
|
|
2792
|
+
"aliases": [],
|
|
2793
|
+
"args": {},
|
|
2794
|
+
"description": "Create a knowledge base",
|
|
2795
|
+
"examples": [
|
|
2777
2796
|
{
|
|
2778
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2779
|
-
"description": "
|
|
2797
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2798
|
+
"description": "Interactively create a knowledge base"
|
|
2780
2799
|
},
|
|
2781
2800
|
{
|
|
2782
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2783
|
-
"description": "
|
|
2801
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --title \"Support docs\" --description \"Product docs and troubleshooting guides\"",
|
|
2802
|
+
"description": "Create a knowledge base in a specific organization"
|
|
2784
2803
|
}
|
|
2785
2804
|
],
|
|
2786
2805
|
"flags": {
|
|
2787
|
-
"
|
|
2788
|
-
"
|
|
2789
|
-
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
2806
|
+
"organization": {
|
|
2807
|
+
"description": "Organization to create the knowledge base in (overrides CLI configuration)",
|
|
2790
2808
|
"helpGroup": "OVERRIDE",
|
|
2791
|
-
"name": "
|
|
2809
|
+
"name": "organization",
|
|
2792
2810
|
"hasDynamicHelp": false,
|
|
2793
2811
|
"helpValue": "<id>",
|
|
2794
2812
|
"multiple": false,
|
|
2795
2813
|
"type": "option"
|
|
2796
2814
|
},
|
|
2797
|
-
"
|
|
2798
|
-
"description": "
|
|
2799
|
-
"name": "
|
|
2800
|
-
"default": 8,
|
|
2815
|
+
"description": {
|
|
2816
|
+
"description": "Knowledge base description",
|
|
2817
|
+
"name": "description",
|
|
2801
2818
|
"hasDynamicHelp": false,
|
|
2802
2819
|
"multiple": false,
|
|
2803
2820
|
"type": "option"
|
|
2804
2821
|
},
|
|
2805
|
-
"
|
|
2806
|
-
"description": "
|
|
2807
|
-
"name": "
|
|
2808
|
-
"default": "stream",
|
|
2822
|
+
"title": {
|
|
2823
|
+
"description": "Knowledge base title",
|
|
2824
|
+
"name": "title",
|
|
2809
2825
|
"hasDynamicHelp": false,
|
|
2810
2826
|
"multiple": false,
|
|
2811
|
-
"options": [
|
|
2812
|
-
"stream",
|
|
2813
|
-
"cursor"
|
|
2814
|
-
],
|
|
2815
2827
|
"type": "option"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"hasDynamicHelp": false,
|
|
2831
|
+
"hiddenAliases": [],
|
|
2832
|
+
"id": "context:create",
|
|
2833
|
+
"pluginAlias": "@sanity/cli",
|
|
2834
|
+
"pluginName": "@sanity/cli",
|
|
2835
|
+
"pluginType": "core",
|
|
2836
|
+
"strict": true,
|
|
2837
|
+
"telemetry": {
|
|
2838
|
+
"redactedFlags": [
|
|
2839
|
+
{
|
|
2840
|
+
"canonical": "--title",
|
|
2841
|
+
"flags": [
|
|
2842
|
+
"--title"
|
|
2843
|
+
]
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
"canonical": "--description",
|
|
2847
|
+
"flags": [
|
|
2848
|
+
"--description"
|
|
2849
|
+
]
|
|
2850
|
+
}
|
|
2851
|
+
]
|
|
2852
|
+
},
|
|
2853
|
+
"isESM": true,
|
|
2854
|
+
"relativePath": [
|
|
2855
|
+
"dist",
|
|
2856
|
+
"commands",
|
|
2857
|
+
"context",
|
|
2858
|
+
"create.js"
|
|
2859
|
+
]
|
|
2860
|
+
},
|
|
2861
|
+
"context:delete": {
|
|
2862
|
+
"aliases": [],
|
|
2863
|
+
"args": {
|
|
2864
|
+
"knowledgeBaseId": {
|
|
2865
|
+
"description": "Knowledge base ID",
|
|
2866
|
+
"name": "knowledgeBaseId",
|
|
2867
|
+
"required": true
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"description": "Delete a knowledge base and its generated content",
|
|
2871
|
+
"examples": [
|
|
2872
|
+
{
|
|
2873
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2874
|
+
"description": "Delete a knowledge base after confirmation"
|
|
2816
2875
|
},
|
|
2817
|
-
|
|
2818
|
-
"
|
|
2819
|
-
"
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
"
|
|
2824
|
-
"
|
|
2825
|
-
"
|
|
2826
|
-
"
|
|
2827
|
-
"type": "boolean"
|
|
2828
|
-
},
|
|
2829
|
-
"no-drafts": {
|
|
2830
|
-
"description": "Export only published versions of documents",
|
|
2831
|
-
"name": "no-drafts",
|
|
2832
|
-
"allowNo": false,
|
|
2833
|
-
"type": "boolean"
|
|
2834
|
-
},
|
|
2835
|
-
"no-strict-asset-verification": {
|
|
2836
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2837
|
-
"name": "no-strict-asset-verification",
|
|
2838
|
-
"allowNo": false,
|
|
2839
|
-
"type": "boolean"
|
|
2840
|
-
},
|
|
2841
|
-
"overwrite": {
|
|
2842
|
-
"description": "Overwrite any file with the same name",
|
|
2843
|
-
"name": "overwrite",
|
|
2844
|
-
"allowNo": false,
|
|
2845
|
-
"type": "boolean"
|
|
2846
|
-
},
|
|
2847
|
-
"raw": {
|
|
2848
|
-
"description": "Extract only documents, without rewriting asset references",
|
|
2849
|
-
"name": "raw",
|
|
2876
|
+
{
|
|
2877
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --yes",
|
|
2878
|
+
"description": "Delete a knowledge base without confirmation prompt"
|
|
2879
|
+
}
|
|
2880
|
+
],
|
|
2881
|
+
"flags": {
|
|
2882
|
+
"yes": {
|
|
2883
|
+
"char": "y",
|
|
2884
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
2885
|
+
"name": "yes",
|
|
2850
2886
|
"allowNo": false,
|
|
2851
2887
|
"type": "boolean"
|
|
2852
|
-
},
|
|
2853
|
-
"types": {
|
|
2854
|
-
"description": "Defines which document types to export (comma-separated)",
|
|
2855
|
-
"name": "types",
|
|
2856
|
-
"hasDynamicHelp": false,
|
|
2857
|
-
"multiple": false,
|
|
2858
|
-
"type": "option"
|
|
2859
2888
|
}
|
|
2860
2889
|
},
|
|
2861
|
-
"hasDynamicHelp": false,
|
|
2862
|
-
"hiddenAliases": [
|
|
2863
|
-
|
|
2864
|
-
],
|
|
2865
|
-
"id": "datasets:export",
|
|
2890
|
+
"hasDynamicHelp": false,
|
|
2891
|
+
"hiddenAliases": [],
|
|
2892
|
+
"id": "context:delete",
|
|
2866
2893
|
"pluginAlias": "@sanity/cli",
|
|
2867
2894
|
"pluginName": "@sanity/cli",
|
|
2868
2895
|
"pluginType": "core",
|
|
@@ -2871,183 +2898,85 @@
|
|
|
2871
2898
|
"relativePath": [
|
|
2872
2899
|
"dist",
|
|
2873
2900
|
"commands",
|
|
2874
|
-
"
|
|
2875
|
-
"
|
|
2901
|
+
"context",
|
|
2902
|
+
"delete.js"
|
|
2876
2903
|
]
|
|
2877
2904
|
},
|
|
2878
|
-
"
|
|
2905
|
+
"context:get": {
|
|
2879
2906
|
"aliases": [],
|
|
2880
2907
|
"args": {
|
|
2881
|
-
"
|
|
2882
|
-
"description": "
|
|
2883
|
-
"name": "
|
|
2908
|
+
"knowledgeBaseId": {
|
|
2909
|
+
"description": "Knowledge base ID",
|
|
2910
|
+
"name": "knowledgeBaseId",
|
|
2884
2911
|
"required": true
|
|
2885
|
-
},
|
|
2886
|
-
"targetDataset": {
|
|
2887
|
-
"description": "Target dataset (prefer --dataset flag instead)",
|
|
2888
|
-
"name": "targetDataset",
|
|
2889
|
-
"required": false
|
|
2890
2912
|
}
|
|
2891
2913
|
},
|
|
2892
|
-
"description": "
|
|
2914
|
+
"description": "Get details of a knowledge base",
|
|
2893
2915
|
"examples": [
|
|
2894
2916
|
{
|
|
2895
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2896
|
-
"description": "
|
|
2897
|
-
},
|
|
2898
|
-
{
|
|
2899
|
-
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
2900
|
-
"description": "Import into dataset \"test\" from stdin"
|
|
2901
|
-
},
|
|
2902
|
-
{
|
|
2903
|
-
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
2904
|
-
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
2917
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2918
|
+
"description": "Get details of a specific knowledge base"
|
|
2905
2919
|
},
|
|
2906
2920
|
{
|
|
2907
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2908
|
-
"description": "
|
|
2921
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
2922
|
+
"description": "Output the knowledge base as JSON"
|
|
2909
2923
|
}
|
|
2910
2924
|
],
|
|
2911
2925
|
"flags": {
|
|
2912
|
-
"
|
|
2913
|
-
"description": "
|
|
2914
|
-
"
|
|
2915
|
-
"
|
|
2916
|
-
"type": "boolean"
|
|
2917
|
-
},
|
|
2918
|
-
"allow-failing-assets": {
|
|
2919
|
-
"description": "Skip assets that cannot be fetched/uploaded",
|
|
2920
|
-
"name": "allow-failing-assets",
|
|
2921
|
-
"allowNo": false,
|
|
2922
|
-
"type": "boolean"
|
|
2923
|
-
},
|
|
2924
|
-
"allow-replacement-characters": {
|
|
2925
|
-
"description": "Allow unicode replacement characters in imported documents",
|
|
2926
|
-
"name": "allow-replacement-characters",
|
|
2927
|
-
"allowNo": false,
|
|
2928
|
-
"type": "boolean"
|
|
2929
|
-
},
|
|
2930
|
-
"allow-system-documents": {
|
|
2931
|
-
"description": "Imports system documents",
|
|
2932
|
-
"name": "allow-system-documents",
|
|
2933
|
-
"allowNo": false,
|
|
2934
|
-
"type": "boolean"
|
|
2935
|
-
},
|
|
2936
|
-
"asset-concurrency": {
|
|
2937
|
-
"description": "Number of parallel asset imports",
|
|
2938
|
-
"name": "asset-concurrency",
|
|
2939
|
-
"hasDynamicHelp": false,
|
|
2940
|
-
"multiple": false,
|
|
2941
|
-
"type": "option"
|
|
2942
|
-
},
|
|
2943
|
-
"dataset": {
|
|
2944
|
-
"char": "d",
|
|
2945
|
-
"description": "Dataset to import to",
|
|
2946
|
-
"name": "dataset",
|
|
2947
|
-
"hasDynamicHelp": false,
|
|
2948
|
-
"helpValue": "<name>",
|
|
2949
|
-
"multiple": false,
|
|
2950
|
-
"type": "option"
|
|
2951
|
-
},
|
|
2952
|
-
"missing": {
|
|
2953
|
-
"description": "Skip documents that already exist",
|
|
2954
|
-
"exclusive": [
|
|
2955
|
-
"replace"
|
|
2956
|
-
],
|
|
2957
|
-
"name": "missing",
|
|
2958
|
-
"allowNo": false,
|
|
2959
|
-
"type": "boolean"
|
|
2960
|
-
},
|
|
2961
|
-
"project-id": {
|
|
2962
|
-
"char": "p",
|
|
2963
|
-
"description": "Project ID to import to (overrides CLI configuration)",
|
|
2964
|
-
"helpGroup": "OVERRIDE",
|
|
2965
|
-
"name": "project-id",
|
|
2966
|
-
"hasDynamicHelp": false,
|
|
2967
|
-
"helpValue": "<id>",
|
|
2968
|
-
"multiple": false,
|
|
2969
|
-
"type": "option"
|
|
2970
|
-
},
|
|
2971
|
-
"project": {
|
|
2972
|
-
"deprecated": {
|
|
2973
|
-
"to": "project-id"
|
|
2974
|
-
},
|
|
2975
|
-
"description": "Project ID to import to",
|
|
2976
|
-
"hidden": true,
|
|
2977
|
-
"name": "project",
|
|
2978
|
-
"hasDynamicHelp": false,
|
|
2979
|
-
"multiple": false,
|
|
2980
|
-
"type": "option"
|
|
2981
|
-
},
|
|
2982
|
-
"replace": {
|
|
2983
|
-
"description": "Replace documents with the same IDs",
|
|
2984
|
-
"exclusive": [
|
|
2985
|
-
"missing"
|
|
2986
|
-
],
|
|
2987
|
-
"name": "replace",
|
|
2988
|
-
"allowNo": false,
|
|
2989
|
-
"type": "boolean"
|
|
2990
|
-
},
|
|
2991
|
-
"replace-assets": {
|
|
2992
|
-
"description": "Skip reuse of existing assets",
|
|
2993
|
-
"name": "replace-assets",
|
|
2994
|
-
"allowNo": false,
|
|
2995
|
-
"type": "boolean"
|
|
2996
|
-
},
|
|
2997
|
-
"skip-cross-dataset-references": {
|
|
2998
|
-
"description": "Skips references to other datasets",
|
|
2999
|
-
"name": "skip-cross-dataset-references",
|
|
2926
|
+
"json": {
|
|
2927
|
+
"description": "Format output as json.",
|
|
2928
|
+
"helpGroup": "GLOBAL",
|
|
2929
|
+
"name": "json",
|
|
3000
2930
|
"allowNo": false,
|
|
3001
2931
|
"type": "boolean"
|
|
3002
|
-
},
|
|
3003
|
-
"token": {
|
|
3004
|
-
"char": "t",
|
|
3005
|
-
"description": "Token to authenticate with",
|
|
3006
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
3007
|
-
"name": "token",
|
|
3008
|
-
"required": false,
|
|
3009
|
-
"hasDynamicHelp": false,
|
|
3010
|
-
"multiple": false,
|
|
3011
|
-
"type": "option"
|
|
3012
2932
|
}
|
|
3013
2933
|
},
|
|
3014
2934
|
"hasDynamicHelp": false,
|
|
3015
|
-
"hiddenAliases": [
|
|
3016
|
-
|
|
3017
|
-
],
|
|
3018
|
-
"id": "datasets:import",
|
|
2935
|
+
"hiddenAliases": [],
|
|
2936
|
+
"id": "context:get",
|
|
3019
2937
|
"pluginAlias": "@sanity/cli",
|
|
3020
2938
|
"pluginName": "@sanity/cli",
|
|
3021
2939
|
"pluginType": "core",
|
|
3022
2940
|
"strict": true,
|
|
2941
|
+
"enableJsonFlag": true,
|
|
3023
2942
|
"isESM": true,
|
|
3024
2943
|
"relativePath": [
|
|
3025
2944
|
"dist",
|
|
3026
2945
|
"commands",
|
|
3027
|
-
"
|
|
3028
|
-
"
|
|
2946
|
+
"context",
|
|
2947
|
+
"get.js"
|
|
3029
2948
|
]
|
|
3030
2949
|
},
|
|
3031
|
-
"
|
|
2950
|
+
"context:list": {
|
|
3032
2951
|
"aliases": [],
|
|
3033
2952
|
"args": {},
|
|
3034
|
-
"description": "List
|
|
2953
|
+
"description": "List knowledge bases in an organization",
|
|
3035
2954
|
"examples": [
|
|
3036
2955
|
{
|
|
3037
2956
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3038
|
-
"description": "List
|
|
2957
|
+
"description": "List knowledge bases, selecting the organization interactively"
|
|
3039
2958
|
},
|
|
3040
2959
|
{
|
|
3041
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3042
|
-
"description": "List
|
|
2960
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123",
|
|
2961
|
+
"description": "List knowledge bases in a specific organization"
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
|
|
2965
|
+
"description": "Output knowledge bases as JSON"
|
|
3043
2966
|
}
|
|
3044
2967
|
],
|
|
3045
2968
|
"flags": {
|
|
3046
|
-
"
|
|
3047
|
-
"
|
|
3048
|
-
"
|
|
2969
|
+
"json": {
|
|
2970
|
+
"description": "Format output as json.",
|
|
2971
|
+
"helpGroup": "GLOBAL",
|
|
2972
|
+
"name": "json",
|
|
2973
|
+
"allowNo": false,
|
|
2974
|
+
"type": "boolean"
|
|
2975
|
+
},
|
|
2976
|
+
"organization": {
|
|
2977
|
+
"description": "Organization to list knowledge bases for (overrides CLI configuration)",
|
|
3049
2978
|
"helpGroup": "OVERRIDE",
|
|
3050
|
-
"name": "
|
|
2979
|
+
"name": "organization",
|
|
3051
2980
|
"hasDynamicHelp": false,
|
|
3052
2981
|
"helpValue": "<id>",
|
|
3053
2982
|
"multiple": false,
|
|
@@ -3055,85 +2984,113 @@
|
|
|
3055
2984
|
}
|
|
3056
2985
|
},
|
|
3057
2986
|
"hasDynamicHelp": false,
|
|
3058
|
-
"hiddenAliases": [
|
|
3059
|
-
|
|
3060
|
-
],
|
|
3061
|
-
"id": "datasets:list",
|
|
2987
|
+
"hiddenAliases": [],
|
|
2988
|
+
"id": "context:list",
|
|
3062
2989
|
"pluginAlias": "@sanity/cli",
|
|
3063
2990
|
"pluginName": "@sanity/cli",
|
|
3064
2991
|
"pluginType": "core",
|
|
3065
2992
|
"strict": true,
|
|
2993
|
+
"enableJsonFlag": true,
|
|
3066
2994
|
"isESM": true,
|
|
3067
2995
|
"relativePath": [
|
|
3068
2996
|
"dist",
|
|
3069
2997
|
"commands",
|
|
3070
|
-
"
|
|
2998
|
+
"context",
|
|
3071
2999
|
"list.js"
|
|
3072
3000
|
]
|
|
3073
3001
|
},
|
|
3074
|
-
"
|
|
3002
|
+
"context:query": {
|
|
3075
3003
|
"aliases": [],
|
|
3076
|
-
"args": {
|
|
3077
|
-
|
|
3078
|
-
|
|
3004
|
+
"args": {
|
|
3005
|
+
"query": {
|
|
3006
|
+
"description": "GROQ query to run against the organization's Context documents",
|
|
3007
|
+
"name": "query",
|
|
3008
|
+
"required": true
|
|
3009
|
+
}
|
|
3010
|
+
},
|
|
3011
|
+
"description": "Query an organization's Context documents with GROQ",
|
|
3012
|
+
"examples": [
|
|
3013
|
+
{
|
|
3014
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"sanity.context.issue\" && status == \"open\"]{_id, knowledgeBaseId}'",
|
|
3015
|
+
"description": "List open issues across all knowledge bases"
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"sanity.context.entry\" && knowledgeBaseId == $kb].path' --params '{\"kb\": \"kb-abc123\"}' --json",
|
|
3019
|
+
"description": "List the entry paths of one knowledge base as plain JSON"
|
|
3020
|
+
}
|
|
3021
|
+
],
|
|
3022
|
+
"flags": {
|
|
3023
|
+
"json": {
|
|
3024
|
+
"description": "Format output as json.",
|
|
3025
|
+
"helpGroup": "GLOBAL",
|
|
3026
|
+
"name": "json",
|
|
3027
|
+
"allowNo": false,
|
|
3028
|
+
"type": "boolean"
|
|
3029
|
+
},
|
|
3030
|
+
"organization": {
|
|
3031
|
+
"description": "Organization to query (overrides CLI configuration)",
|
|
3032
|
+
"helpGroup": "OVERRIDE",
|
|
3033
|
+
"name": "organization",
|
|
3034
|
+
"hasDynamicHelp": false,
|
|
3035
|
+
"helpValue": "<id>",
|
|
3036
|
+
"multiple": false,
|
|
3037
|
+
"type": "option"
|
|
3038
|
+
},
|
|
3039
|
+
"params": {
|
|
3040
|
+
"description": "Query parameters as a JSON object",
|
|
3041
|
+
"name": "params",
|
|
3042
|
+
"hasDynamicHelp": false,
|
|
3043
|
+
"helpValue": "<json>",
|
|
3044
|
+
"multiple": false,
|
|
3045
|
+
"type": "option"
|
|
3046
|
+
}
|
|
3047
|
+
},
|
|
3079
3048
|
"hasDynamicHelp": false,
|
|
3080
3049
|
"hiddenAliases": [],
|
|
3081
|
-
"id": "
|
|
3050
|
+
"id": "context:query",
|
|
3082
3051
|
"pluginAlias": "@sanity/cli",
|
|
3083
3052
|
"pluginName": "@sanity/cli",
|
|
3084
3053
|
"pluginType": "core",
|
|
3085
3054
|
"strict": true,
|
|
3086
|
-
"enableJsonFlag":
|
|
3055
|
+
"enableJsonFlag": true,
|
|
3056
|
+
"telemetry": {
|
|
3057
|
+
"redactedFlags": [
|
|
3058
|
+
{
|
|
3059
|
+
"canonical": "--params",
|
|
3060
|
+
"flags": [
|
|
3061
|
+
"--params"
|
|
3062
|
+
]
|
|
3063
|
+
}
|
|
3064
|
+
]
|
|
3065
|
+
},
|
|
3087
3066
|
"isESM": true,
|
|
3088
3067
|
"relativePath": [
|
|
3089
3068
|
"dist",
|
|
3090
3069
|
"commands",
|
|
3091
|
-
"
|
|
3092
|
-
"
|
|
3070
|
+
"context",
|
|
3071
|
+
"query.js"
|
|
3093
3072
|
]
|
|
3094
3073
|
},
|
|
3095
|
-
"
|
|
3074
|
+
"context:refresh": {
|
|
3096
3075
|
"aliases": [],
|
|
3097
3076
|
"args": {
|
|
3098
|
-
"
|
|
3099
|
-
"description": "
|
|
3100
|
-
"name": "
|
|
3077
|
+
"knowledgeBaseId": {
|
|
3078
|
+
"description": "Knowledge base ID",
|
|
3079
|
+
"name": "knowledgeBaseId",
|
|
3101
3080
|
"required": true
|
|
3102
3081
|
}
|
|
3103
3082
|
},
|
|
3104
|
-
"description": "
|
|
3083
|
+
"description": "Refresh a knowledge base: re-check sources and apply what changed",
|
|
3105
3084
|
"examples": [
|
|
3106
3085
|
{
|
|
3107
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3108
|
-
"description": "
|
|
3109
|
-
},
|
|
3110
|
-
{
|
|
3111
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3112
|
-
"description": "Read using full URL"
|
|
3113
|
-
},
|
|
3114
|
-
{
|
|
3115
|
-
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3116
|
-
"description": "Open in web browser"
|
|
3117
|
-
},
|
|
3118
|
-
{
|
|
3119
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3120
|
-
"description": "Open using full URL in web browser"
|
|
3086
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
3087
|
+
"description": "Start an incremental refresh"
|
|
3121
3088
|
}
|
|
3122
3089
|
],
|
|
3123
|
-
"flags": {
|
|
3124
|
-
"web": {
|
|
3125
|
-
"aliases": [
|
|
3126
|
-
"w"
|
|
3127
|
-
],
|
|
3128
|
-
"description": "Open in a web browser",
|
|
3129
|
-
"name": "web",
|
|
3130
|
-
"allowNo": false,
|
|
3131
|
-
"type": "boolean"
|
|
3132
|
-
}
|
|
3133
|
-
},
|
|
3090
|
+
"flags": {},
|
|
3134
3091
|
"hasDynamicHelp": false,
|
|
3135
3092
|
"hiddenAliases": [],
|
|
3136
|
-
"id": "
|
|
3093
|
+
"id": "context:refresh",
|
|
3137
3094
|
"pluginAlias": "@sanity/cli",
|
|
3138
3095
|
"pluginName": "@sanity/cli",
|
|
3139
3096
|
"pluginType": "core",
|
|
@@ -3142,39 +3099,66 @@
|
|
|
3142
3099
|
"relativePath": [
|
|
3143
3100
|
"dist",
|
|
3144
3101
|
"commands",
|
|
3145
|
-
"
|
|
3146
|
-
"
|
|
3102
|
+
"context",
|
|
3103
|
+
"refresh.js"
|
|
3147
3104
|
]
|
|
3148
3105
|
},
|
|
3149
|
-
"
|
|
3106
|
+
"context:update": {
|
|
3150
3107
|
"aliases": [],
|
|
3151
3108
|
"args": {
|
|
3152
|
-
"
|
|
3153
|
-
"description": "
|
|
3154
|
-
"name": "
|
|
3109
|
+
"knowledgeBaseId": {
|
|
3110
|
+
"description": "Knowledge base ID",
|
|
3111
|
+
"name": "knowledgeBaseId",
|
|
3155
3112
|
"required": true
|
|
3156
3113
|
}
|
|
3157
3114
|
},
|
|
3158
|
-
"description": "
|
|
3115
|
+
"description": "Update a knowledge base",
|
|
3159
3116
|
"examples": [
|
|
3160
3117
|
{
|
|
3161
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3162
|
-
"description": "
|
|
3118
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --title \"New title\"",
|
|
3119
|
+
"description": "Rename a knowledge base"
|
|
3163
3120
|
},
|
|
3164
3121
|
{
|
|
3165
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3166
|
-
"description": "
|
|
3122
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --refresh-enabled --refresh-frequency weekly",
|
|
3123
|
+
"description": "Enable weekly scheduled refresh"
|
|
3167
3124
|
},
|
|
3168
3125
|
{
|
|
3169
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3170
|
-
"description": "
|
|
3126
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --no-refresh-enabled",
|
|
3127
|
+
"description": "Disable scheduled refresh"
|
|
3171
3128
|
}
|
|
3172
3129
|
],
|
|
3173
3130
|
"flags": {
|
|
3174
|
-
"
|
|
3175
|
-
"description": "
|
|
3176
|
-
"name": "
|
|
3177
|
-
"
|
|
3131
|
+
"description": {
|
|
3132
|
+
"description": "New knowledge base description",
|
|
3133
|
+
"name": "description",
|
|
3134
|
+
"required": false,
|
|
3135
|
+
"hasDynamicHelp": false,
|
|
3136
|
+
"multiple": false,
|
|
3137
|
+
"type": "option"
|
|
3138
|
+
},
|
|
3139
|
+
"refresh-enabled": {
|
|
3140
|
+
"description": "Enable scheduled refresh (--no-refresh-enabled to disable)",
|
|
3141
|
+
"name": "refresh-enabled",
|
|
3142
|
+
"required": false,
|
|
3143
|
+
"allowNo": true,
|
|
3144
|
+
"type": "boolean"
|
|
3145
|
+
},
|
|
3146
|
+
"refresh-frequency": {
|
|
3147
|
+
"description": "How often scheduled refresh runs",
|
|
3148
|
+
"name": "refresh-frequency",
|
|
3149
|
+
"required": false,
|
|
3150
|
+
"hasDynamicHelp": false,
|
|
3151
|
+
"multiple": false,
|
|
3152
|
+
"options": [
|
|
3153
|
+
"weekly",
|
|
3154
|
+
"monthly"
|
|
3155
|
+
],
|
|
3156
|
+
"type": "option"
|
|
3157
|
+
},
|
|
3158
|
+
"title": {
|
|
3159
|
+
"description": "New knowledge base title",
|
|
3160
|
+
"name": "title",
|
|
3161
|
+
"required": false,
|
|
3178
3162
|
"hasDynamicHelp": false,
|
|
3179
3163
|
"multiple": false,
|
|
3180
3164
|
"type": "option"
|
|
@@ -3182,17 +3166,33 @@
|
|
|
3182
3166
|
},
|
|
3183
3167
|
"hasDynamicHelp": false,
|
|
3184
3168
|
"hiddenAliases": [],
|
|
3185
|
-
"id": "
|
|
3169
|
+
"id": "context:update",
|
|
3186
3170
|
"pluginAlias": "@sanity/cli",
|
|
3187
3171
|
"pluginName": "@sanity/cli",
|
|
3188
3172
|
"pluginType": "core",
|
|
3189
3173
|
"strict": true,
|
|
3174
|
+
"telemetry": {
|
|
3175
|
+
"redactedFlags": [
|
|
3176
|
+
{
|
|
3177
|
+
"canonical": "--title",
|
|
3178
|
+
"flags": [
|
|
3179
|
+
"--title"
|
|
3180
|
+
]
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
"canonical": "--description",
|
|
3184
|
+
"flags": [
|
|
3185
|
+
"--description"
|
|
3186
|
+
]
|
|
3187
|
+
}
|
|
3188
|
+
]
|
|
3189
|
+
},
|
|
3190
3190
|
"isESM": true,
|
|
3191
3191
|
"relativePath": [
|
|
3192
3192
|
"dist",
|
|
3193
3193
|
"commands",
|
|
3194
|
-
"
|
|
3195
|
-
"
|
|
3194
|
+
"context",
|
|
3195
|
+
"update.js"
|
|
3196
3196
|
]
|
|
3197
3197
|
},
|
|
3198
3198
|
"documents:create": {
|
|
@@ -4167,6 +4167,32 @@
|
|
|
4167
4167
|
"logs.js"
|
|
4168
4168
|
]
|
|
4169
4169
|
},
|
|
4170
|
+
"mcp:configure": {
|
|
4171
|
+
"aliases": [],
|
|
4172
|
+
"args": {},
|
|
4173
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
4174
|
+
"examples": [
|
|
4175
|
+
{
|
|
4176
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4177
|
+
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4178
|
+
}
|
|
4179
|
+
],
|
|
4180
|
+
"flags": {},
|
|
4181
|
+
"hasDynamicHelp": false,
|
|
4182
|
+
"hiddenAliases": [],
|
|
4183
|
+
"id": "mcp:configure",
|
|
4184
|
+
"pluginAlias": "@sanity/cli",
|
|
4185
|
+
"pluginName": "@sanity/cli",
|
|
4186
|
+
"pluginType": "core",
|
|
4187
|
+
"strict": true,
|
|
4188
|
+
"isESM": true,
|
|
4189
|
+
"relativePath": [
|
|
4190
|
+
"dist",
|
|
4191
|
+
"commands",
|
|
4192
|
+
"mcp",
|
|
4193
|
+
"configure.js"
|
|
4194
|
+
]
|
|
4195
|
+
},
|
|
4170
4196
|
"manifest:extract": {
|
|
4171
4197
|
"aliases": [],
|
|
4172
4198
|
"args": {},
|
|
@@ -4206,32 +4232,6 @@
|
|
|
4206
4232
|
"extract.js"
|
|
4207
4233
|
]
|
|
4208
4234
|
},
|
|
4209
|
-
"mcp:configure": {
|
|
4210
|
-
"aliases": [],
|
|
4211
|
-
"args": {},
|
|
4212
|
-
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
4213
|
-
"examples": [
|
|
4214
|
-
{
|
|
4215
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4216
|
-
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4217
|
-
}
|
|
4218
|
-
],
|
|
4219
|
-
"flags": {},
|
|
4220
|
-
"hasDynamicHelp": false,
|
|
4221
|
-
"hiddenAliases": [],
|
|
4222
|
-
"id": "mcp:configure",
|
|
4223
|
-
"pluginAlias": "@sanity/cli",
|
|
4224
|
-
"pluginName": "@sanity/cli",
|
|
4225
|
-
"pluginType": "core",
|
|
4226
|
-
"strict": true,
|
|
4227
|
-
"isESM": true,
|
|
4228
|
-
"relativePath": [
|
|
4229
|
-
"dist",
|
|
4230
|
-
"commands",
|
|
4231
|
-
"mcp",
|
|
4232
|
-
"configure.js"
|
|
4233
|
-
]
|
|
4234
|
-
},
|
|
4235
4235
|
"media:create-aspect": {
|
|
4236
4236
|
"aliases": [],
|
|
4237
4237
|
"args": {},
|
|
@@ -5409,6 +5409,32 @@
|
|
|
5409
5409
|
"unclaimed.js"
|
|
5410
5410
|
]
|
|
5411
5411
|
},
|
|
5412
|
+
"skills:install": {
|
|
5413
|
+
"aliases": [],
|
|
5414
|
+
"args": {},
|
|
5415
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
5416
|
+
"examples": [
|
|
5417
|
+
{
|
|
5418
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5419
|
+
"description": "Install Sanity agent skills for detected AI editors"
|
|
5420
|
+
}
|
|
5421
|
+
],
|
|
5422
|
+
"flags": {},
|
|
5423
|
+
"hasDynamicHelp": false,
|
|
5424
|
+
"hiddenAliases": [],
|
|
5425
|
+
"id": "skills:install",
|
|
5426
|
+
"pluginAlias": "@sanity/cli",
|
|
5427
|
+
"pluginName": "@sanity/cli",
|
|
5428
|
+
"pluginType": "core",
|
|
5429
|
+
"strict": true,
|
|
5430
|
+
"isESM": true,
|
|
5431
|
+
"relativePath": [
|
|
5432
|
+
"dist",
|
|
5433
|
+
"commands",
|
|
5434
|
+
"skills",
|
|
5435
|
+
"install.js"
|
|
5436
|
+
]
|
|
5437
|
+
},
|
|
5412
5438
|
"schemas:delete": {
|
|
5413
5439
|
"aliases": [],
|
|
5414
5440
|
"args": {},
|
|
@@ -5810,32 +5836,6 @@
|
|
|
5810
5836
|
"validate.js"
|
|
5811
5837
|
]
|
|
5812
5838
|
},
|
|
5813
|
-
"skills:install": {
|
|
5814
|
-
"aliases": [],
|
|
5815
|
-
"args": {},
|
|
5816
|
-
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
5817
|
-
"examples": [
|
|
5818
|
-
{
|
|
5819
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5820
|
-
"description": "Install Sanity agent skills for detected AI editors"
|
|
5821
|
-
}
|
|
5822
|
-
],
|
|
5823
|
-
"flags": {},
|
|
5824
|
-
"hasDynamicHelp": false,
|
|
5825
|
-
"hiddenAliases": [],
|
|
5826
|
-
"id": "skills:install",
|
|
5827
|
-
"pluginAlias": "@sanity/cli",
|
|
5828
|
-
"pluginName": "@sanity/cli",
|
|
5829
|
-
"pluginType": "core",
|
|
5830
|
-
"strict": true,
|
|
5831
|
-
"isESM": true,
|
|
5832
|
-
"relativePath": [
|
|
5833
|
-
"dist",
|
|
5834
|
-
"commands",
|
|
5835
|
-
"skills",
|
|
5836
|
-
"install.js"
|
|
5837
|
-
]
|
|
5838
|
-
},
|
|
5839
5839
|
"telemetry:disable": {
|
|
5840
5840
|
"aliases": [],
|
|
5841
5841
|
"args": {},
|
|
@@ -6431,139 +6431,182 @@
|
|
|
6431
6431
|
"list.js"
|
|
6432
6432
|
]
|
|
6433
6433
|
},
|
|
6434
|
-
"
|
|
6434
|
+
"datasets:alias:create": {
|
|
6435
6435
|
"aliases": [],
|
|
6436
6436
|
"args": {
|
|
6437
|
-
"
|
|
6438
|
-
"description": "
|
|
6439
|
-
"name": "
|
|
6440
|
-
"required":
|
|
6437
|
+
"aliasName": {
|
|
6438
|
+
"description": "Dataset alias name to create",
|
|
6439
|
+
"name": "aliasName",
|
|
6440
|
+
"required": false
|
|
6441
6441
|
},
|
|
6442
|
-
"
|
|
6443
|
-
"description": "
|
|
6444
|
-
"name": "
|
|
6445
|
-
"required":
|
|
6442
|
+
"targetDataset": {
|
|
6443
|
+
"description": "Target dataset name to link the alias to",
|
|
6444
|
+
"name": "targetDataset",
|
|
6445
|
+
"required": false
|
|
6446
6446
|
}
|
|
6447
6447
|
},
|
|
6448
|
-
"description": "
|
|
6448
|
+
"description": "Create a dataset alias for the project",
|
|
6449
6449
|
"examples": [
|
|
6450
6450
|
{
|
|
6451
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6452
|
-
"description": "
|
|
6451
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
6452
|
+
"description": "Create alias in a specific project"
|
|
6453
|
+
},
|
|
6454
|
+
{
|
|
6455
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6456
|
+
"description": "Create an alias with interactive prompts"
|
|
6457
|
+
},
|
|
6458
|
+
{
|
|
6459
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6460
|
+
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
6453
6461
|
},
|
|
6454
6462
|
{
|
|
6455
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6456
|
-
"description": "
|
|
6463
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
6464
|
+
"description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
|
|
6457
6465
|
}
|
|
6458
6466
|
],
|
|
6459
6467
|
"flags": {
|
|
6460
|
-
"
|
|
6461
|
-
"
|
|
6462
|
-
"
|
|
6463
|
-
"
|
|
6464
|
-
"
|
|
6465
|
-
"
|
|
6468
|
+
"project-id": {
|
|
6469
|
+
"char": "p",
|
|
6470
|
+
"description": "Project ID to create dataset alias in (overrides CLI configuration)",
|
|
6471
|
+
"helpGroup": "OVERRIDE",
|
|
6472
|
+
"name": "project-id",
|
|
6473
|
+
"hasDynamicHelp": false,
|
|
6474
|
+
"helpValue": "<id>",
|
|
6475
|
+
"multiple": false,
|
|
6476
|
+
"type": "option"
|
|
6466
6477
|
}
|
|
6467
6478
|
},
|
|
6468
6479
|
"hasDynamicHelp": false,
|
|
6469
|
-
"hiddenAliases": [
|
|
6470
|
-
|
|
6480
|
+
"hiddenAliases": [
|
|
6481
|
+
"dataset:alias:create"
|
|
6482
|
+
],
|
|
6483
|
+
"id": "datasets:alias:create",
|
|
6471
6484
|
"pluginAlias": "@sanity/cli",
|
|
6472
6485
|
"pluginName": "@sanity/cli",
|
|
6473
6486
|
"pluginType": "core",
|
|
6474
6487
|
"strict": true,
|
|
6475
|
-
"enableJsonFlag": true,
|
|
6476
6488
|
"isESM": true,
|
|
6477
6489
|
"relativePath": [
|
|
6478
6490
|
"dist",
|
|
6479
6491
|
"commands",
|
|
6480
|
-
"
|
|
6481
|
-
"
|
|
6482
|
-
"
|
|
6492
|
+
"datasets",
|
|
6493
|
+
"alias",
|
|
6494
|
+
"create.js"
|
|
6483
6495
|
]
|
|
6484
6496
|
},
|
|
6485
|
-
"
|
|
6497
|
+
"datasets:alias:delete": {
|
|
6486
6498
|
"aliases": [],
|
|
6487
6499
|
"args": {
|
|
6488
|
-
"
|
|
6489
|
-
"description": "
|
|
6490
|
-
"name": "
|
|
6500
|
+
"aliasName": {
|
|
6501
|
+
"description": "Dataset alias name to delete",
|
|
6502
|
+
"name": "aliasName",
|
|
6491
6503
|
"required": true
|
|
6492
6504
|
}
|
|
6493
6505
|
},
|
|
6494
|
-
"description": "
|
|
6506
|
+
"description": "Delete a dataset alias from the project",
|
|
6495
6507
|
"examples": [
|
|
6496
6508
|
{
|
|
6497
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6498
|
-
"description": "
|
|
6509
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6510
|
+
"description": "Delete alias named \"conference\" with confirmation prompt"
|
|
6499
6511
|
},
|
|
6500
6512
|
{
|
|
6501
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6502
|
-
"description": "
|
|
6513
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
6514
|
+
"description": "Delete alias named \"conference\" without confirmation prompt"
|
|
6503
6515
|
}
|
|
6504
6516
|
],
|
|
6505
6517
|
"flags": {
|
|
6506
|
-
"
|
|
6507
|
-
"
|
|
6508
|
-
"
|
|
6509
|
-
"
|
|
6518
|
+
"project-id": {
|
|
6519
|
+
"char": "p",
|
|
6520
|
+
"description": "Project ID to delete dataset alias from (overrides CLI configuration)",
|
|
6521
|
+
"helpGroup": "OVERRIDE",
|
|
6522
|
+
"name": "project-id",
|
|
6523
|
+
"hasDynamicHelp": false,
|
|
6524
|
+
"helpValue": "<id>",
|
|
6525
|
+
"multiple": false,
|
|
6526
|
+
"type": "option"
|
|
6527
|
+
},
|
|
6528
|
+
"force": {
|
|
6529
|
+
"description": "Skip confirmation prompt and delete immediately",
|
|
6530
|
+
"name": "force",
|
|
6510
6531
|
"allowNo": false,
|
|
6511
6532
|
"type": "boolean"
|
|
6512
6533
|
}
|
|
6513
6534
|
},
|
|
6514
6535
|
"hasDynamicHelp": false,
|
|
6515
|
-
"hiddenAliases": [
|
|
6516
|
-
|
|
6536
|
+
"hiddenAliases": [
|
|
6537
|
+
"dataset:alias:delete"
|
|
6538
|
+
],
|
|
6539
|
+
"id": "datasets:alias:delete",
|
|
6517
6540
|
"pluginAlias": "@sanity/cli",
|
|
6518
6541
|
"pluginName": "@sanity/cli",
|
|
6519
6542
|
"pluginType": "core",
|
|
6520
6543
|
"strict": true,
|
|
6521
|
-
"enableJsonFlag": true,
|
|
6522
6544
|
"isESM": true,
|
|
6523
6545
|
"relativePath": [
|
|
6524
6546
|
"dist",
|
|
6525
6547
|
"commands",
|
|
6526
|
-
"
|
|
6527
|
-
"
|
|
6528
|
-
"
|
|
6548
|
+
"datasets",
|
|
6549
|
+
"alias",
|
|
6550
|
+
"delete.js"
|
|
6529
6551
|
]
|
|
6530
6552
|
},
|
|
6531
|
-
"
|
|
6553
|
+
"datasets:alias:link": {
|
|
6532
6554
|
"aliases": [],
|
|
6533
6555
|
"args": {
|
|
6534
|
-
"
|
|
6535
|
-
"description": "
|
|
6536
|
-
"name": "
|
|
6537
|
-
"required":
|
|
6556
|
+
"aliasName": {
|
|
6557
|
+
"description": "Dataset alias name to link",
|
|
6558
|
+
"name": "aliasName",
|
|
6559
|
+
"required": false
|
|
6538
6560
|
},
|
|
6539
|
-
"
|
|
6540
|
-
"description": "
|
|
6541
|
-
"name": "
|
|
6542
|
-
"required":
|
|
6561
|
+
"targetDataset": {
|
|
6562
|
+
"description": "Target dataset name to link the alias to",
|
|
6563
|
+
"name": "targetDataset",
|
|
6564
|
+
"required": false
|
|
6543
6565
|
}
|
|
6544
6566
|
},
|
|
6545
|
-
"description": "
|
|
6567
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
6546
6568
|
"examples": [
|
|
6547
6569
|
{
|
|
6548
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6549
|
-
"description": "
|
|
6570
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6571
|
+
"description": "Link an alias with interactive prompts"
|
|
6550
6572
|
},
|
|
6551
6573
|
{
|
|
6552
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6553
|
-
"description": "
|
|
6574
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6575
|
+
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
6576
|
+
},
|
|
6577
|
+
{
|
|
6578
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
6579
|
+
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
6580
|
+
},
|
|
6581
|
+
{
|
|
6582
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
|
|
6583
|
+
"description": "Force link without confirmation (skip relink prompt)"
|
|
6554
6584
|
}
|
|
6555
6585
|
],
|
|
6556
6586
|
"flags": {
|
|
6557
|
-
"
|
|
6558
|
-
"
|
|
6559
|
-
"
|
|
6587
|
+
"project-id": {
|
|
6588
|
+
"char": "p",
|
|
6589
|
+
"description": "Project ID to link dataset alias in (overrides CLI configuration)",
|
|
6590
|
+
"helpGroup": "OVERRIDE",
|
|
6591
|
+
"name": "project-id",
|
|
6592
|
+
"hasDynamicHelp": false,
|
|
6593
|
+
"helpValue": "<id>",
|
|
6594
|
+
"multiple": false,
|
|
6595
|
+
"type": "option"
|
|
6596
|
+
},
|
|
6597
|
+
"force": {
|
|
6598
|
+
"description": "Skip confirmation prompt when relinking existing alias",
|
|
6599
|
+
"name": "force",
|
|
6600
|
+
"required": false,
|
|
6560
6601
|
"allowNo": false,
|
|
6561
6602
|
"type": "boolean"
|
|
6562
6603
|
}
|
|
6563
6604
|
},
|
|
6564
6605
|
"hasDynamicHelp": false,
|
|
6565
|
-
"hiddenAliases": [
|
|
6566
|
-
|
|
6606
|
+
"hiddenAliases": [
|
|
6607
|
+
"dataset:alias:link"
|
|
6608
|
+
],
|
|
6609
|
+
"id": "datasets:alias:link",
|
|
6567
6610
|
"pluginAlias": "@sanity/cli",
|
|
6568
6611
|
"pluginName": "@sanity/cli",
|
|
6569
6612
|
"pluginType": "core",
|
|
@@ -6572,226 +6615,172 @@
|
|
|
6572
6615
|
"relativePath": [
|
|
6573
6616
|
"dist",
|
|
6574
6617
|
"commands",
|
|
6575
|
-
"
|
|
6576
|
-
"
|
|
6577
|
-
"
|
|
6618
|
+
"datasets",
|
|
6619
|
+
"alias",
|
|
6620
|
+
"link.js"
|
|
6578
6621
|
]
|
|
6579
6622
|
},
|
|
6580
|
-
"
|
|
6623
|
+
"datasets:alias:unlink": {
|
|
6581
6624
|
"aliases": [],
|
|
6582
6625
|
"args": {
|
|
6583
|
-
"
|
|
6584
|
-
"description": "
|
|
6585
|
-
"name": "
|
|
6586
|
-
"required":
|
|
6626
|
+
"aliasName": {
|
|
6627
|
+
"description": "Dataset alias name to unlink",
|
|
6628
|
+
"name": "aliasName",
|
|
6629
|
+
"required": false
|
|
6587
6630
|
}
|
|
6588
6631
|
},
|
|
6589
|
-
"description": "
|
|
6632
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
6590
6633
|
"examples": [
|
|
6591
6634
|
{
|
|
6592
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6593
|
-
"description": "
|
|
6594
|
-
},
|
|
6595
|
-
{
|
|
6596
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --file ./handbook.pdf",
|
|
6597
|
-
"description": "Upload and import a local file"
|
|
6598
|
-
},
|
|
6599
|
-
{
|
|
6600
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --url https://example.com/docs",
|
|
6601
|
-
"description": "Crawl a website"
|
|
6635
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6636
|
+
"description": "Unlink an alias with interactive selection"
|
|
6602
6637
|
},
|
|
6603
6638
|
{
|
|
6604
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6605
|
-
"description": "
|
|
6606
|
-
}
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
"
|
|
6615
|
-
"
|
|
6616
|
-
"
|
|
6617
|
-
|
|
6618
|
-
"file": {
|
|
6619
|
-
"description": "Path to a local file to import",
|
|
6620
|
-
"exclusive": [
|
|
6621
|
-
"text",
|
|
6622
|
-
"url",
|
|
6623
|
-
"query"
|
|
6624
|
-
],
|
|
6625
|
-
"name": "file",
|
|
6626
|
-
"required": false,
|
|
6627
|
-
"hasDynamicHelp": false,
|
|
6628
|
-
"helpValue": "<path>",
|
|
6629
|
-
"multiple": false,
|
|
6630
|
-
"type": "option"
|
|
6631
|
-
},
|
|
6632
|
-
"query": {
|
|
6633
|
-
"description": "GROQ query binding a Sanity dataset as a source",
|
|
6634
|
-
"exclusive": [
|
|
6635
|
-
"text",
|
|
6636
|
-
"url",
|
|
6637
|
-
"file"
|
|
6638
|
-
],
|
|
6639
|
-
"name": "query",
|
|
6640
|
-
"required": false,
|
|
6641
|
-
"hasDynamicHelp": false,
|
|
6642
|
-
"multiple": false,
|
|
6643
|
-
"type": "option"
|
|
6644
|
-
},
|
|
6645
|
-
"sanity-dataset": {
|
|
6646
|
-
"dependsOn": [
|
|
6647
|
-
"query"
|
|
6648
|
-
],
|
|
6649
|
-
"description": "Sanity dataset for a dataset import",
|
|
6650
|
-
"name": "sanity-dataset",
|
|
6651
|
-
"required": false,
|
|
6652
|
-
"hasDynamicHelp": false,
|
|
6653
|
-
"helpValue": "<name>",
|
|
6654
|
-
"multiple": false,
|
|
6655
|
-
"type": "option"
|
|
6656
|
-
},
|
|
6657
|
-
"sanity-project": {
|
|
6658
|
-
"dependsOn": [
|
|
6659
|
-
"query"
|
|
6660
|
-
],
|
|
6661
|
-
"description": "Sanity project ID for a dataset import",
|
|
6662
|
-
"name": "sanity-project",
|
|
6663
|
-
"required": false,
|
|
6664
|
-
"hasDynamicHelp": false,
|
|
6665
|
-
"helpValue": "<id>",
|
|
6666
|
-
"multiple": false,
|
|
6667
|
-
"type": "option"
|
|
6668
|
-
},
|
|
6669
|
-
"text": {
|
|
6670
|
-
"description": "Inline text content to import (requires --title)",
|
|
6671
|
-
"exclusive": [
|
|
6672
|
-
"file",
|
|
6673
|
-
"url",
|
|
6674
|
-
"query"
|
|
6675
|
-
],
|
|
6676
|
-
"name": "text",
|
|
6677
|
-
"required": false,
|
|
6678
|
-
"hasDynamicHelp": false,
|
|
6679
|
-
"multiple": false,
|
|
6680
|
-
"type": "option"
|
|
6681
|
-
},
|
|
6682
|
-
"title": {
|
|
6683
|
-
"dependsOn": [
|
|
6684
|
-
"text"
|
|
6685
|
-
],
|
|
6686
|
-
"description": "Title for an inline text import",
|
|
6687
|
-
"name": "title",
|
|
6688
|
-
"required": false,
|
|
6639
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6640
|
+
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
6641
|
+
},
|
|
6642
|
+
{
|
|
6643
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
6644
|
+
"description": "Unlink alias \"conference\" without confirmation prompt"
|
|
6645
|
+
}
|
|
6646
|
+
],
|
|
6647
|
+
"flags": {
|
|
6648
|
+
"project-id": {
|
|
6649
|
+
"char": "p",
|
|
6650
|
+
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
6651
|
+
"helpGroup": "OVERRIDE",
|
|
6652
|
+
"name": "project-id",
|
|
6689
6653
|
"hasDynamicHelp": false,
|
|
6654
|
+
"helpValue": "<id>",
|
|
6690
6655
|
"multiple": false,
|
|
6691
6656
|
"type": "option"
|
|
6692
6657
|
},
|
|
6693
|
-
"
|
|
6694
|
-
"description": "
|
|
6695
|
-
"
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6658
|
+
"force": {
|
|
6659
|
+
"description": "Skip confirmation prompt and unlink immediately",
|
|
6660
|
+
"name": "force",
|
|
6661
|
+
"allowNo": false,
|
|
6662
|
+
"type": "boolean"
|
|
6663
|
+
}
|
|
6664
|
+
},
|
|
6665
|
+
"hasDynamicHelp": false,
|
|
6666
|
+
"hiddenAliases": [
|
|
6667
|
+
"dataset:alias:unlink"
|
|
6668
|
+
],
|
|
6669
|
+
"id": "datasets:alias:unlink",
|
|
6670
|
+
"pluginAlias": "@sanity/cli",
|
|
6671
|
+
"pluginName": "@sanity/cli",
|
|
6672
|
+
"pluginType": "core",
|
|
6673
|
+
"strict": true,
|
|
6674
|
+
"isESM": true,
|
|
6675
|
+
"relativePath": [
|
|
6676
|
+
"dist",
|
|
6677
|
+
"commands",
|
|
6678
|
+
"datasets",
|
|
6679
|
+
"alias",
|
|
6680
|
+
"unlink.js"
|
|
6681
|
+
]
|
|
6682
|
+
},
|
|
6683
|
+
"datasets:embeddings:disable": {
|
|
6684
|
+
"aliases": [],
|
|
6685
|
+
"args": {
|
|
6686
|
+
"dataset": {
|
|
6687
|
+
"description": "Dataset name to disable embeddings for",
|
|
6688
|
+
"name": "dataset",
|
|
6689
|
+
"required": false
|
|
6690
|
+
}
|
|
6691
|
+
},
|
|
6692
|
+
"description": "Disable embeddings for a dataset",
|
|
6693
|
+
"examples": [
|
|
6694
|
+
{
|
|
6695
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6696
|
+
"description": "Disable embeddings for the production dataset"
|
|
6697
|
+
}
|
|
6698
|
+
],
|
|
6699
|
+
"flags": {
|
|
6700
|
+
"project-id": {
|
|
6701
|
+
"char": "p",
|
|
6702
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
6703
|
+
"helpGroup": "OVERRIDE",
|
|
6704
|
+
"name": "project-id",
|
|
6702
6705
|
"hasDynamicHelp": false,
|
|
6703
|
-
"helpValue": "<
|
|
6706
|
+
"helpValue": "<id>",
|
|
6704
6707
|
"multiple": false,
|
|
6705
6708
|
"type": "option"
|
|
6706
6709
|
}
|
|
6707
6710
|
},
|
|
6708
6711
|
"hasDynamicHelp": false,
|
|
6709
|
-
"hiddenAliases": [
|
|
6710
|
-
|
|
6712
|
+
"hiddenAliases": [
|
|
6713
|
+
"dataset:embeddings:disable"
|
|
6714
|
+
],
|
|
6715
|
+
"id": "datasets:embeddings:disable",
|
|
6711
6716
|
"pluginAlias": "@sanity/cli",
|
|
6712
6717
|
"pluginName": "@sanity/cli",
|
|
6713
6718
|
"pluginType": "core",
|
|
6714
6719
|
"strict": true,
|
|
6715
|
-
"telemetry": {
|
|
6716
|
-
"redactedFlags": [
|
|
6717
|
-
{
|
|
6718
|
-
"canonical": "--text",
|
|
6719
|
-
"flags": [
|
|
6720
|
-
"--text"
|
|
6721
|
-
]
|
|
6722
|
-
},
|
|
6723
|
-
{
|
|
6724
|
-
"canonical": "--file",
|
|
6725
|
-
"flags": [
|
|
6726
|
-
"--file"
|
|
6727
|
-
]
|
|
6728
|
-
},
|
|
6729
|
-
{
|
|
6730
|
-
"canonical": "--url",
|
|
6731
|
-
"flags": [
|
|
6732
|
-
"--url"
|
|
6733
|
-
]
|
|
6734
|
-
},
|
|
6735
|
-
{
|
|
6736
|
-
"canonical": "--title",
|
|
6737
|
-
"flags": [
|
|
6738
|
-
"--title"
|
|
6739
|
-
]
|
|
6740
|
-
},
|
|
6741
|
-
{
|
|
6742
|
-
"canonical": "--query",
|
|
6743
|
-
"flags": [
|
|
6744
|
-
"--query"
|
|
6745
|
-
]
|
|
6746
|
-
}
|
|
6747
|
-
]
|
|
6748
|
-
},
|
|
6749
6720
|
"isESM": true,
|
|
6750
6721
|
"relativePath": [
|
|
6751
6722
|
"dist",
|
|
6752
6723
|
"commands",
|
|
6753
|
-
"
|
|
6754
|
-
"
|
|
6755
|
-
"
|
|
6724
|
+
"datasets",
|
|
6725
|
+
"embeddings",
|
|
6726
|
+
"disable.js"
|
|
6756
6727
|
]
|
|
6757
6728
|
},
|
|
6758
|
-
"
|
|
6729
|
+
"datasets:embeddings:enable": {
|
|
6759
6730
|
"aliases": [],
|
|
6760
6731
|
"args": {
|
|
6761
|
-
"
|
|
6762
|
-
"description": "
|
|
6763
|
-
"name": "
|
|
6764
|
-
"required":
|
|
6765
|
-
},
|
|
6766
|
-
"importId": {
|
|
6767
|
-
"description": "Import ID",
|
|
6768
|
-
"name": "importId",
|
|
6769
|
-
"required": true
|
|
6732
|
+
"dataset": {
|
|
6733
|
+
"description": "Dataset name to enable embeddings for",
|
|
6734
|
+
"name": "dataset",
|
|
6735
|
+
"required": false
|
|
6770
6736
|
}
|
|
6771
6737
|
},
|
|
6772
|
-
"description": "
|
|
6738
|
+
"description": "Enable embeddings for a dataset",
|
|
6773
6739
|
"examples": [
|
|
6774
6740
|
{
|
|
6775
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6776
|
-
"description": "
|
|
6741
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6742
|
+
"description": "Enable embeddings for the production dataset"
|
|
6777
6743
|
},
|
|
6778
6744
|
{
|
|
6779
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6780
|
-
"description": "
|
|
6745
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
6746
|
+
"description": "Enable embeddings with a specific projection"
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
6750
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
6781
6751
|
}
|
|
6782
6752
|
],
|
|
6783
6753
|
"flags": {
|
|
6784
|
-
"
|
|
6785
|
-
"char": "
|
|
6786
|
-
"description": "
|
|
6787
|
-
"
|
|
6754
|
+
"project-id": {
|
|
6755
|
+
"char": "p",
|
|
6756
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
6757
|
+
"helpGroup": "OVERRIDE",
|
|
6758
|
+
"name": "project-id",
|
|
6759
|
+
"hasDynamicHelp": false,
|
|
6760
|
+
"helpValue": "<id>",
|
|
6761
|
+
"multiple": false,
|
|
6762
|
+
"type": "option"
|
|
6763
|
+
},
|
|
6764
|
+
"projection": {
|
|
6765
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
6766
|
+
"name": "projection",
|
|
6767
|
+
"required": false,
|
|
6768
|
+
"hasDynamicHelp": false,
|
|
6769
|
+
"multiple": false,
|
|
6770
|
+
"type": "option"
|
|
6771
|
+
},
|
|
6772
|
+
"wait": {
|
|
6773
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
6774
|
+
"name": "wait",
|
|
6788
6775
|
"allowNo": false,
|
|
6789
6776
|
"type": "boolean"
|
|
6790
6777
|
}
|
|
6791
6778
|
},
|
|
6792
6779
|
"hasDynamicHelp": false,
|
|
6793
|
-
"hiddenAliases": [
|
|
6794
|
-
|
|
6780
|
+
"hiddenAliases": [
|
|
6781
|
+
"dataset:embeddings:enable"
|
|
6782
|
+
],
|
|
6783
|
+
"id": "datasets:embeddings:enable",
|
|
6795
6784
|
"pluginAlias": "@sanity/cli",
|
|
6796
6785
|
"pluginName": "@sanity/cli",
|
|
6797
6786
|
"pluginType": "core",
|
|
@@ -6800,156 +6789,163 @@
|
|
|
6800
6789
|
"relativePath": [
|
|
6801
6790
|
"dist",
|
|
6802
6791
|
"commands",
|
|
6803
|
-
"
|
|
6804
|
-
"
|
|
6805
|
-
"
|
|
6792
|
+
"datasets",
|
|
6793
|
+
"embeddings",
|
|
6794
|
+
"enable.js"
|
|
6806
6795
|
]
|
|
6807
6796
|
},
|
|
6808
|
-
"
|
|
6797
|
+
"datasets:embeddings:status": {
|
|
6809
6798
|
"aliases": [],
|
|
6810
6799
|
"args": {
|
|
6811
|
-
"
|
|
6812
|
-
"description": "
|
|
6813
|
-
"name": "
|
|
6814
|
-
"required":
|
|
6815
|
-
},
|
|
6816
|
-
"importId": {
|
|
6817
|
-
"description": "Import ID",
|
|
6818
|
-
"name": "importId",
|
|
6819
|
-
"required": true
|
|
6800
|
+
"dataset": {
|
|
6801
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
6802
|
+
"name": "dataset",
|
|
6803
|
+
"required": false
|
|
6820
6804
|
}
|
|
6821
6805
|
},
|
|
6822
|
-
"description": "
|
|
6806
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
6823
6807
|
"examples": [
|
|
6824
6808
|
{
|
|
6825
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6826
|
-
"description": "
|
|
6809
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6810
|
+
"description": "Show embeddings status for the production dataset"
|
|
6827
6811
|
}
|
|
6828
6812
|
],
|
|
6829
6813
|
"flags": {
|
|
6830
|
-
"
|
|
6831
|
-
"
|
|
6832
|
-
"
|
|
6833
|
-
"
|
|
6834
|
-
"
|
|
6835
|
-
"
|
|
6814
|
+
"project-id": {
|
|
6815
|
+
"char": "p",
|
|
6816
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
6817
|
+
"helpGroup": "OVERRIDE",
|
|
6818
|
+
"name": "project-id",
|
|
6819
|
+
"hasDynamicHelp": false,
|
|
6820
|
+
"helpValue": "<id>",
|
|
6821
|
+
"multiple": false,
|
|
6822
|
+
"type": "option"
|
|
6836
6823
|
}
|
|
6837
6824
|
},
|
|
6838
6825
|
"hasDynamicHelp": false,
|
|
6839
|
-
"hiddenAliases": [
|
|
6840
|
-
|
|
6826
|
+
"hiddenAliases": [
|
|
6827
|
+
"dataset:embeddings:status"
|
|
6828
|
+
],
|
|
6829
|
+
"id": "datasets:embeddings:status",
|
|
6841
6830
|
"pluginAlias": "@sanity/cli",
|
|
6842
6831
|
"pluginName": "@sanity/cli",
|
|
6843
6832
|
"pluginType": "core",
|
|
6844
6833
|
"strict": true,
|
|
6845
|
-
"enableJsonFlag": true,
|
|
6846
6834
|
"isESM": true,
|
|
6847
6835
|
"relativePath": [
|
|
6848
6836
|
"dist",
|
|
6849
6837
|
"commands",
|
|
6850
|
-
"
|
|
6851
|
-
"
|
|
6852
|
-
"
|
|
6838
|
+
"datasets",
|
|
6839
|
+
"embeddings",
|
|
6840
|
+
"status.js"
|
|
6853
6841
|
]
|
|
6854
6842
|
},
|
|
6855
|
-
"
|
|
6843
|
+
"datasets:visibility:get": {
|
|
6856
6844
|
"aliases": [],
|
|
6857
6845
|
"args": {
|
|
6858
|
-
"
|
|
6859
|
-
"description": "
|
|
6860
|
-
"name": "
|
|
6861
|
-
"required": true
|
|
6862
|
-
},
|
|
6863
|
-
"importId": {
|
|
6864
|
-
"description": "Import ID",
|
|
6865
|
-
"name": "importId",
|
|
6846
|
+
"dataset": {
|
|
6847
|
+
"description": "The name of the dataset to get visibility for",
|
|
6848
|
+
"name": "dataset",
|
|
6866
6849
|
"required": true
|
|
6867
6850
|
}
|
|
6868
6851
|
},
|
|
6869
|
-
"description": "Get
|
|
6852
|
+
"description": "Get the visibility of a dataset",
|
|
6870
6853
|
"examples": [
|
|
6871
6854
|
{
|
|
6872
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6873
|
-
"description": "
|
|
6874
|
-
},
|
|
6875
|
-
{
|
|
6876
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --json",
|
|
6877
|
-
"description": "Output the import as JSON"
|
|
6855
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
6856
|
+
"description": "Check the visibility of a dataset"
|
|
6878
6857
|
}
|
|
6879
6858
|
],
|
|
6880
6859
|
"flags": {
|
|
6881
|
-
"
|
|
6882
|
-
"
|
|
6883
|
-
"
|
|
6884
|
-
"
|
|
6885
|
-
"
|
|
6886
|
-
"
|
|
6860
|
+
"project-id": {
|
|
6861
|
+
"char": "p",
|
|
6862
|
+
"description": "Project ID to get dataset visibility for (overrides CLI configuration)",
|
|
6863
|
+
"helpGroup": "OVERRIDE",
|
|
6864
|
+
"name": "project-id",
|
|
6865
|
+
"hasDynamicHelp": false,
|
|
6866
|
+
"helpValue": "<id>",
|
|
6867
|
+
"multiple": false,
|
|
6868
|
+
"type": "option"
|
|
6887
6869
|
}
|
|
6888
6870
|
},
|
|
6889
6871
|
"hasDynamicHelp": false,
|
|
6890
|
-
"hiddenAliases": [
|
|
6891
|
-
|
|
6872
|
+
"hiddenAliases": [
|
|
6873
|
+
"dataset:visibility:get"
|
|
6874
|
+
],
|
|
6875
|
+
"id": "datasets:visibility:get",
|
|
6892
6876
|
"pluginAlias": "@sanity/cli",
|
|
6893
6877
|
"pluginName": "@sanity/cli",
|
|
6894
6878
|
"pluginType": "core",
|
|
6895
6879
|
"strict": true,
|
|
6896
|
-
"enableJsonFlag": true,
|
|
6897
6880
|
"isESM": true,
|
|
6898
6881
|
"relativePath": [
|
|
6899
6882
|
"dist",
|
|
6900
6883
|
"commands",
|
|
6901
|
-
"
|
|
6902
|
-
"
|
|
6884
|
+
"datasets",
|
|
6885
|
+
"visibility",
|
|
6903
6886
|
"get.js"
|
|
6904
6887
|
]
|
|
6905
6888
|
},
|
|
6906
|
-
"
|
|
6889
|
+
"datasets:visibility:set": {
|
|
6907
6890
|
"aliases": [],
|
|
6908
6891
|
"args": {
|
|
6909
|
-
"
|
|
6910
|
-
"description": "
|
|
6911
|
-
"name": "
|
|
6892
|
+
"dataset": {
|
|
6893
|
+
"description": "The name of the dataset to set visibility for",
|
|
6894
|
+
"name": "dataset",
|
|
6895
|
+
"required": true
|
|
6896
|
+
},
|
|
6897
|
+
"mode": {
|
|
6898
|
+
"description": "The visibility mode to set",
|
|
6899
|
+
"name": "mode",
|
|
6900
|
+
"options": [
|
|
6901
|
+
"public",
|
|
6902
|
+
"private"
|
|
6903
|
+
],
|
|
6912
6904
|
"required": true
|
|
6913
6905
|
}
|
|
6914
6906
|
},
|
|
6915
|
-
"description": "
|
|
6907
|
+
"description": "Set the visibility of a dataset",
|
|
6916
6908
|
"examples": [
|
|
6917
6909
|
{
|
|
6918
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6919
|
-
"description": "
|
|
6910
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset private",
|
|
6911
|
+
"description": "Make a dataset private"
|
|
6920
6912
|
},
|
|
6921
6913
|
{
|
|
6922
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6923
|
-
"description": "
|
|
6914
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset public",
|
|
6915
|
+
"description": "Make a dataset public"
|
|
6924
6916
|
}
|
|
6925
6917
|
],
|
|
6926
6918
|
"flags": {
|
|
6927
|
-
"
|
|
6928
|
-
"
|
|
6929
|
-
"
|
|
6930
|
-
"
|
|
6931
|
-
"
|
|
6932
|
-
"
|
|
6919
|
+
"project-id": {
|
|
6920
|
+
"char": "p",
|
|
6921
|
+
"description": "Project ID to set dataset visibility for (overrides CLI configuration)",
|
|
6922
|
+
"helpGroup": "OVERRIDE",
|
|
6923
|
+
"name": "project-id",
|
|
6924
|
+
"hasDynamicHelp": false,
|
|
6925
|
+
"helpValue": "<id>",
|
|
6926
|
+
"multiple": false,
|
|
6927
|
+
"type": "option"
|
|
6933
6928
|
}
|
|
6934
6929
|
},
|
|
6935
6930
|
"hasDynamicHelp": false,
|
|
6936
|
-
"hiddenAliases": [
|
|
6937
|
-
|
|
6931
|
+
"hiddenAliases": [
|
|
6932
|
+
"dataset:visibility:set"
|
|
6933
|
+
],
|
|
6934
|
+
"id": "datasets:visibility:set",
|
|
6938
6935
|
"pluginAlias": "@sanity/cli",
|
|
6939
6936
|
"pluginName": "@sanity/cli",
|
|
6940
6937
|
"pluginType": "core",
|
|
6941
6938
|
"strict": true,
|
|
6942
|
-
"enableJsonFlag": true,
|
|
6943
6939
|
"isESM": true,
|
|
6944
6940
|
"relativePath": [
|
|
6945
6941
|
"dist",
|
|
6946
6942
|
"commands",
|
|
6947
|
-
"
|
|
6948
|
-
"
|
|
6949
|
-
"
|
|
6943
|
+
"datasets",
|
|
6944
|
+
"visibility",
|
|
6945
|
+
"set.js"
|
|
6950
6946
|
]
|
|
6951
6947
|
},
|
|
6952
|
-
"context:
|
|
6948
|
+
"context:entries:get": {
|
|
6953
6949
|
"aliases": [],
|
|
6954
6950
|
"args": {
|
|
6955
6951
|
"knowledgeBaseId": {
|
|
@@ -6957,21 +6953,21 @@
|
|
|
6957
6953
|
"name": "knowledgeBaseId",
|
|
6958
6954
|
"required": true
|
|
6959
6955
|
},
|
|
6960
|
-
"
|
|
6961
|
-
"description": "
|
|
6962
|
-
"name": "
|
|
6956
|
+
"path": {
|
|
6957
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
6958
|
+
"name": "path",
|
|
6963
6959
|
"required": true
|
|
6964
6960
|
}
|
|
6965
6961
|
},
|
|
6966
|
-
"description": "Get
|
|
6962
|
+
"description": "Get an entry and its content",
|
|
6967
6963
|
"examples": [
|
|
6968
6964
|
{
|
|
6969
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
6970
|
-
"description": "
|
|
6965
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
6966
|
+
"description": "Print an entry and its content"
|
|
6971
6967
|
},
|
|
6972
6968
|
{
|
|
6973
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
6974
|
-
"description": "
|
|
6969
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
6970
|
+
"description": "Output the entry, including citations, as JSON"
|
|
6975
6971
|
}
|
|
6976
6972
|
],
|
|
6977
6973
|
"flags": {
|
|
@@ -6981,17 +6977,11 @@
|
|
|
6981
6977
|
"name": "json",
|
|
6982
6978
|
"allowNo": false,
|
|
6983
6979
|
"type": "boolean"
|
|
6984
|
-
},
|
|
6985
|
-
"watch": {
|
|
6986
|
-
"description": "Poll until the job reaches a terminal state",
|
|
6987
|
-
"name": "watch",
|
|
6988
|
-
"allowNo": false,
|
|
6989
|
-
"type": "boolean"
|
|
6990
6980
|
}
|
|
6991
6981
|
},
|
|
6992
6982
|
"hasDynamicHelp": false,
|
|
6993
6983
|
"hiddenAliases": [],
|
|
6994
|
-
"id": "context:
|
|
6984
|
+
"id": "context:entries:get",
|
|
6995
6985
|
"pluginAlias": "@sanity/cli",
|
|
6996
6986
|
"pluginName": "@sanity/cli",
|
|
6997
6987
|
"pluginType": "core",
|
|
@@ -7002,99 +6992,57 @@
|
|
|
7002
6992
|
"dist",
|
|
7003
6993
|
"commands",
|
|
7004
6994
|
"context",
|
|
7005
|
-
"
|
|
6995
|
+
"entries",
|
|
7006
6996
|
"get.js"
|
|
7007
6997
|
]
|
|
7008
6998
|
},
|
|
7009
|
-
"context:
|
|
6999
|
+
"context:entries:list": {
|
|
7010
7000
|
"aliases": [],
|
|
7011
7001
|
"args": {
|
|
7012
7002
|
"knowledgeBaseId": {
|
|
7013
7003
|
"description": "Knowledge base ID",
|
|
7014
7004
|
"name": "knowledgeBaseId",
|
|
7015
7005
|
"required": true
|
|
7016
|
-
},
|
|
7017
|
-
"issueId": {
|
|
7018
|
-
"description": "ID of an issue to accept and apply (pass several to apply them in one batch). Conflicts can't be applied; resolve them with `sanity context issues resolve`",
|
|
7019
|
-
"multiple": true,
|
|
7020
|
-
"name": "issueId",
|
|
7021
|
-
"required": true
|
|
7022
7006
|
}
|
|
7023
7007
|
},
|
|
7024
|
-
"description": "
|
|
7008
|
+
"description": "List the entries a knowledge base build produced",
|
|
7025
7009
|
"examples": [
|
|
7026
7010
|
{
|
|
7027
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7028
|
-
"description": "
|
|
7011
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7012
|
+
"description": "List all entries for a knowledge base"
|
|
7029
7013
|
},
|
|
7030
7014
|
{
|
|
7031
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7032
|
-
"description": "
|
|
7015
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7016
|
+
"description": "Output entries as JSON"
|
|
7033
7017
|
}
|
|
7034
7018
|
],
|
|
7035
7019
|
"flags": {
|
|
7036
|
-
"
|
|
7037
|
-
"description": "
|
|
7038
|
-
"
|
|
7020
|
+
"json": {
|
|
7021
|
+
"description": "Format output as json.",
|
|
7022
|
+
"helpGroup": "GLOBAL",
|
|
7023
|
+
"name": "json",
|
|
7039
7024
|
"allowNo": false,
|
|
7040
7025
|
"type": "boolean"
|
|
7041
7026
|
}
|
|
7042
7027
|
},
|
|
7043
7028
|
"hasDynamicHelp": false,
|
|
7044
7029
|
"hiddenAliases": [],
|
|
7045
|
-
"id": "context:
|
|
7046
|
-
"pluginAlias": "@sanity/cli",
|
|
7047
|
-
"pluginName": "@sanity/cli",
|
|
7048
|
-
"pluginType": "core",
|
|
7049
|
-
"strict": true,
|
|
7050
|
-
"isESM": true,
|
|
7051
|
-
"relativePath": [
|
|
7052
|
-
"dist",
|
|
7053
|
-
"commands",
|
|
7054
|
-
"context",
|
|
7055
|
-
"issues",
|
|
7056
|
-
"apply.js"
|
|
7057
|
-
]
|
|
7058
|
-
},
|
|
7059
|
-
"context:issues:dismiss": {
|
|
7060
|
-
"aliases": [],
|
|
7061
|
-
"args": {
|
|
7062
|
-
"knowledgeBaseId": {
|
|
7063
|
-
"description": "Knowledge base ID",
|
|
7064
|
-
"name": "knowledgeBaseId",
|
|
7065
|
-
"required": true
|
|
7066
|
-
},
|
|
7067
|
-
"issueId": {
|
|
7068
|
-
"description": "Issue ID",
|
|
7069
|
-
"name": "issueId",
|
|
7070
|
-
"required": true
|
|
7071
|
-
}
|
|
7072
|
-
},
|
|
7073
|
-
"description": "Dismiss an issue\n\nDismissing is permanent: dismissed issues can't be reopened.",
|
|
7074
|
-
"examples": [
|
|
7075
|
-
{
|
|
7076
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7077
|
-
"description": "Dismiss an issue"
|
|
7078
|
-
}
|
|
7079
|
-
],
|
|
7080
|
-
"flags": {},
|
|
7081
|
-
"hasDynamicHelp": false,
|
|
7082
|
-
"hiddenAliases": [],
|
|
7083
|
-
"id": "context:issues:dismiss",
|
|
7030
|
+
"id": "context:entries:list",
|
|
7084
7031
|
"pluginAlias": "@sanity/cli",
|
|
7085
7032
|
"pluginName": "@sanity/cli",
|
|
7086
7033
|
"pluginType": "core",
|
|
7087
7034
|
"strict": true,
|
|
7035
|
+
"enableJsonFlag": true,
|
|
7088
7036
|
"isESM": true,
|
|
7089
7037
|
"relativePath": [
|
|
7090
7038
|
"dist",
|
|
7091
7039
|
"commands",
|
|
7092
7040
|
"context",
|
|
7093
|
-
"
|
|
7094
|
-
"
|
|
7041
|
+
"entries",
|
|
7042
|
+
"list.js"
|
|
7095
7043
|
]
|
|
7096
7044
|
},
|
|
7097
|
-
"context:
|
|
7045
|
+
"context:entries:rebuild": {
|
|
7098
7046
|
"aliases": [],
|
|
7099
7047
|
"args": {
|
|
7100
7048
|
"knowledgeBaseId": {
|
|
@@ -7102,50 +7050,48 @@
|
|
|
7102
7050
|
"name": "knowledgeBaseId",
|
|
7103
7051
|
"required": true
|
|
7104
7052
|
},
|
|
7105
|
-
"
|
|
7106
|
-
"description": "
|
|
7107
|
-
"name": "
|
|
7053
|
+
"path": {
|
|
7054
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
7055
|
+
"name": "path",
|
|
7108
7056
|
"required": true
|
|
7109
7057
|
}
|
|
7110
7058
|
},
|
|
7111
|
-
"description": "
|
|
7059
|
+
"description": "Rebuild one entry from its sources",
|
|
7112
7060
|
"examples": [
|
|
7113
7061
|
{
|
|
7114
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7115
|
-
"description": "
|
|
7062
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
7063
|
+
"description": "Start a rebuild and return the job ID"
|
|
7116
7064
|
},
|
|
7117
7065
|
{
|
|
7118
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7119
|
-
"description": "
|
|
7066
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --watch",
|
|
7067
|
+
"description": "Rebuild an entry and wait for it to finish (non-zero exit on failure)"
|
|
7120
7068
|
}
|
|
7121
7069
|
],
|
|
7122
7070
|
"flags": {
|
|
7123
|
-
"
|
|
7124
|
-
"description": "
|
|
7125
|
-
"
|
|
7126
|
-
"name": "json",
|
|
7071
|
+
"watch": {
|
|
7072
|
+
"description": "Wait for the rebuild to finish, exiting non-zero if it fails",
|
|
7073
|
+
"name": "watch",
|
|
7127
7074
|
"allowNo": false,
|
|
7128
7075
|
"type": "boolean"
|
|
7129
7076
|
}
|
|
7130
7077
|
},
|
|
7131
7078
|
"hasDynamicHelp": false,
|
|
7132
7079
|
"hiddenAliases": [],
|
|
7133
|
-
"id": "context:
|
|
7080
|
+
"id": "context:entries:rebuild",
|
|
7134
7081
|
"pluginAlias": "@sanity/cli",
|
|
7135
7082
|
"pluginName": "@sanity/cli",
|
|
7136
7083
|
"pluginType": "core",
|
|
7137
7084
|
"strict": true,
|
|
7138
|
-
"enableJsonFlag": true,
|
|
7139
7085
|
"isESM": true,
|
|
7140
7086
|
"relativePath": [
|
|
7141
7087
|
"dist",
|
|
7142
7088
|
"commands",
|
|
7143
7089
|
"context",
|
|
7144
|
-
"
|
|
7145
|
-
"
|
|
7090
|
+
"entries",
|
|
7091
|
+
"rebuild.js"
|
|
7146
7092
|
]
|
|
7147
7093
|
},
|
|
7148
|
-
"context:
|
|
7094
|
+
"context:imports:create": {
|
|
7149
7095
|
"aliases": [],
|
|
7150
7096
|
"args": {
|
|
7151
7097
|
"knowledgeBaseId": {
|
|
@@ -7154,103 +7100,176 @@
|
|
|
7154
7100
|
"required": true
|
|
7155
7101
|
}
|
|
7156
7102
|
},
|
|
7157
|
-
"description": "
|
|
7103
|
+
"description": "Import content into a knowledge base",
|
|
7158
7104
|
"examples": [
|
|
7159
7105
|
{
|
|
7160
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7161
|
-
"description": "
|
|
7162
|
-
},
|
|
7163
|
-
{
|
|
7164
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
|
|
7165
|
-
"description": "List issues awaiting triage"
|
|
7106
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --text \"Refunds are processed within 5 days\" --title \"Refund policy\"",
|
|
7107
|
+
"description": "Import inline text"
|
|
7166
7108
|
},
|
|
7167
7109
|
{
|
|
7168
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --
|
|
7169
|
-
"description": "
|
|
7110
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --file ./handbook.pdf",
|
|
7111
|
+
"description": "Upload and import a local file"
|
|
7170
7112
|
},
|
|
7171
7113
|
{
|
|
7172
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --
|
|
7173
|
-
"description": "
|
|
7114
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --url https://example.com/docs",
|
|
7115
|
+
"description": "Crawl a website"
|
|
7174
7116
|
},
|
|
7175
7117
|
{
|
|
7176
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --
|
|
7177
|
-
"description": "
|
|
7118
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --query '*[_type == \"article\"]' --sanity-project abc123 --sanity-dataset production",
|
|
7119
|
+
"description": "Bind a Sanity dataset as a source"
|
|
7178
7120
|
}
|
|
7179
7121
|
],
|
|
7180
7122
|
"flags": {
|
|
7181
|
-
"
|
|
7182
|
-
"description": "
|
|
7183
|
-
"
|
|
7184
|
-
"
|
|
7185
|
-
"
|
|
7186
|
-
"
|
|
7123
|
+
"content-type": {
|
|
7124
|
+
"description": "Content type of the import (--text: text/markdown or text/plain; --file: any MIME type, inferred from the file extension when omitted)",
|
|
7125
|
+
"name": "content-type",
|
|
7126
|
+
"required": false,
|
|
7127
|
+
"hasDynamicHelp": false,
|
|
7128
|
+
"helpValue": "<mime>",
|
|
7129
|
+
"multiple": false,
|
|
7130
|
+
"type": "option"
|
|
7187
7131
|
},
|
|
7188
|
-
"
|
|
7189
|
-
"description": "
|
|
7190
|
-
"
|
|
7132
|
+
"file": {
|
|
7133
|
+
"description": "Path to a local file to import",
|
|
7134
|
+
"exclusive": [
|
|
7135
|
+
"text",
|
|
7136
|
+
"url",
|
|
7137
|
+
"query"
|
|
7138
|
+
],
|
|
7139
|
+
"name": "file",
|
|
7140
|
+
"required": false,
|
|
7191
7141
|
"hasDynamicHelp": false,
|
|
7142
|
+
"helpValue": "<path>",
|
|
7192
7143
|
"multiple": false,
|
|
7193
|
-
"
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
"
|
|
7199
|
-
"
|
|
7200
|
-
"
|
|
7144
|
+
"type": "option"
|
|
7145
|
+
},
|
|
7146
|
+
"query": {
|
|
7147
|
+
"description": "GROQ query binding a Sanity dataset as a source",
|
|
7148
|
+
"exclusive": [
|
|
7149
|
+
"text",
|
|
7150
|
+
"url",
|
|
7151
|
+
"file"
|
|
7201
7152
|
],
|
|
7153
|
+
"name": "query",
|
|
7154
|
+
"required": false,
|
|
7155
|
+
"hasDynamicHelp": false,
|
|
7156
|
+
"multiple": false,
|
|
7202
7157
|
"type": "option"
|
|
7203
7158
|
},
|
|
7204
|
-
"
|
|
7205
|
-
"
|
|
7206
|
-
|
|
7159
|
+
"sanity-dataset": {
|
|
7160
|
+
"dependsOn": [
|
|
7161
|
+
"query"
|
|
7162
|
+
],
|
|
7163
|
+
"description": "Sanity dataset for a dataset import",
|
|
7164
|
+
"name": "sanity-dataset",
|
|
7165
|
+
"required": false,
|
|
7207
7166
|
"hasDynamicHelp": false,
|
|
7208
|
-
"helpValue": "<
|
|
7167
|
+
"helpValue": "<name>",
|
|
7209
7168
|
"multiple": false,
|
|
7210
7169
|
"type": "option"
|
|
7211
7170
|
},
|
|
7212
|
-
"
|
|
7213
|
-
"
|
|
7214
|
-
|
|
7171
|
+
"sanity-project": {
|
|
7172
|
+
"dependsOn": [
|
|
7173
|
+
"query"
|
|
7174
|
+
],
|
|
7175
|
+
"description": "Sanity project ID for a dataset import",
|
|
7176
|
+
"name": "sanity-project",
|
|
7177
|
+
"required": false,
|
|
7215
7178
|
"hasDynamicHelp": false,
|
|
7179
|
+
"helpValue": "<id>",
|
|
7216
7180
|
"multiple": false,
|
|
7217
|
-
"
|
|
7218
|
-
|
|
7219
|
-
|
|
7181
|
+
"type": "option"
|
|
7182
|
+
},
|
|
7183
|
+
"text": {
|
|
7184
|
+
"description": "Inline text content to import (requires --title)",
|
|
7185
|
+
"exclusive": [
|
|
7186
|
+
"file",
|
|
7187
|
+
"url",
|
|
7188
|
+
"query"
|
|
7220
7189
|
],
|
|
7190
|
+
"name": "text",
|
|
7191
|
+
"required": false,
|
|
7192
|
+
"hasDynamicHelp": false,
|
|
7193
|
+
"multiple": false,
|
|
7221
7194
|
"type": "option"
|
|
7222
7195
|
},
|
|
7223
|
-
"
|
|
7224
|
-
"
|
|
7225
|
-
|
|
7196
|
+
"title": {
|
|
7197
|
+
"dependsOn": [
|
|
7198
|
+
"text"
|
|
7199
|
+
],
|
|
7200
|
+
"description": "Title for an inline text import",
|
|
7201
|
+
"name": "title",
|
|
7202
|
+
"required": false,
|
|
7226
7203
|
"hasDynamicHelp": false,
|
|
7227
7204
|
"multiple": false,
|
|
7228
|
-
"
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7205
|
+
"type": "option"
|
|
7206
|
+
},
|
|
7207
|
+
"url": {
|
|
7208
|
+
"description": "Website URL to crawl",
|
|
7209
|
+
"exclusive": [
|
|
7210
|
+
"text",
|
|
7211
|
+
"file",
|
|
7212
|
+
"query"
|
|
7232
7213
|
],
|
|
7214
|
+
"name": "url",
|
|
7215
|
+
"required": false,
|
|
7216
|
+
"hasDynamicHelp": false,
|
|
7217
|
+
"helpValue": "<url>",
|
|
7218
|
+
"multiple": false,
|
|
7233
7219
|
"type": "option"
|
|
7234
7220
|
}
|
|
7235
7221
|
},
|
|
7236
7222
|
"hasDynamicHelp": false,
|
|
7237
7223
|
"hiddenAliases": [],
|
|
7238
|
-
"id": "context:
|
|
7224
|
+
"id": "context:imports:create",
|
|
7239
7225
|
"pluginAlias": "@sanity/cli",
|
|
7240
7226
|
"pluginName": "@sanity/cli",
|
|
7241
7227
|
"pluginType": "core",
|
|
7242
7228
|
"strict": true,
|
|
7243
|
-
"
|
|
7229
|
+
"telemetry": {
|
|
7230
|
+
"redactedFlags": [
|
|
7231
|
+
{
|
|
7232
|
+
"canonical": "--text",
|
|
7233
|
+
"flags": [
|
|
7234
|
+
"--text"
|
|
7235
|
+
]
|
|
7236
|
+
},
|
|
7237
|
+
{
|
|
7238
|
+
"canonical": "--file",
|
|
7239
|
+
"flags": [
|
|
7240
|
+
"--file"
|
|
7241
|
+
]
|
|
7242
|
+
},
|
|
7243
|
+
{
|
|
7244
|
+
"canonical": "--url",
|
|
7245
|
+
"flags": [
|
|
7246
|
+
"--url"
|
|
7247
|
+
]
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"canonical": "--title",
|
|
7251
|
+
"flags": [
|
|
7252
|
+
"--title"
|
|
7253
|
+
]
|
|
7254
|
+
},
|
|
7255
|
+
{
|
|
7256
|
+
"canonical": "--query",
|
|
7257
|
+
"flags": [
|
|
7258
|
+
"--query"
|
|
7259
|
+
]
|
|
7260
|
+
}
|
|
7261
|
+
]
|
|
7262
|
+
},
|
|
7244
7263
|
"isESM": true,
|
|
7245
7264
|
"relativePath": [
|
|
7246
7265
|
"dist",
|
|
7247
7266
|
"commands",
|
|
7248
7267
|
"context",
|
|
7249
|
-
"
|
|
7250
|
-
"
|
|
7268
|
+
"imports",
|
|
7269
|
+
"create.js"
|
|
7251
7270
|
]
|
|
7252
7271
|
},
|
|
7253
|
-
"context:
|
|
7272
|
+
"context:imports:delete": {
|
|
7254
7273
|
"aliases": [],
|
|
7255
7274
|
"args": {
|
|
7256
7275
|
"knowledgeBaseId": {
|
|
@@ -7258,23 +7277,35 @@
|
|
|
7258
7277
|
"name": "knowledgeBaseId",
|
|
7259
7278
|
"required": true
|
|
7260
7279
|
},
|
|
7261
|
-
"
|
|
7262
|
-
"description": "
|
|
7263
|
-
"name": "
|
|
7280
|
+
"importId": {
|
|
7281
|
+
"description": "Import ID",
|
|
7282
|
+
"name": "importId",
|
|
7264
7283
|
"required": true
|
|
7265
7284
|
}
|
|
7266
7285
|
},
|
|
7267
|
-
"description": "
|
|
7286
|
+
"description": "Delete an import from a knowledge base",
|
|
7268
7287
|
"examples": [
|
|
7269
7288
|
{
|
|
7270
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7271
|
-
"description": "
|
|
7289
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
7290
|
+
"description": "Delete an import after confirmation"
|
|
7291
|
+
},
|
|
7292
|
+
{
|
|
7293
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --yes",
|
|
7294
|
+
"description": "Delete an import without confirmation prompt"
|
|
7272
7295
|
}
|
|
7273
7296
|
],
|
|
7274
|
-
"flags": {
|
|
7297
|
+
"flags": {
|
|
7298
|
+
"yes": {
|
|
7299
|
+
"char": "y",
|
|
7300
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
7301
|
+
"name": "yes",
|
|
7302
|
+
"allowNo": false,
|
|
7303
|
+
"type": "boolean"
|
|
7304
|
+
}
|
|
7305
|
+
},
|
|
7275
7306
|
"hasDynamicHelp": false,
|
|
7276
7307
|
"hiddenAliases": [],
|
|
7277
|
-
"id": "context:
|
|
7308
|
+
"id": "context:imports:delete",
|
|
7278
7309
|
"pluginAlias": "@sanity/cli",
|
|
7279
7310
|
"pluginName": "@sanity/cli",
|
|
7280
7311
|
"pluginType": "core",
|
|
@@ -7284,11 +7315,11 @@
|
|
|
7284
7315
|
"dist",
|
|
7285
7316
|
"commands",
|
|
7286
7317
|
"context",
|
|
7287
|
-
"
|
|
7288
|
-
"
|
|
7318
|
+
"imports",
|
|
7319
|
+
"delete.js"
|
|
7289
7320
|
]
|
|
7290
7321
|
},
|
|
7291
|
-
"context:
|
|
7322
|
+
"context:imports:download": {
|
|
7292
7323
|
"aliases": [],
|
|
7293
7324
|
"args": {
|
|
7294
7325
|
"knowledgeBaseId": {
|
|
@@ -7296,234 +7327,179 @@
|
|
|
7296
7327
|
"name": "knowledgeBaseId",
|
|
7297
7328
|
"required": true
|
|
7298
7329
|
},
|
|
7299
|
-
"
|
|
7300
|
-
"description": "
|
|
7301
|
-
"name": "
|
|
7330
|
+
"importId": {
|
|
7331
|
+
"description": "Import ID",
|
|
7332
|
+
"name": "importId",
|
|
7302
7333
|
"required": true
|
|
7303
7334
|
}
|
|
7304
7335
|
},
|
|
7305
|
-
"description": "
|
|
7336
|
+
"description": "Get a short-lived signed URL for the original uploaded bytes of a file import",
|
|
7306
7337
|
"examples": [
|
|
7307
7338
|
{
|
|
7308
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
7309
|
-
"description": "
|
|
7310
|
-
},
|
|
7311
|
-
{
|
|
7312
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 1 --watch",
|
|
7313
|
-
"description": "Choose side 1 and wait for the entry to be rewritten"
|
|
7314
|
-
},
|
|
7315
|
-
{
|
|
7316
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 0",
|
|
7317
|
-
"description": "Keep the entry as it is (for a conflict on a single entry)"
|
|
7339
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
7340
|
+
"description": "Get a download URL for an uploaded file"
|
|
7318
7341
|
}
|
|
7319
7342
|
],
|
|
7320
7343
|
"flags": {
|
|
7321
|
-
"
|
|
7322
|
-
"description": "
|
|
7323
|
-
"
|
|
7324
|
-
"
|
|
7325
|
-
"multiple": false,
|
|
7326
|
-
"type": "option"
|
|
7327
|
-
},
|
|
7328
|
-
"watch": {
|
|
7329
|
-
"description": "Wait for the entry rewrite to finish, exiting non-zero if it fails",
|
|
7330
|
-
"name": "watch",
|
|
7344
|
+
"json": {
|
|
7345
|
+
"description": "Format output as json.",
|
|
7346
|
+
"helpGroup": "GLOBAL",
|
|
7347
|
+
"name": "json",
|
|
7331
7348
|
"allowNo": false,
|
|
7332
7349
|
"type": "boolean"
|
|
7333
7350
|
}
|
|
7334
7351
|
},
|
|
7335
7352
|
"hasDynamicHelp": false,
|
|
7336
7353
|
"hiddenAliases": [],
|
|
7337
|
-
"id": "context:
|
|
7354
|
+
"id": "context:imports:download",
|
|
7338
7355
|
"pluginAlias": "@sanity/cli",
|
|
7339
7356
|
"pluginName": "@sanity/cli",
|
|
7340
7357
|
"pluginType": "core",
|
|
7341
7358
|
"strict": true,
|
|
7359
|
+
"enableJsonFlag": true,
|
|
7342
7360
|
"isESM": true,
|
|
7343
7361
|
"relativePath": [
|
|
7344
7362
|
"dist",
|
|
7345
7363
|
"commands",
|
|
7346
7364
|
"context",
|
|
7347
|
-
"
|
|
7348
|
-
"
|
|
7365
|
+
"imports",
|
|
7366
|
+
"download.js"
|
|
7349
7367
|
]
|
|
7350
7368
|
},
|
|
7351
|
-
"
|
|
7369
|
+
"context:imports:get": {
|
|
7352
7370
|
"aliases": [],
|
|
7353
7371
|
"args": {
|
|
7354
|
-
"
|
|
7355
|
-
"description": "
|
|
7356
|
-
"name": "
|
|
7357
|
-
"required":
|
|
7372
|
+
"knowledgeBaseId": {
|
|
7373
|
+
"description": "Knowledge base ID",
|
|
7374
|
+
"name": "knowledgeBaseId",
|
|
7375
|
+
"required": true
|
|
7358
7376
|
},
|
|
7359
|
-
"
|
|
7360
|
-
"description": "
|
|
7361
|
-
"name": "
|
|
7362
|
-
"required":
|
|
7377
|
+
"importId": {
|
|
7378
|
+
"description": "Import ID",
|
|
7379
|
+
"name": "importId",
|
|
7380
|
+
"required": true
|
|
7363
7381
|
}
|
|
7364
7382
|
},
|
|
7365
|
-
"description": "
|
|
7383
|
+
"description": "Get details of an import",
|
|
7366
7384
|
"examples": [
|
|
7367
7385
|
{
|
|
7368
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7369
|
-
"description": "
|
|
7370
|
-
},
|
|
7371
|
-
{
|
|
7372
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
7373
|
-
"description": "Create an alias with interactive prompts"
|
|
7374
|
-
},
|
|
7375
|
-
{
|
|
7376
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
7377
|
-
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
7386
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
7387
|
+
"description": "Get details of a specific import"
|
|
7378
7388
|
},
|
|
7379
7389
|
{
|
|
7380
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7381
|
-
"description": "
|
|
7390
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --json",
|
|
7391
|
+
"description": "Output the import as JSON"
|
|
7382
7392
|
}
|
|
7383
7393
|
],
|
|
7384
7394
|
"flags": {
|
|
7385
|
-
"
|
|
7386
|
-
"
|
|
7387
|
-
"
|
|
7388
|
-
"
|
|
7389
|
-
"
|
|
7390
|
-
"
|
|
7391
|
-
"helpValue": "<id>",
|
|
7392
|
-
"multiple": false,
|
|
7393
|
-
"type": "option"
|
|
7395
|
+
"json": {
|
|
7396
|
+
"description": "Format output as json.",
|
|
7397
|
+
"helpGroup": "GLOBAL",
|
|
7398
|
+
"name": "json",
|
|
7399
|
+
"allowNo": false,
|
|
7400
|
+
"type": "boolean"
|
|
7394
7401
|
}
|
|
7395
7402
|
},
|
|
7396
7403
|
"hasDynamicHelp": false,
|
|
7397
|
-
"hiddenAliases": [
|
|
7398
|
-
|
|
7399
|
-
],
|
|
7400
|
-
"id": "datasets:alias:create",
|
|
7404
|
+
"hiddenAliases": [],
|
|
7405
|
+
"id": "context:imports:get",
|
|
7401
7406
|
"pluginAlias": "@sanity/cli",
|
|
7402
7407
|
"pluginName": "@sanity/cli",
|
|
7403
7408
|
"pluginType": "core",
|
|
7404
7409
|
"strict": true,
|
|
7410
|
+
"enableJsonFlag": true,
|
|
7405
7411
|
"isESM": true,
|
|
7406
7412
|
"relativePath": [
|
|
7407
7413
|
"dist",
|
|
7408
7414
|
"commands",
|
|
7409
|
-
"
|
|
7410
|
-
"
|
|
7411
|
-
"
|
|
7415
|
+
"context",
|
|
7416
|
+
"imports",
|
|
7417
|
+
"get.js"
|
|
7412
7418
|
]
|
|
7413
7419
|
},
|
|
7414
|
-
"
|
|
7420
|
+
"context:imports:list": {
|
|
7415
7421
|
"aliases": [],
|
|
7416
7422
|
"args": {
|
|
7417
|
-
"
|
|
7418
|
-
"description": "
|
|
7419
|
-
"name": "
|
|
7423
|
+
"knowledgeBaseId": {
|
|
7424
|
+
"description": "Knowledge base ID",
|
|
7425
|
+
"name": "knowledgeBaseId",
|
|
7420
7426
|
"required": true
|
|
7421
7427
|
}
|
|
7422
7428
|
},
|
|
7423
|
-
"description": "
|
|
7429
|
+
"description": "List imports for a knowledge base",
|
|
7424
7430
|
"examples": [
|
|
7425
7431
|
{
|
|
7426
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7427
|
-
"description": "
|
|
7432
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7433
|
+
"description": "List all imports for a knowledge base"
|
|
7428
7434
|
},
|
|
7429
7435
|
{
|
|
7430
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7431
|
-
"description": "
|
|
7436
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7437
|
+
"description": "Output imports as JSON"
|
|
7432
7438
|
}
|
|
7433
7439
|
],
|
|
7434
7440
|
"flags": {
|
|
7435
|
-
"
|
|
7436
|
-
"
|
|
7437
|
-
"
|
|
7438
|
-
"
|
|
7439
|
-
"name": "project-id",
|
|
7440
|
-
"hasDynamicHelp": false,
|
|
7441
|
-
"helpValue": "<id>",
|
|
7442
|
-
"multiple": false,
|
|
7443
|
-
"type": "option"
|
|
7444
|
-
},
|
|
7445
|
-
"force": {
|
|
7446
|
-
"description": "Skip confirmation prompt and delete immediately",
|
|
7447
|
-
"name": "force",
|
|
7441
|
+
"json": {
|
|
7442
|
+
"description": "Format output as json.",
|
|
7443
|
+
"helpGroup": "GLOBAL",
|
|
7444
|
+
"name": "json",
|
|
7448
7445
|
"allowNo": false,
|
|
7449
7446
|
"type": "boolean"
|
|
7450
7447
|
}
|
|
7451
7448
|
},
|
|
7452
7449
|
"hasDynamicHelp": false,
|
|
7453
|
-
"hiddenAliases": [
|
|
7454
|
-
|
|
7455
|
-
],
|
|
7456
|
-
"id": "datasets:alias:delete",
|
|
7450
|
+
"hiddenAliases": [],
|
|
7451
|
+
"id": "context:imports:list",
|
|
7457
7452
|
"pluginAlias": "@sanity/cli",
|
|
7458
7453
|
"pluginName": "@sanity/cli",
|
|
7459
7454
|
"pluginType": "core",
|
|
7460
7455
|
"strict": true,
|
|
7456
|
+
"enableJsonFlag": true,
|
|
7461
7457
|
"isESM": true,
|
|
7462
7458
|
"relativePath": [
|
|
7463
7459
|
"dist",
|
|
7464
7460
|
"commands",
|
|
7465
|
-
"
|
|
7466
|
-
"
|
|
7467
|
-
"
|
|
7461
|
+
"context",
|
|
7462
|
+
"imports",
|
|
7463
|
+
"list.js"
|
|
7468
7464
|
]
|
|
7469
7465
|
},
|
|
7470
|
-
"
|
|
7466
|
+
"context:issues:apply": {
|
|
7471
7467
|
"aliases": [],
|
|
7472
7468
|
"args": {
|
|
7473
|
-
"
|
|
7474
|
-
"description": "
|
|
7475
|
-
"name": "
|
|
7476
|
-
"required":
|
|
7469
|
+
"knowledgeBaseId": {
|
|
7470
|
+
"description": "Knowledge base ID",
|
|
7471
|
+
"name": "knowledgeBaseId",
|
|
7472
|
+
"required": true
|
|
7477
7473
|
},
|
|
7478
|
-
"
|
|
7479
|
-
"description": "
|
|
7480
|
-
"
|
|
7481
|
-
"
|
|
7474
|
+
"issueId": {
|
|
7475
|
+
"description": "ID of an issue to accept and apply (pass several to apply them in one batch). Conflicts can't be applied; resolve them with `sanity context issues resolve`",
|
|
7476
|
+
"multiple": true,
|
|
7477
|
+
"name": "issueId",
|
|
7478
|
+
"required": true
|
|
7482
7479
|
}
|
|
7483
7480
|
},
|
|
7484
|
-
"description": "
|
|
7481
|
+
"description": "Accept and apply issues to a knowledge base",
|
|
7485
7482
|
"examples": [
|
|
7486
7483
|
{
|
|
7487
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
7488
|
-
"description": "
|
|
7489
|
-
},
|
|
7490
|
-
{
|
|
7491
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
7492
|
-
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
7493
|
-
},
|
|
7494
|
-
{
|
|
7495
|
-
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
7496
|
-
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
7484
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 issue.ghi789",
|
|
7485
|
+
"description": "Accept and apply two issues in one batch"
|
|
7497
7486
|
},
|
|
7498
7487
|
{
|
|
7499
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7500
|
-
"description": "
|
|
7488
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --watch",
|
|
7489
|
+
"description": "Apply an issue and wait for it to finish (non-zero exit on failure)"
|
|
7501
7490
|
}
|
|
7502
7491
|
],
|
|
7503
7492
|
"flags": {
|
|
7504
|
-
"
|
|
7505
|
-
"
|
|
7506
|
-
"
|
|
7507
|
-
"helpGroup": "OVERRIDE",
|
|
7508
|
-
"name": "project-id",
|
|
7509
|
-
"hasDynamicHelp": false,
|
|
7510
|
-
"helpValue": "<id>",
|
|
7511
|
-
"multiple": false,
|
|
7512
|
-
"type": "option"
|
|
7513
|
-
},
|
|
7514
|
-
"force": {
|
|
7515
|
-
"description": "Skip confirmation prompt when relinking existing alias",
|
|
7516
|
-
"name": "force",
|
|
7517
|
-
"required": false,
|
|
7493
|
+
"watch": {
|
|
7494
|
+
"description": "Wait for the apply to finish, exiting non-zero if it fails",
|
|
7495
|
+
"name": "watch",
|
|
7518
7496
|
"allowNo": false,
|
|
7519
7497
|
"type": "boolean"
|
|
7520
7498
|
}
|
|
7521
7499
|
},
|
|
7522
7500
|
"hasDynamicHelp": false,
|
|
7523
|
-
"hiddenAliases": [
|
|
7524
|
-
|
|
7525
|
-
],
|
|
7526
|
-
"id": "datasets:alias:link",
|
|
7501
|
+
"hiddenAliases": [],
|
|
7502
|
+
"id": "context:issues:apply",
|
|
7527
7503
|
"pluginAlias": "@sanity/cli",
|
|
7528
7504
|
"pluginName": "@sanity/cli",
|
|
7529
7505
|
"pluginType": "core",
|
|
@@ -7532,58 +7508,36 @@
|
|
|
7532
7508
|
"relativePath": [
|
|
7533
7509
|
"dist",
|
|
7534
7510
|
"commands",
|
|
7535
|
-
"
|
|
7536
|
-
"
|
|
7537
|
-
"
|
|
7511
|
+
"context",
|
|
7512
|
+
"issues",
|
|
7513
|
+
"apply.js"
|
|
7538
7514
|
]
|
|
7539
7515
|
},
|
|
7540
|
-
"
|
|
7516
|
+
"context:issues:dismiss": {
|
|
7541
7517
|
"aliases": [],
|
|
7542
7518
|
"args": {
|
|
7543
|
-
"
|
|
7544
|
-
"description": "
|
|
7545
|
-
"name": "
|
|
7546
|
-
"required":
|
|
7519
|
+
"knowledgeBaseId": {
|
|
7520
|
+
"description": "Knowledge base ID",
|
|
7521
|
+
"name": "knowledgeBaseId",
|
|
7522
|
+
"required": true
|
|
7523
|
+
},
|
|
7524
|
+
"issueId": {
|
|
7525
|
+
"description": "Issue ID",
|
|
7526
|
+
"name": "issueId",
|
|
7527
|
+
"required": true
|
|
7547
7528
|
}
|
|
7548
7529
|
},
|
|
7549
|
-
"description": "
|
|
7530
|
+
"description": "Dismiss an issue\n\nDismissing is permanent: dismissed issues can't be reopened.",
|
|
7550
7531
|
"examples": [
|
|
7551
7532
|
{
|
|
7552
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
7553
|
-
"description": "
|
|
7554
|
-
},
|
|
7555
|
-
{
|
|
7556
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
7557
|
-
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
7558
|
-
},
|
|
7559
|
-
{
|
|
7560
|
-
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
7561
|
-
"description": "Unlink alias \"conference\" without confirmation prompt"
|
|
7533
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7534
|
+
"description": "Dismiss an issue"
|
|
7562
7535
|
}
|
|
7563
7536
|
],
|
|
7564
|
-
"flags": {
|
|
7565
|
-
"project-id": {
|
|
7566
|
-
"char": "p",
|
|
7567
|
-
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
7568
|
-
"helpGroup": "OVERRIDE",
|
|
7569
|
-
"name": "project-id",
|
|
7570
|
-
"hasDynamicHelp": false,
|
|
7571
|
-
"helpValue": "<id>",
|
|
7572
|
-
"multiple": false,
|
|
7573
|
-
"type": "option"
|
|
7574
|
-
},
|
|
7575
|
-
"force": {
|
|
7576
|
-
"description": "Skip confirmation prompt and unlink immediately",
|
|
7577
|
-
"name": "force",
|
|
7578
|
-
"allowNo": false,
|
|
7579
|
-
"type": "boolean"
|
|
7580
|
-
}
|
|
7581
|
-
},
|
|
7537
|
+
"flags": {},
|
|
7582
7538
|
"hasDynamicHelp": false,
|
|
7583
|
-
"hiddenAliases": [
|
|
7584
|
-
|
|
7585
|
-
],
|
|
7586
|
-
"id": "datasets:alias:unlink",
|
|
7539
|
+
"hiddenAliases": [],
|
|
7540
|
+
"id": "context:issues:dismiss",
|
|
7587
7541
|
"pluginAlias": "@sanity/cli",
|
|
7588
7542
|
"pluginName": "@sanity/cli",
|
|
7589
7543
|
"pluginType": "core",
|
|
@@ -7592,158 +7546,192 @@
|
|
|
7592
7546
|
"relativePath": [
|
|
7593
7547
|
"dist",
|
|
7594
7548
|
"commands",
|
|
7595
|
-
"
|
|
7596
|
-
"
|
|
7597
|
-
"
|
|
7549
|
+
"context",
|
|
7550
|
+
"issues",
|
|
7551
|
+
"dismiss.js"
|
|
7598
7552
|
]
|
|
7599
7553
|
},
|
|
7600
|
-
"
|
|
7554
|
+
"context:issues:get": {
|
|
7601
7555
|
"aliases": [],
|
|
7602
7556
|
"args": {
|
|
7603
|
-
"
|
|
7604
|
-
"description": "
|
|
7605
|
-
"name": "
|
|
7606
|
-
"required":
|
|
7557
|
+
"knowledgeBaseId": {
|
|
7558
|
+
"description": "Knowledge base ID",
|
|
7559
|
+
"name": "knowledgeBaseId",
|
|
7560
|
+
"required": true
|
|
7561
|
+
},
|
|
7562
|
+
"issueId": {
|
|
7563
|
+
"description": "Issue ID",
|
|
7564
|
+
"name": "issueId",
|
|
7565
|
+
"required": true
|
|
7607
7566
|
}
|
|
7608
7567
|
},
|
|
7609
|
-
"description": "
|
|
7568
|
+
"description": "Get details of an issue",
|
|
7610
7569
|
"examples": [
|
|
7611
7570
|
{
|
|
7612
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7613
|
-
"description": "
|
|
7571
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7572
|
+
"description": "Get details of a specific issue"
|
|
7573
|
+
},
|
|
7574
|
+
{
|
|
7575
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
|
|
7576
|
+
"description": "Output the issue as JSON"
|
|
7614
7577
|
}
|
|
7615
7578
|
],
|
|
7616
7579
|
"flags": {
|
|
7617
|
-
"
|
|
7618
|
-
"
|
|
7619
|
-
"
|
|
7620
|
-
"
|
|
7621
|
-
"
|
|
7622
|
-
"
|
|
7623
|
-
"helpValue": "<id>",
|
|
7624
|
-
"multiple": false,
|
|
7625
|
-
"type": "option"
|
|
7580
|
+
"json": {
|
|
7581
|
+
"description": "Format output as json.",
|
|
7582
|
+
"helpGroup": "GLOBAL",
|
|
7583
|
+
"name": "json",
|
|
7584
|
+
"allowNo": false,
|
|
7585
|
+
"type": "boolean"
|
|
7626
7586
|
}
|
|
7627
7587
|
},
|
|
7628
7588
|
"hasDynamicHelp": false,
|
|
7629
|
-
"hiddenAliases": [
|
|
7630
|
-
|
|
7631
|
-
],
|
|
7632
|
-
"id": "datasets:embeddings:disable",
|
|
7589
|
+
"hiddenAliases": [],
|
|
7590
|
+
"id": "context:issues:get",
|
|
7633
7591
|
"pluginAlias": "@sanity/cli",
|
|
7634
7592
|
"pluginName": "@sanity/cli",
|
|
7635
7593
|
"pluginType": "core",
|
|
7636
7594
|
"strict": true,
|
|
7595
|
+
"enableJsonFlag": true,
|
|
7637
7596
|
"isESM": true,
|
|
7638
7597
|
"relativePath": [
|
|
7639
7598
|
"dist",
|
|
7640
7599
|
"commands",
|
|
7641
|
-
"
|
|
7642
|
-
"
|
|
7643
|
-
"
|
|
7600
|
+
"context",
|
|
7601
|
+
"issues",
|
|
7602
|
+
"get.js"
|
|
7644
7603
|
]
|
|
7645
7604
|
},
|
|
7646
|
-
"
|
|
7605
|
+
"context:issues:list": {
|
|
7647
7606
|
"aliases": [],
|
|
7648
7607
|
"args": {
|
|
7649
|
-
"
|
|
7650
|
-
"description": "
|
|
7651
|
-
"name": "
|
|
7652
|
-
"required":
|
|
7608
|
+
"knowledgeBaseId": {
|
|
7609
|
+
"description": "Knowledge base ID",
|
|
7610
|
+
"name": "knowledgeBaseId",
|
|
7611
|
+
"required": true
|
|
7653
7612
|
}
|
|
7654
7613
|
},
|
|
7655
|
-
"description": "
|
|
7614
|
+
"description": "List issues found by knowledge base builds",
|
|
7656
7615
|
"examples": [
|
|
7657
7616
|
{
|
|
7658
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7659
|
-
"description": "
|
|
7617
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7618
|
+
"description": "List all issues for a knowledge base"
|
|
7660
7619
|
},
|
|
7661
7620
|
{
|
|
7662
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7663
|
-
"description": "
|
|
7621
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
|
|
7622
|
+
"description": "List issues awaiting triage"
|
|
7664
7623
|
},
|
|
7665
7624
|
{
|
|
7666
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7667
|
-
"description": "
|
|
7625
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
|
|
7626
|
+
"description": "List critical conflicts"
|
|
7627
|
+
},
|
|
7628
|
+
{
|
|
7629
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
|
|
7630
|
+
"description": "List issues about entries under billing/"
|
|
7631
|
+
},
|
|
7632
|
+
{
|
|
7633
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7634
|
+
"description": "Output issues as JSON"
|
|
7668
7635
|
}
|
|
7669
7636
|
],
|
|
7670
7637
|
"flags": {
|
|
7671
|
-
"
|
|
7672
|
-
"
|
|
7673
|
-
"
|
|
7674
|
-
"
|
|
7675
|
-
"
|
|
7638
|
+
"json": {
|
|
7639
|
+
"description": "Format output as json.",
|
|
7640
|
+
"helpGroup": "GLOBAL",
|
|
7641
|
+
"name": "json",
|
|
7642
|
+
"allowNo": false,
|
|
7643
|
+
"type": "boolean"
|
|
7644
|
+
},
|
|
7645
|
+
"kind": {
|
|
7646
|
+
"description": "Only list issues of this kind",
|
|
7647
|
+
"name": "kind",
|
|
7676
7648
|
"hasDynamicHelp": false,
|
|
7677
|
-
"helpValue": "<id>",
|
|
7678
7649
|
"multiple": false,
|
|
7650
|
+
"options": [
|
|
7651
|
+
"add_entry",
|
|
7652
|
+
"conflict",
|
|
7653
|
+
"gap",
|
|
7654
|
+
"merge_entry",
|
|
7655
|
+
"remove_entry",
|
|
7656
|
+
"split_entry",
|
|
7657
|
+
"update_required"
|
|
7658
|
+
],
|
|
7679
7659
|
"type": "option"
|
|
7680
7660
|
},
|
|
7681
|
-
"
|
|
7682
|
-
"description": "
|
|
7683
|
-
"name": "
|
|
7684
|
-
"required": false,
|
|
7661
|
+
"scope": {
|
|
7662
|
+
"description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
|
|
7663
|
+
"name": "scope",
|
|
7685
7664
|
"hasDynamicHelp": false,
|
|
7665
|
+
"helpValue": "<path>",
|
|
7686
7666
|
"multiple": false,
|
|
7687
7667
|
"type": "option"
|
|
7688
7668
|
},
|
|
7689
|
-
"
|
|
7690
|
-
"description": "
|
|
7691
|
-
"name": "
|
|
7692
|
-
"
|
|
7693
|
-
"
|
|
7669
|
+
"severity": {
|
|
7670
|
+
"description": "Only list issues of this severity",
|
|
7671
|
+
"name": "severity",
|
|
7672
|
+
"hasDynamicHelp": false,
|
|
7673
|
+
"multiple": false,
|
|
7674
|
+
"options": [
|
|
7675
|
+
"critical",
|
|
7676
|
+
"suggestion"
|
|
7677
|
+
],
|
|
7678
|
+
"type": "option"
|
|
7679
|
+
},
|
|
7680
|
+
"status": {
|
|
7681
|
+
"description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
|
|
7682
|
+
"name": "status",
|
|
7683
|
+
"hasDynamicHelp": false,
|
|
7684
|
+
"multiple": false,
|
|
7685
|
+
"options": [
|
|
7686
|
+
"open",
|
|
7687
|
+
"accepted",
|
|
7688
|
+
"rejected"
|
|
7689
|
+
],
|
|
7690
|
+
"type": "option"
|
|
7694
7691
|
}
|
|
7695
7692
|
},
|
|
7696
7693
|
"hasDynamicHelp": false,
|
|
7697
|
-
"hiddenAliases": [
|
|
7698
|
-
|
|
7699
|
-
],
|
|
7700
|
-
"id": "datasets:embeddings:enable",
|
|
7694
|
+
"hiddenAliases": [],
|
|
7695
|
+
"id": "context:issues:list",
|
|
7701
7696
|
"pluginAlias": "@sanity/cli",
|
|
7702
7697
|
"pluginName": "@sanity/cli",
|
|
7703
7698
|
"pluginType": "core",
|
|
7704
7699
|
"strict": true,
|
|
7700
|
+
"enableJsonFlag": true,
|
|
7705
7701
|
"isESM": true,
|
|
7706
7702
|
"relativePath": [
|
|
7707
7703
|
"dist",
|
|
7708
7704
|
"commands",
|
|
7709
|
-
"
|
|
7710
|
-
"
|
|
7711
|
-
"
|
|
7705
|
+
"context",
|
|
7706
|
+
"issues",
|
|
7707
|
+
"list.js"
|
|
7712
7708
|
]
|
|
7713
7709
|
},
|
|
7714
|
-
"
|
|
7710
|
+
"context:issues:reopen": {
|
|
7715
7711
|
"aliases": [],
|
|
7716
7712
|
"args": {
|
|
7717
|
-
"
|
|
7718
|
-
"description": "
|
|
7719
|
-
"name": "
|
|
7720
|
-
"required":
|
|
7713
|
+
"knowledgeBaseId": {
|
|
7714
|
+
"description": "Knowledge base ID",
|
|
7715
|
+
"name": "knowledgeBaseId",
|
|
7716
|
+
"required": true
|
|
7717
|
+
},
|
|
7718
|
+
"issueId": {
|
|
7719
|
+
"description": "Issue ID",
|
|
7720
|
+
"name": "issueId",
|
|
7721
|
+
"required": true
|
|
7721
7722
|
}
|
|
7722
7723
|
},
|
|
7723
|
-
"description": "
|
|
7724
|
+
"description": "Reopen a resolved conflict issue",
|
|
7724
7725
|
"examples": [
|
|
7725
7726
|
{
|
|
7726
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7727
|
-
"description": "
|
|
7727
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7728
|
+
"description": "Return a resolved conflict issue to triage"
|
|
7728
7729
|
}
|
|
7729
7730
|
],
|
|
7730
|
-
"flags": {
|
|
7731
|
-
"project-id": {
|
|
7732
|
-
"char": "p",
|
|
7733
|
-
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
7734
|
-
"helpGroup": "OVERRIDE",
|
|
7735
|
-
"name": "project-id",
|
|
7736
|
-
"hasDynamicHelp": false,
|
|
7737
|
-
"helpValue": "<id>",
|
|
7738
|
-
"multiple": false,
|
|
7739
|
-
"type": "option"
|
|
7740
|
-
}
|
|
7741
|
-
},
|
|
7731
|
+
"flags": {},
|
|
7742
7732
|
"hasDynamicHelp": false,
|
|
7743
|
-
"hiddenAliases": [
|
|
7744
|
-
|
|
7745
|
-
],
|
|
7746
|
-
"id": "datasets:embeddings:status",
|
|
7733
|
+
"hiddenAliases": [],
|
|
7734
|
+
"id": "context:issues:reopen",
|
|
7747
7735
|
"pluginAlias": "@sanity/cli",
|
|
7748
7736
|
"pluginName": "@sanity/cli",
|
|
7749
7737
|
"pluginType": "core",
|
|
@@ -7752,44 +7740,58 @@
|
|
|
7752
7740
|
"relativePath": [
|
|
7753
7741
|
"dist",
|
|
7754
7742
|
"commands",
|
|
7755
|
-
"
|
|
7756
|
-
"
|
|
7757
|
-
"
|
|
7743
|
+
"context",
|
|
7744
|
+
"issues",
|
|
7745
|
+
"reopen.js"
|
|
7758
7746
|
]
|
|
7759
7747
|
},
|
|
7760
|
-
"
|
|
7748
|
+
"context:issues:resolve": {
|
|
7761
7749
|
"aliases": [],
|
|
7762
7750
|
"args": {
|
|
7763
|
-
"
|
|
7764
|
-
"description": "
|
|
7765
|
-
"name": "
|
|
7751
|
+
"knowledgeBaseId": {
|
|
7752
|
+
"description": "Knowledge base ID",
|
|
7753
|
+
"name": "knowledgeBaseId",
|
|
7754
|
+
"required": true
|
|
7755
|
+
},
|
|
7756
|
+
"issueId": {
|
|
7757
|
+
"description": "Issue ID",
|
|
7758
|
+
"name": "issueId",
|
|
7766
7759
|
"required": true
|
|
7767
7760
|
}
|
|
7768
7761
|
},
|
|
7769
|
-
"description": "
|
|
7762
|
+
"description": "Resolve a conflict issue by choosing the correct side\n\nResolving also creates a standing instruction that future builds follow. `sanity context issues reopen` removes it.",
|
|
7770
7763
|
"examples": [
|
|
7771
7764
|
{
|
|
7772
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7773
|
-
"description": "
|
|
7765
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7766
|
+
"description": "Interactively choose the correct side of a conflict"
|
|
7767
|
+
},
|
|
7768
|
+
{
|
|
7769
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 1 --watch",
|
|
7770
|
+
"description": "Choose side 1 and wait for the entry to be rewritten"
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 0",
|
|
7774
|
+
"description": "Keep the entry as it is (for a conflict on a single entry)"
|
|
7774
7775
|
}
|
|
7775
7776
|
],
|
|
7776
7777
|
"flags": {
|
|
7777
|
-
"
|
|
7778
|
-
"
|
|
7779
|
-
"
|
|
7780
|
-
"helpGroup": "OVERRIDE",
|
|
7781
|
-
"name": "project-id",
|
|
7778
|
+
"side": {
|
|
7779
|
+
"description": "Index of the correct side, as listed by `sanity context issues get`",
|
|
7780
|
+
"name": "side",
|
|
7782
7781
|
"hasDynamicHelp": false,
|
|
7783
|
-
"helpValue": "<id>",
|
|
7784
7782
|
"multiple": false,
|
|
7785
7783
|
"type": "option"
|
|
7784
|
+
},
|
|
7785
|
+
"watch": {
|
|
7786
|
+
"description": "Wait for the entry rewrite to finish, exiting non-zero if it fails",
|
|
7787
|
+
"name": "watch",
|
|
7788
|
+
"allowNo": false,
|
|
7789
|
+
"type": "boolean"
|
|
7786
7790
|
}
|
|
7787
7791
|
},
|
|
7788
7792
|
"hasDynamicHelp": false,
|
|
7789
|
-
"hiddenAliases": [
|
|
7790
|
-
|
|
7791
|
-
],
|
|
7792
|
-
"id": "datasets:visibility:get",
|
|
7793
|
+
"hiddenAliases": [],
|
|
7794
|
+
"id": "context:issues:resolve",
|
|
7793
7795
|
"pluginAlias": "@sanity/cli",
|
|
7794
7796
|
"pluginName": "@sanity/cli",
|
|
7795
7797
|
"pluginType": "core",
|
|
@@ -7798,70 +7800,68 @@
|
|
|
7798
7800
|
"relativePath": [
|
|
7799
7801
|
"dist",
|
|
7800
7802
|
"commands",
|
|
7801
|
-
"
|
|
7802
|
-
"
|
|
7803
|
-
"
|
|
7803
|
+
"context",
|
|
7804
|
+
"issues",
|
|
7805
|
+
"resolve.js"
|
|
7804
7806
|
]
|
|
7805
7807
|
},
|
|
7806
|
-
"
|
|
7808
|
+
"context:jobs:get": {
|
|
7807
7809
|
"aliases": [],
|
|
7808
7810
|
"args": {
|
|
7809
|
-
"
|
|
7810
|
-
"description": "
|
|
7811
|
-
"name": "
|
|
7811
|
+
"knowledgeBaseId": {
|
|
7812
|
+
"description": "Knowledge base ID",
|
|
7813
|
+
"name": "knowledgeBaseId",
|
|
7812
7814
|
"required": true
|
|
7813
7815
|
},
|
|
7814
|
-
"
|
|
7815
|
-
"description": "
|
|
7816
|
-
"name": "
|
|
7817
|
-
"options": [
|
|
7818
|
-
"public",
|
|
7819
|
-
"private"
|
|
7820
|
-
],
|
|
7816
|
+
"jobId": {
|
|
7817
|
+
"description": "Job ID",
|
|
7818
|
+
"name": "jobId",
|
|
7821
7819
|
"required": true
|
|
7822
7820
|
}
|
|
7823
7821
|
},
|
|
7824
|
-
"description": "
|
|
7822
|
+
"description": "Get the status of a knowledge base job",
|
|
7825
7823
|
"examples": [
|
|
7826
7824
|
{
|
|
7827
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7828
|
-
"description": "
|
|
7825
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
|
|
7826
|
+
"description": "Get the current status of a job"
|
|
7829
7827
|
},
|
|
7830
7828
|
{
|
|
7831
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7832
|
-
"description": "
|
|
7829
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
|
|
7830
|
+
"description": "Wait for the job to finish (non-zero exit if it does not succeed)"
|
|
7833
7831
|
}
|
|
7834
7832
|
],
|
|
7835
7833
|
"flags": {
|
|
7836
|
-
"
|
|
7837
|
-
"
|
|
7838
|
-
"
|
|
7839
|
-
"
|
|
7840
|
-
"
|
|
7841
|
-
"
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
"
|
|
7834
|
+
"json": {
|
|
7835
|
+
"description": "Format output as json.",
|
|
7836
|
+
"helpGroup": "GLOBAL",
|
|
7837
|
+
"name": "json",
|
|
7838
|
+
"allowNo": false,
|
|
7839
|
+
"type": "boolean"
|
|
7840
|
+
},
|
|
7841
|
+
"watch": {
|
|
7842
|
+
"description": "Poll until the job reaches a terminal state",
|
|
7843
|
+
"name": "watch",
|
|
7844
|
+
"allowNo": false,
|
|
7845
|
+
"type": "boolean"
|
|
7845
7846
|
}
|
|
7846
7847
|
},
|
|
7847
7848
|
"hasDynamicHelp": false,
|
|
7848
|
-
"hiddenAliases": [
|
|
7849
|
-
|
|
7850
|
-
],
|
|
7851
|
-
"id": "datasets:visibility:set",
|
|
7849
|
+
"hiddenAliases": [],
|
|
7850
|
+
"id": "context:jobs:get",
|
|
7852
7851
|
"pluginAlias": "@sanity/cli",
|
|
7853
7852
|
"pluginName": "@sanity/cli",
|
|
7854
7853
|
"pluginType": "core",
|
|
7855
7854
|
"strict": true,
|
|
7855
|
+
"enableJsonFlag": true,
|
|
7856
7856
|
"isESM": true,
|
|
7857
7857
|
"relativePath": [
|
|
7858
7858
|
"dist",
|
|
7859
7859
|
"commands",
|
|
7860
|
-
"
|
|
7861
|
-
"
|
|
7862
|
-
"
|
|
7860
|
+
"context",
|
|
7861
|
+
"jobs",
|
|
7862
|
+
"get.js"
|
|
7863
7863
|
]
|
|
7864
7864
|
}
|
|
7865
7865
|
},
|
|
7866
|
-
"version": "8.
|
|
7866
|
+
"version": "8.24.0"
|
|
7867
7867
|
}
|