@sanity/cli 8.15.0 → 8.16.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/dist/actions/typegen/fetchResourceSchema.js +40 -0
- package/dist/actions/typegen/fetchResourceSchema.js.map +1 -0
- package/dist/actions/typegen/generateResourceTypes.js +115 -0
- package/dist/actions/typegen/generateResourceTypes.js.map +1 -0
- package/dist/actions/typegen/parseTypegenResources.js +92 -0
- package/dist/actions/typegen/parseTypegenResources.js.map +1 -0
- package/dist/commands/typegen/generate.js +59 -5
- package/dist/commands/typegen/generate.js.map +1 -1
- package/dist/server/vite/plugin-typegen.js +10 -0
- package/dist/server/vite/plugin-typegen.js.map +1 -1
- package/dist/services/schemas.js +36 -0
- package/dist/services/schemas.js.map +1 -1
- package/oclif.manifest.json +1506 -1506
- package/package.json +5 -4
package/oclif.manifest.json
CHANGED
|
@@ -1773,63 +1773,38 @@
|
|
|
1773
1773
|
"list.js"
|
|
1774
1774
|
]
|
|
1775
1775
|
},
|
|
1776
|
-
"
|
|
1776
|
+
"cors:add": {
|
|
1777
1777
|
"aliases": [],
|
|
1778
1778
|
"args": {
|
|
1779
|
-
"
|
|
1780
|
-
"description": "
|
|
1781
|
-
"name": "
|
|
1782
|
-
"required":
|
|
1783
|
-
},
|
|
1784
|
-
"target": {
|
|
1785
|
-
"description": "Name of the dataset to copy to",
|
|
1786
|
-
"name": "target",
|
|
1787
|
-
"required": false
|
|
1779
|
+
"origin": {
|
|
1780
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1781
|
+
"name": "origin",
|
|
1782
|
+
"required": true
|
|
1788
1783
|
}
|
|
1789
1784
|
},
|
|
1790
|
-
"description": "
|
|
1785
|
+
"description": "Add a CORS origin to the project",
|
|
1791
1786
|
"examples": [
|
|
1792
1787
|
{
|
|
1793
1788
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1794
|
-
"description": "Interactively
|
|
1795
|
-
},
|
|
1796
|
-
{
|
|
1797
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1798
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
1799
|
-
},
|
|
1800
|
-
{
|
|
1801
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1802
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
1803
|
-
},
|
|
1804
|
-
{
|
|
1805
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1806
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1807
|
-
},
|
|
1808
|
-
{
|
|
1809
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1810
|
-
"description": "Copy without content release documents"
|
|
1811
|
-
},
|
|
1812
|
-
{
|
|
1813
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1814
|
-
"description": "Start copy job without waiting for completion"
|
|
1789
|
+
"description": "Interactively add a CORS origin"
|
|
1815
1790
|
},
|
|
1816
1791
|
{
|
|
1817
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
1818
|
-
"description": "
|
|
1792
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1793
|
+
"description": "Add a localhost origin without credentials"
|
|
1819
1794
|
},
|
|
1820
1795
|
{
|
|
1821
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
1822
|
-
"description": "
|
|
1796
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1797
|
+
"description": "Add a production origin with credentials allowed"
|
|
1823
1798
|
},
|
|
1824
1799
|
{
|
|
1825
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1826
|
-
"description": "
|
|
1800
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
1801
|
+
"description": "Add a CORS origin for a specific project"
|
|
1827
1802
|
}
|
|
1828
1803
|
],
|
|
1829
1804
|
"flags": {
|
|
1830
1805
|
"project-id": {
|
|
1831
1806
|
"char": "p",
|
|
1832
|
-
"description": "Project ID to
|
|
1807
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1833
1808
|
"helpGroup": "OVERRIDE",
|
|
1834
1809
|
"name": "project-id",
|
|
1835
1810
|
"hasDynamicHelp": false,
|
|
@@ -1837,92 +1812,24 @@
|
|
|
1837
1812
|
"multiple": false,
|
|
1838
1813
|
"type": "option"
|
|
1839
1814
|
},
|
|
1840
|
-
"
|
|
1841
|
-
"description": "
|
|
1842
|
-
"
|
|
1843
|
-
"list",
|
|
1844
|
-
"detach",
|
|
1845
|
-
"skip-history"
|
|
1846
|
-
],
|
|
1847
|
-
"name": "attach",
|
|
1848
|
-
"required": false,
|
|
1849
|
-
"hasDynamicHelp": false,
|
|
1850
|
-
"multiple": false,
|
|
1851
|
-
"type": "option"
|
|
1852
|
-
},
|
|
1853
|
-
"detach": {
|
|
1854
|
-
"description": "Start the copy without waiting for it to finish",
|
|
1855
|
-
"exclusive": [
|
|
1856
|
-
"list",
|
|
1857
|
-
"attach"
|
|
1858
|
-
],
|
|
1859
|
-
"name": "detach",
|
|
1860
|
-
"required": false,
|
|
1861
|
-
"allowNo": false,
|
|
1862
|
-
"type": "boolean"
|
|
1863
|
-
},
|
|
1864
|
-
"limit": {
|
|
1865
|
-
"dependsOn": [
|
|
1866
|
-
"list"
|
|
1867
|
-
],
|
|
1868
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
1869
|
-
"name": "limit",
|
|
1870
|
-
"required": false,
|
|
1871
|
-
"hasDynamicHelp": false,
|
|
1872
|
-
"multiple": false,
|
|
1873
|
-
"type": "option"
|
|
1874
|
-
},
|
|
1875
|
-
"list": {
|
|
1876
|
-
"description": "Lists all dataset copy jobs",
|
|
1877
|
-
"exclusive": [
|
|
1878
|
-
"attach",
|
|
1879
|
-
"detach",
|
|
1880
|
-
"skip-history"
|
|
1881
|
-
],
|
|
1882
|
-
"name": "list",
|
|
1883
|
-
"required": false,
|
|
1884
|
-
"allowNo": false,
|
|
1885
|
-
"type": "boolean"
|
|
1886
|
-
},
|
|
1887
|
-
"offset": {
|
|
1888
|
-
"dependsOn": [
|
|
1889
|
-
"list"
|
|
1890
|
-
],
|
|
1891
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
1892
|
-
"name": "offset",
|
|
1893
|
-
"required": false,
|
|
1894
|
-
"hasDynamicHelp": false,
|
|
1895
|
-
"multiple": false,
|
|
1896
|
-
"type": "option"
|
|
1897
|
-
},
|
|
1898
|
-
"skip-content-releases": {
|
|
1899
|
-
"description": "Don't copy content release documents to the target dataset",
|
|
1900
|
-
"exclusive": [
|
|
1901
|
-
"list",
|
|
1902
|
-
"attach"
|
|
1903
|
-
],
|
|
1904
|
-
"name": "skip-content-releases",
|
|
1815
|
+
"credentials": {
|
|
1816
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1817
|
+
"name": "credentials",
|
|
1905
1818
|
"required": false,
|
|
1906
|
-
"allowNo":
|
|
1819
|
+
"allowNo": true,
|
|
1907
1820
|
"type": "boolean"
|
|
1908
1821
|
},
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1913
|
-
"attach"
|
|
1914
|
-
],
|
|
1915
|
-
"name": "skip-history",
|
|
1916
|
-
"required": false,
|
|
1822
|
+
"yes": {
|
|
1823
|
+
"char": "y",
|
|
1824
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
1825
|
+
"name": "yes",
|
|
1917
1826
|
"allowNo": false,
|
|
1918
1827
|
"type": "boolean"
|
|
1919
1828
|
}
|
|
1920
1829
|
},
|
|
1921
1830
|
"hasDynamicHelp": false,
|
|
1922
|
-
"hiddenAliases": [
|
|
1923
|
-
|
|
1924
|
-
],
|
|
1925
|
-
"id": "datasets:copy",
|
|
1831
|
+
"hiddenAliases": [],
|
|
1832
|
+
"id": "cors:add",
|
|
1926
1833
|
"pluginAlias": "@sanity/cli",
|
|
1927
1834
|
"pluginName": "@sanity/cli",
|
|
1928
1835
|
"pluginType": "core",
|
|
@@ -1931,80 +1838,49 @@
|
|
|
1931
1838
|
"relativePath": [
|
|
1932
1839
|
"dist",
|
|
1933
1840
|
"commands",
|
|
1934
|
-
"
|
|
1935
|
-
"
|
|
1841
|
+
"cors",
|
|
1842
|
+
"add.js"
|
|
1936
1843
|
]
|
|
1937
1844
|
},
|
|
1938
|
-
"
|
|
1845
|
+
"cors:delete": {
|
|
1939
1846
|
"aliases": [],
|
|
1940
1847
|
"args": {
|
|
1941
|
-
"
|
|
1942
|
-
"description": "
|
|
1943
|
-
"name": "
|
|
1848
|
+
"origin": {
|
|
1849
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
1850
|
+
"name": "origin",
|
|
1944
1851
|
"required": false
|
|
1945
1852
|
}
|
|
1946
1853
|
},
|
|
1947
|
-
"description": "
|
|
1854
|
+
"description": "Delete a CORS origin from the project",
|
|
1948
1855
|
"examples": [
|
|
1949
1856
|
{
|
|
1950
1857
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1951
|
-
"description": "Interactively
|
|
1858
|
+
"description": "Interactively select and delete a CORS origin"
|
|
1952
1859
|
},
|
|
1953
1860
|
{
|
|
1954
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1955
|
-
"description": "
|
|
1861
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1862
|
+
"description": "Delete a specific CORS origin"
|
|
1956
1863
|
},
|
|
1957
1864
|
{
|
|
1958
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1959
|
-
"description": "
|
|
1865
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1866
|
+
"description": "Delete a CORS origin from a specific project"
|
|
1960
1867
|
}
|
|
1961
1868
|
],
|
|
1962
1869
|
"flags": {
|
|
1963
1870
|
"project-id": {
|
|
1964
1871
|
"char": "p",
|
|
1965
|
-
"description": "Project ID to
|
|
1872
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1966
1873
|
"helpGroup": "OVERRIDE",
|
|
1967
1874
|
"name": "project-id",
|
|
1968
1875
|
"hasDynamicHelp": false,
|
|
1969
1876
|
"helpValue": "<id>",
|
|
1970
1877
|
"multiple": false,
|
|
1971
1878
|
"type": "option"
|
|
1972
|
-
},
|
|
1973
|
-
"embeddings": {
|
|
1974
|
-
"description": "Enable embeddings for this dataset",
|
|
1975
|
-
"name": "embeddings",
|
|
1976
|
-
"allowNo": false,
|
|
1977
|
-
"type": "boolean"
|
|
1978
|
-
},
|
|
1979
|
-
"embeddings-projection": {
|
|
1980
|
-
"dependsOn": [
|
|
1981
|
-
"embeddings"
|
|
1982
|
-
],
|
|
1983
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1984
|
-
"name": "embeddings-projection",
|
|
1985
|
-
"hasDynamicHelp": false,
|
|
1986
|
-
"multiple": false,
|
|
1987
|
-
"type": "option"
|
|
1988
|
-
},
|
|
1989
|
-
"visibility": {
|
|
1990
|
-
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1991
|
-
"name": "visibility",
|
|
1992
|
-
"required": false,
|
|
1993
|
-
"hasDynamicHelp": false,
|
|
1994
|
-
"multiple": false,
|
|
1995
|
-
"options": [
|
|
1996
|
-
"custom",
|
|
1997
|
-
"private",
|
|
1998
|
-
"public"
|
|
1999
|
-
],
|
|
2000
|
-
"type": "option"
|
|
2001
1879
|
}
|
|
2002
1880
|
},
|
|
2003
1881
|
"hasDynamicHelp": false,
|
|
2004
|
-
"hiddenAliases": [
|
|
2005
|
-
|
|
2006
|
-
],
|
|
2007
|
-
"id": "datasets:create",
|
|
1882
|
+
"hiddenAliases": [],
|
|
1883
|
+
"id": "cors:delete",
|
|
2008
1884
|
"pluginAlias": "@sanity/cli",
|
|
2009
1885
|
"pluginName": "@sanity/cli",
|
|
2010
1886
|
"pluginType": "core",
|
|
@@ -2013,53 +1889,39 @@
|
|
|
2013
1889
|
"relativePath": [
|
|
2014
1890
|
"dist",
|
|
2015
1891
|
"commands",
|
|
2016
|
-
"
|
|
2017
|
-
"
|
|
1892
|
+
"cors",
|
|
1893
|
+
"delete.js"
|
|
2018
1894
|
]
|
|
2019
1895
|
},
|
|
2020
|
-
"
|
|
1896
|
+
"cors:list": {
|
|
2021
1897
|
"aliases": [],
|
|
2022
|
-
"args": {
|
|
2023
|
-
|
|
2024
|
-
"description": "Dataset name to delete",
|
|
2025
|
-
"name": "datasetName",
|
|
2026
|
-
"required": true
|
|
2027
|
-
}
|
|
2028
|
-
},
|
|
2029
|
-
"description": "Delete a dataset from the project",
|
|
1898
|
+
"args": {},
|
|
1899
|
+
"description": "List CORS origins for the project",
|
|
2030
1900
|
"examples": [
|
|
2031
1901
|
{
|
|
2032
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2033
|
-
"description": "
|
|
1902
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1903
|
+
"description": "List CORS origins for the project"
|
|
2034
1904
|
},
|
|
2035
1905
|
{
|
|
2036
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2037
|
-
"description": "
|
|
1906
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1907
|
+
"description": "List CORS origins for a specific project"
|
|
2038
1908
|
}
|
|
2039
1909
|
],
|
|
2040
1910
|
"flags": {
|
|
2041
1911
|
"project-id": {
|
|
2042
1912
|
"char": "p",
|
|
2043
|
-
"description": "Project ID to
|
|
1913
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2044
1914
|
"helpGroup": "OVERRIDE",
|
|
2045
1915
|
"name": "project-id",
|
|
2046
1916
|
"hasDynamicHelp": false,
|
|
2047
1917
|
"helpValue": "<id>",
|
|
2048
1918
|
"multiple": false,
|
|
2049
1919
|
"type": "option"
|
|
2050
|
-
},
|
|
2051
|
-
"force": {
|
|
2052
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2053
|
-
"name": "force",
|
|
2054
|
-
"allowNo": false,
|
|
2055
|
-
"type": "boolean"
|
|
2056
1920
|
}
|
|
2057
1921
|
},
|
|
2058
1922
|
"hasDynamicHelp": false,
|
|
2059
|
-
"hiddenAliases": [
|
|
2060
|
-
|
|
2061
|
-
],
|
|
2062
|
-
"id": "datasets:delete",
|
|
1923
|
+
"hiddenAliases": [],
|
|
1924
|
+
"id": "cors:list",
|
|
2063
1925
|
"pluginAlias": "@sanity/cli",
|
|
2064
1926
|
"pluginName": "@sanity/cli",
|
|
2065
1927
|
"pluginType": "core",
|
|
@@ -2068,278 +1930,211 @@
|
|
|
2068
1930
|
"relativePath": [
|
|
2069
1931
|
"dist",
|
|
2070
1932
|
"commands",
|
|
2071
|
-
"
|
|
2072
|
-
"
|
|
1933
|
+
"cors",
|
|
1934
|
+
"list.js"
|
|
2073
1935
|
]
|
|
2074
1936
|
},
|
|
2075
|
-
"
|
|
1937
|
+
"context:build": {
|
|
2076
1938
|
"aliases": [],
|
|
2077
1939
|
"args": {
|
|
2078
|
-
"
|
|
2079
|
-
"description": "
|
|
2080
|
-
"name": "
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
}
|
|
2086
|
-
},
|
|
2087
|
-
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1940
|
+
"knowledgeBaseId": {
|
|
1941
|
+
"description": "Knowledge base ID",
|
|
1942
|
+
"name": "knowledgeBaseId",
|
|
1943
|
+
"required": true
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
"description": "Build a knowledge base from its imported content",
|
|
2088
1947
|
"examples": [
|
|
2089
1948
|
{
|
|
2090
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2091
|
-
"description": "
|
|
1949
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
1950
|
+
"description": "Start a build and return the job ID"
|
|
2092
1951
|
},
|
|
2093
1952
|
{
|
|
2094
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2095
|
-
"description": "
|
|
1953
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --watch",
|
|
1954
|
+
"description": "Start a build and wait for it to finish (non-zero exit on failure)"
|
|
2096
1955
|
},
|
|
2097
1956
|
{
|
|
2098
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2099
|
-
"description": "
|
|
1957
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --cancel",
|
|
1958
|
+
"description": "Cancel the running build, if any"
|
|
1959
|
+
}
|
|
1960
|
+
],
|
|
1961
|
+
"flags": {
|
|
1962
|
+
"cancel": {
|
|
1963
|
+
"description": "Cancel the running build instead of starting one",
|
|
1964
|
+
"exclusive": [
|
|
1965
|
+
"watch"
|
|
1966
|
+
],
|
|
1967
|
+
"name": "cancel",
|
|
1968
|
+
"allowNo": false,
|
|
1969
|
+
"type": "boolean"
|
|
2100
1970
|
},
|
|
1971
|
+
"watch": {
|
|
1972
|
+
"description": "Wait for the build to finish, exiting non-zero if it fails",
|
|
1973
|
+
"name": "watch",
|
|
1974
|
+
"allowNo": false,
|
|
1975
|
+
"type": "boolean"
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
"hasDynamicHelp": false,
|
|
1979
|
+
"hiddenAliases": [],
|
|
1980
|
+
"id": "context:build",
|
|
1981
|
+
"pluginAlias": "@sanity/cli",
|
|
1982
|
+
"pluginName": "@sanity/cli",
|
|
1983
|
+
"pluginType": "core",
|
|
1984
|
+
"strict": true,
|
|
1985
|
+
"isESM": true,
|
|
1986
|
+
"relativePath": [
|
|
1987
|
+
"dist",
|
|
1988
|
+
"commands",
|
|
1989
|
+
"context",
|
|
1990
|
+
"build.js"
|
|
1991
|
+
]
|
|
1992
|
+
},
|
|
1993
|
+
"context:create": {
|
|
1994
|
+
"aliases": [],
|
|
1995
|
+
"args": {},
|
|
1996
|
+
"description": "Create a knowledge base",
|
|
1997
|
+
"examples": [
|
|
2101
1998
|
{
|
|
2102
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2103
|
-
"description": "
|
|
1999
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2000
|
+
"description": "Interactively create a knowledge base"
|
|
2104
2001
|
},
|
|
2105
2002
|
{
|
|
2106
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2107
|
-
"description": "
|
|
2003
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --title \"Support docs\" --description \"Product docs and troubleshooting guides\"",
|
|
2004
|
+
"description": "Create a knowledge base in a specific organization"
|
|
2108
2005
|
}
|
|
2109
2006
|
],
|
|
2110
2007
|
"flags": {
|
|
2111
|
-
"
|
|
2112
|
-
"
|
|
2113
|
-
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
2008
|
+
"organization": {
|
|
2009
|
+
"description": "Organization to create the knowledge base in (overrides CLI configuration)",
|
|
2114
2010
|
"helpGroup": "OVERRIDE",
|
|
2115
|
-
"name": "
|
|
2011
|
+
"name": "organization",
|
|
2116
2012
|
"hasDynamicHelp": false,
|
|
2117
2013
|
"helpValue": "<id>",
|
|
2118
2014
|
"multiple": false,
|
|
2119
2015
|
"type": "option"
|
|
2120
2016
|
},
|
|
2121
|
-
"
|
|
2122
|
-
"description": "
|
|
2123
|
-
"name": "
|
|
2124
|
-
"default": 8,
|
|
2125
|
-
"hasDynamicHelp": false,
|
|
2126
|
-
"multiple": false,
|
|
2127
|
-
"type": "option"
|
|
2128
|
-
},
|
|
2129
|
-
"mode": {
|
|
2130
|
-
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
2131
|
-
"name": "mode",
|
|
2132
|
-
"default": "stream",
|
|
2017
|
+
"description": {
|
|
2018
|
+
"description": "Knowledge base description",
|
|
2019
|
+
"name": "description",
|
|
2133
2020
|
"hasDynamicHelp": false,
|
|
2134
2021
|
"multiple": false,
|
|
2135
|
-
"options": [
|
|
2136
|
-
"stream",
|
|
2137
|
-
"cursor"
|
|
2138
|
-
],
|
|
2139
2022
|
"type": "option"
|
|
2140
2023
|
},
|
|
2141
|
-
"
|
|
2142
|
-
"description": "
|
|
2143
|
-
"name": "
|
|
2144
|
-
"allowNo": false,
|
|
2145
|
-
"type": "boolean"
|
|
2146
|
-
},
|
|
2147
|
-
"no-compress": {
|
|
2148
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
2149
|
-
"name": "no-compress",
|
|
2150
|
-
"allowNo": false,
|
|
2151
|
-
"type": "boolean"
|
|
2152
|
-
},
|
|
2153
|
-
"no-drafts": {
|
|
2154
|
-
"description": "Export only published versions of documents",
|
|
2155
|
-
"name": "no-drafts",
|
|
2156
|
-
"allowNo": false,
|
|
2157
|
-
"type": "boolean"
|
|
2158
|
-
},
|
|
2159
|
-
"no-strict-asset-verification": {
|
|
2160
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2161
|
-
"name": "no-strict-asset-verification",
|
|
2162
|
-
"allowNo": false,
|
|
2163
|
-
"type": "boolean"
|
|
2164
|
-
},
|
|
2165
|
-
"overwrite": {
|
|
2166
|
-
"description": "Overwrite any file with the same name",
|
|
2167
|
-
"name": "overwrite",
|
|
2168
|
-
"allowNo": false,
|
|
2169
|
-
"type": "boolean"
|
|
2170
|
-
},
|
|
2171
|
-
"raw": {
|
|
2172
|
-
"description": "Extract only documents, without rewriting asset references",
|
|
2173
|
-
"name": "raw",
|
|
2174
|
-
"allowNo": false,
|
|
2175
|
-
"type": "boolean"
|
|
2176
|
-
},
|
|
2177
|
-
"types": {
|
|
2178
|
-
"description": "Defines which document types to export (comma-separated)",
|
|
2179
|
-
"name": "types",
|
|
2024
|
+
"title": {
|
|
2025
|
+
"description": "Knowledge base title",
|
|
2026
|
+
"name": "title",
|
|
2180
2027
|
"hasDynamicHelp": false,
|
|
2181
2028
|
"multiple": false,
|
|
2182
2029
|
"type": "option"
|
|
2183
2030
|
}
|
|
2184
2031
|
},
|
|
2185
2032
|
"hasDynamicHelp": false,
|
|
2186
|
-
"hiddenAliases": [
|
|
2187
|
-
|
|
2188
|
-
],
|
|
2189
|
-
"id": "datasets:export",
|
|
2033
|
+
"hiddenAliases": [],
|
|
2034
|
+
"id": "context:create",
|
|
2190
2035
|
"pluginAlias": "@sanity/cli",
|
|
2191
2036
|
"pluginName": "@sanity/cli",
|
|
2192
2037
|
"pluginType": "core",
|
|
2193
2038
|
"strict": true,
|
|
2039
|
+
"telemetry": {
|
|
2040
|
+
"redactedFlags": [
|
|
2041
|
+
{
|
|
2042
|
+
"canonical": "--title",
|
|
2043
|
+
"flags": [
|
|
2044
|
+
"--title"
|
|
2045
|
+
]
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"canonical": "--description",
|
|
2049
|
+
"flags": [
|
|
2050
|
+
"--description"
|
|
2051
|
+
]
|
|
2052
|
+
}
|
|
2053
|
+
]
|
|
2054
|
+
},
|
|
2194
2055
|
"isESM": true,
|
|
2195
2056
|
"relativePath": [
|
|
2196
2057
|
"dist",
|
|
2197
2058
|
"commands",
|
|
2198
|
-
"
|
|
2199
|
-
"
|
|
2059
|
+
"context",
|
|
2060
|
+
"create.js"
|
|
2200
2061
|
]
|
|
2201
2062
|
},
|
|
2202
|
-
"
|
|
2063
|
+
"context:delete": {
|
|
2203
2064
|
"aliases": [],
|
|
2204
2065
|
"args": {
|
|
2205
|
-
"
|
|
2206
|
-
"description": "
|
|
2207
|
-
"name": "
|
|
2066
|
+
"knowledgeBaseId": {
|
|
2067
|
+
"description": "Knowledge base ID",
|
|
2068
|
+
"name": "knowledgeBaseId",
|
|
2208
2069
|
"required": true
|
|
2209
|
-
},
|
|
2210
|
-
"targetDataset": {
|
|
2211
|
-
"description": "Target dataset (prefer --dataset flag instead)",
|
|
2212
|
-
"name": "targetDataset",
|
|
2213
|
-
"required": false
|
|
2214
2070
|
}
|
|
2215
2071
|
},
|
|
2216
|
-
"description": "
|
|
2072
|
+
"description": "Delete a knowledge base and its generated content",
|
|
2217
2073
|
"examples": [
|
|
2218
2074
|
{
|
|
2219
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2220
|
-
"description": "
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
2224
|
-
"description": "Import into dataset \"test\" from stdin"
|
|
2225
|
-
},
|
|
2226
|
-
{
|
|
2227
|
-
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
2228
|
-
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
2075
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2076
|
+
"description": "Delete a knowledge base after confirmation"
|
|
2229
2077
|
},
|
|
2230
2078
|
{
|
|
2231
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2232
|
-
"description": "
|
|
2079
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --yes",
|
|
2080
|
+
"description": "Delete a knowledge base without confirmation prompt"
|
|
2233
2081
|
}
|
|
2234
2082
|
],
|
|
2235
2083
|
"flags": {
|
|
2236
|
-
"
|
|
2237
|
-
"
|
|
2238
|
-
"
|
|
2239
|
-
"
|
|
2240
|
-
"type": "boolean"
|
|
2241
|
-
},
|
|
2242
|
-
"allow-failing-assets": {
|
|
2243
|
-
"description": "Skip assets that cannot be fetched/uploaded",
|
|
2244
|
-
"name": "allow-failing-assets",
|
|
2245
|
-
"allowNo": false,
|
|
2246
|
-
"type": "boolean"
|
|
2247
|
-
},
|
|
2248
|
-
"allow-replacement-characters": {
|
|
2249
|
-
"description": "Allow unicode replacement characters in imported documents",
|
|
2250
|
-
"name": "allow-replacement-characters",
|
|
2251
|
-
"allowNo": false,
|
|
2252
|
-
"type": "boolean"
|
|
2253
|
-
},
|
|
2254
|
-
"allow-system-documents": {
|
|
2255
|
-
"description": "Imports system documents",
|
|
2256
|
-
"name": "allow-system-documents",
|
|
2257
|
-
"allowNo": false,
|
|
2258
|
-
"type": "boolean"
|
|
2259
|
-
},
|
|
2260
|
-
"asset-concurrency": {
|
|
2261
|
-
"description": "Number of parallel asset imports",
|
|
2262
|
-
"name": "asset-concurrency",
|
|
2263
|
-
"hasDynamicHelp": false,
|
|
2264
|
-
"multiple": false,
|
|
2265
|
-
"type": "option"
|
|
2266
|
-
},
|
|
2267
|
-
"dataset": {
|
|
2268
|
-
"char": "d",
|
|
2269
|
-
"description": "Dataset to import to",
|
|
2270
|
-
"name": "dataset",
|
|
2271
|
-
"hasDynamicHelp": false,
|
|
2272
|
-
"helpValue": "<name>",
|
|
2273
|
-
"multiple": false,
|
|
2274
|
-
"type": "option"
|
|
2275
|
-
},
|
|
2276
|
-
"missing": {
|
|
2277
|
-
"description": "Skip documents that already exist",
|
|
2278
|
-
"exclusive": [
|
|
2279
|
-
"replace"
|
|
2280
|
-
],
|
|
2281
|
-
"name": "missing",
|
|
2282
|
-
"allowNo": false,
|
|
2283
|
-
"type": "boolean"
|
|
2284
|
-
},
|
|
2285
|
-
"project-id": {
|
|
2286
|
-
"char": "p",
|
|
2287
|
-
"description": "Project ID to import to (overrides CLI configuration)",
|
|
2288
|
-
"helpGroup": "OVERRIDE",
|
|
2289
|
-
"name": "project-id",
|
|
2290
|
-
"hasDynamicHelp": false,
|
|
2291
|
-
"helpValue": "<id>",
|
|
2292
|
-
"multiple": false,
|
|
2293
|
-
"type": "option"
|
|
2294
|
-
},
|
|
2295
|
-
"project": {
|
|
2296
|
-
"deprecated": {
|
|
2297
|
-
"to": "project-id"
|
|
2298
|
-
},
|
|
2299
|
-
"description": "Project ID to import to",
|
|
2300
|
-
"hidden": true,
|
|
2301
|
-
"name": "project",
|
|
2302
|
-
"hasDynamicHelp": false,
|
|
2303
|
-
"multiple": false,
|
|
2304
|
-
"type": "option"
|
|
2305
|
-
},
|
|
2306
|
-
"replace": {
|
|
2307
|
-
"description": "Replace documents with the same IDs",
|
|
2308
|
-
"exclusive": [
|
|
2309
|
-
"missing"
|
|
2310
|
-
],
|
|
2311
|
-
"name": "replace",
|
|
2312
|
-
"allowNo": false,
|
|
2313
|
-
"type": "boolean"
|
|
2314
|
-
},
|
|
2315
|
-
"replace-assets": {
|
|
2316
|
-
"description": "Skip reuse of existing assets",
|
|
2317
|
-
"name": "replace-assets",
|
|
2084
|
+
"yes": {
|
|
2085
|
+
"char": "y",
|
|
2086
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
2087
|
+
"name": "yes",
|
|
2318
2088
|
"allowNo": false,
|
|
2319
2089
|
"type": "boolean"
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"hasDynamicHelp": false,
|
|
2093
|
+
"hiddenAliases": [],
|
|
2094
|
+
"id": "context:delete",
|
|
2095
|
+
"pluginAlias": "@sanity/cli",
|
|
2096
|
+
"pluginName": "@sanity/cli",
|
|
2097
|
+
"pluginType": "core",
|
|
2098
|
+
"strict": true,
|
|
2099
|
+
"isESM": true,
|
|
2100
|
+
"relativePath": [
|
|
2101
|
+
"dist",
|
|
2102
|
+
"commands",
|
|
2103
|
+
"context",
|
|
2104
|
+
"delete.js"
|
|
2105
|
+
]
|
|
2106
|
+
},
|
|
2107
|
+
"context:get": {
|
|
2108
|
+
"aliases": [],
|
|
2109
|
+
"args": {
|
|
2110
|
+
"knowledgeBaseId": {
|
|
2111
|
+
"description": "Knowledge base ID",
|
|
2112
|
+
"name": "knowledgeBaseId",
|
|
2113
|
+
"required": true
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
"description": "Get details of a knowledge base",
|
|
2117
|
+
"examples": [
|
|
2118
|
+
{
|
|
2119
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2120
|
+
"description": "Get details of a specific knowledge base"
|
|
2320
2121
|
},
|
|
2321
|
-
|
|
2322
|
-
"
|
|
2323
|
-
"
|
|
2122
|
+
{
|
|
2123
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
2124
|
+
"description": "Output the knowledge base as JSON"
|
|
2125
|
+
}
|
|
2126
|
+
],
|
|
2127
|
+
"flags": {
|
|
2128
|
+
"json": {
|
|
2129
|
+
"description": "Output the knowledge base in JSON format",
|
|
2130
|
+
"name": "json",
|
|
2324
2131
|
"allowNo": false,
|
|
2325
2132
|
"type": "boolean"
|
|
2326
|
-
},
|
|
2327
|
-
"token": {
|
|
2328
|
-
"char": "t",
|
|
2329
|
-
"description": "Token to authenticate with",
|
|
2330
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
2331
|
-
"name": "token",
|
|
2332
|
-
"required": false,
|
|
2333
|
-
"hasDynamicHelp": false,
|
|
2334
|
-
"multiple": false,
|
|
2335
|
-
"type": "option"
|
|
2336
2133
|
}
|
|
2337
2134
|
},
|
|
2338
2135
|
"hasDynamicHelp": false,
|
|
2339
|
-
"hiddenAliases": [
|
|
2340
|
-
|
|
2341
|
-
],
|
|
2342
|
-
"id": "datasets:import",
|
|
2136
|
+
"hiddenAliases": [],
|
|
2137
|
+
"id": "context:get",
|
|
2343
2138
|
"pluginAlias": "@sanity/cli",
|
|
2344
2139
|
"pluginName": "@sanity/cli",
|
|
2345
2140
|
"pluginType": "core",
|
|
@@ -2348,41 +2143,48 @@
|
|
|
2348
2143
|
"relativePath": [
|
|
2349
2144
|
"dist",
|
|
2350
2145
|
"commands",
|
|
2351
|
-
"
|
|
2352
|
-
"
|
|
2146
|
+
"context",
|
|
2147
|
+
"get.js"
|
|
2353
2148
|
]
|
|
2354
2149
|
},
|
|
2355
|
-
"
|
|
2150
|
+
"context:list": {
|
|
2356
2151
|
"aliases": [],
|
|
2357
2152
|
"args": {},
|
|
2358
|
-
"description": "List
|
|
2153
|
+
"description": "List knowledge bases in an organization",
|
|
2359
2154
|
"examples": [
|
|
2360
2155
|
{
|
|
2361
2156
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2362
|
-
"description": "List
|
|
2157
|
+
"description": "List knowledge bases, selecting the organization interactively"
|
|
2363
2158
|
},
|
|
2364
2159
|
{
|
|
2365
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2366
|
-
"description": "List
|
|
2160
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123",
|
|
2161
|
+
"description": "List knowledge bases in a specific organization"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
|
|
2165
|
+
"description": "Output knowledge bases as JSON"
|
|
2367
2166
|
}
|
|
2368
2167
|
],
|
|
2369
2168
|
"flags": {
|
|
2370
|
-
"
|
|
2371
|
-
"
|
|
2372
|
-
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
2169
|
+
"organization": {
|
|
2170
|
+
"description": "Organization to list knowledge bases for (overrides CLI configuration)",
|
|
2373
2171
|
"helpGroup": "OVERRIDE",
|
|
2374
|
-
"name": "
|
|
2172
|
+
"name": "organization",
|
|
2375
2173
|
"hasDynamicHelp": false,
|
|
2376
2174
|
"helpValue": "<id>",
|
|
2377
2175
|
"multiple": false,
|
|
2378
2176
|
"type": "option"
|
|
2177
|
+
},
|
|
2178
|
+
"json": {
|
|
2179
|
+
"description": "Output knowledge bases in JSON format",
|
|
2180
|
+
"name": "json",
|
|
2181
|
+
"allowNo": false,
|
|
2182
|
+
"type": "boolean"
|
|
2379
2183
|
}
|
|
2380
2184
|
},
|
|
2381
2185
|
"hasDynamicHelp": false,
|
|
2382
|
-
"hiddenAliases": [
|
|
2383
|
-
|
|
2384
|
-
],
|
|
2385
|
-
"id": "datasets:list",
|
|
2186
|
+
"hiddenAliases": [],
|
|
2187
|
+
"id": "context:list",
|
|
2386
2188
|
"pluginAlias": "@sanity/cli",
|
|
2387
2189
|
"pluginName": "@sanity/cli",
|
|
2388
2190
|
"pluginType": "core",
|
|
@@ -2391,11 +2193,11 @@
|
|
|
2391
2193
|
"relativePath": [
|
|
2392
2194
|
"dist",
|
|
2393
2195
|
"commands",
|
|
2394
|
-
"
|
|
2196
|
+
"context",
|
|
2395
2197
|
"list.js"
|
|
2396
2198
|
]
|
|
2397
2199
|
},
|
|
2398
|
-
"context:
|
|
2200
|
+
"context:refresh": {
|
|
2399
2201
|
"aliases": [],
|
|
2400
2202
|
"args": {
|
|
2401
2203
|
"knowledgeBaseId": {
|
|
@@ -2404,41 +2206,17 @@
|
|
|
2404
2206
|
"required": true
|
|
2405
2207
|
}
|
|
2406
2208
|
},
|
|
2407
|
-
"description": "
|
|
2209
|
+
"description": "Refresh a knowledge base: re-check sources and apply what changed",
|
|
2408
2210
|
"examples": [
|
|
2409
2211
|
{
|
|
2410
2212
|
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2411
|
-
"description": "Start
|
|
2412
|
-
},
|
|
2413
|
-
{
|
|
2414
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --watch",
|
|
2415
|
-
"description": "Start a build and wait for it to finish (non-zero exit on failure)"
|
|
2416
|
-
},
|
|
2417
|
-
{
|
|
2418
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --cancel",
|
|
2419
|
-
"description": "Cancel the running build, if any"
|
|
2213
|
+
"description": "Start an incremental refresh"
|
|
2420
2214
|
}
|
|
2421
2215
|
],
|
|
2422
|
-
"flags": {
|
|
2423
|
-
"cancel": {
|
|
2424
|
-
"description": "Cancel the running build instead of starting one",
|
|
2425
|
-
"exclusive": [
|
|
2426
|
-
"watch"
|
|
2427
|
-
],
|
|
2428
|
-
"name": "cancel",
|
|
2429
|
-
"allowNo": false,
|
|
2430
|
-
"type": "boolean"
|
|
2431
|
-
},
|
|
2432
|
-
"watch": {
|
|
2433
|
-
"description": "Wait for the build to finish, exiting non-zero if it fails",
|
|
2434
|
-
"name": "watch",
|
|
2435
|
-
"allowNo": false,
|
|
2436
|
-
"type": "boolean"
|
|
2437
|
-
}
|
|
2438
|
-
},
|
|
2216
|
+
"flags": {},
|
|
2439
2217
|
"hasDynamicHelp": false,
|
|
2440
2218
|
"hiddenAliases": [],
|
|
2441
|
-
"id": "context:
|
|
2219
|
+
"id": "context:refresh",
|
|
2442
2220
|
"pluginAlias": "@sanity/cli",
|
|
2443
2221
|
"pluginName": "@sanity/cli",
|
|
2444
2222
|
"pluginType": "core",
|
|
@@ -2448,43 +2226,65 @@
|
|
|
2448
2226
|
"dist",
|
|
2449
2227
|
"commands",
|
|
2450
2228
|
"context",
|
|
2451
|
-
"
|
|
2229
|
+
"refresh.js"
|
|
2452
2230
|
]
|
|
2453
2231
|
},
|
|
2454
|
-
"context:
|
|
2232
|
+
"context:update": {
|
|
2455
2233
|
"aliases": [],
|
|
2456
|
-
"args": {
|
|
2457
|
-
|
|
2234
|
+
"args": {
|
|
2235
|
+
"knowledgeBaseId": {
|
|
2236
|
+
"description": "Knowledge base ID",
|
|
2237
|
+
"name": "knowledgeBaseId",
|
|
2238
|
+
"required": true
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
"description": "Update a knowledge base",
|
|
2458
2242
|
"examples": [
|
|
2459
2243
|
{
|
|
2460
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2461
|
-
"description": "
|
|
2244
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --title \"New title\"",
|
|
2245
|
+
"description": "Rename a knowledge base"
|
|
2462
2246
|
},
|
|
2463
2247
|
{
|
|
2464
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2465
|
-
"description": "
|
|
2248
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --refresh-enabled --refresh-frequency weekly",
|
|
2249
|
+
"description": "Enable weekly scheduled refresh"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --no-refresh-enabled",
|
|
2253
|
+
"description": "Disable scheduled refresh"
|
|
2466
2254
|
}
|
|
2467
2255
|
],
|
|
2468
2256
|
"flags": {
|
|
2469
|
-
"
|
|
2470
|
-
"description": "
|
|
2471
|
-
"
|
|
2472
|
-
"
|
|
2257
|
+
"description": {
|
|
2258
|
+
"description": "New knowledge base description",
|
|
2259
|
+
"name": "description",
|
|
2260
|
+
"required": false,
|
|
2473
2261
|
"hasDynamicHelp": false,
|
|
2474
|
-
"helpValue": "<id>",
|
|
2475
2262
|
"multiple": false,
|
|
2476
2263
|
"type": "option"
|
|
2477
2264
|
},
|
|
2478
|
-
"
|
|
2479
|
-
"description": "
|
|
2480
|
-
"name": "
|
|
2265
|
+
"refresh-enabled": {
|
|
2266
|
+
"description": "Enable scheduled refresh (--no-refresh-enabled to disable)",
|
|
2267
|
+
"name": "refresh-enabled",
|
|
2268
|
+
"required": false,
|
|
2269
|
+
"allowNo": true,
|
|
2270
|
+
"type": "boolean"
|
|
2271
|
+
},
|
|
2272
|
+
"refresh-frequency": {
|
|
2273
|
+
"description": "How often scheduled refresh runs",
|
|
2274
|
+
"name": "refresh-frequency",
|
|
2275
|
+
"required": false,
|
|
2481
2276
|
"hasDynamicHelp": false,
|
|
2482
2277
|
"multiple": false,
|
|
2278
|
+
"options": [
|
|
2279
|
+
"weekly",
|
|
2280
|
+
"monthly"
|
|
2281
|
+
],
|
|
2483
2282
|
"type": "option"
|
|
2484
2283
|
},
|
|
2485
2284
|
"title": {
|
|
2486
|
-
"description": "
|
|
2285
|
+
"description": "New knowledge base title",
|
|
2487
2286
|
"name": "title",
|
|
2287
|
+
"required": false,
|
|
2488
2288
|
"hasDynamicHelp": false,
|
|
2489
2289
|
"multiple": false,
|
|
2490
2290
|
"type": "option"
|
|
@@ -2492,7 +2292,7 @@
|
|
|
2492
2292
|
},
|
|
2493
2293
|
"hasDynamicHelp": false,
|
|
2494
2294
|
"hiddenAliases": [],
|
|
2495
|
-
"id": "context:
|
|
2295
|
+
"id": "context:update",
|
|
2496
2296
|
"pluginAlias": "@sanity/cli",
|
|
2497
2297
|
"pluginName": "@sanity/cli",
|
|
2498
2298
|
"pluginType": "core",
|
|
@@ -2518,84 +2318,159 @@
|
|
|
2518
2318
|
"dist",
|
|
2519
2319
|
"commands",
|
|
2520
2320
|
"context",
|
|
2521
|
-
"
|
|
2321
|
+
"update.js"
|
|
2522
2322
|
]
|
|
2523
2323
|
},
|
|
2524
|
-
"
|
|
2324
|
+
"datasets:copy": {
|
|
2525
2325
|
"aliases": [],
|
|
2526
2326
|
"args": {
|
|
2527
|
-
"
|
|
2528
|
-
"description": "
|
|
2529
|
-
"name": "
|
|
2530
|
-
"required":
|
|
2327
|
+
"source": {
|
|
2328
|
+
"description": "Name of the dataset to copy from",
|
|
2329
|
+
"name": "source",
|
|
2330
|
+
"required": false
|
|
2331
|
+
},
|
|
2332
|
+
"target": {
|
|
2333
|
+
"description": "Name of the dataset to copy to",
|
|
2334
|
+
"name": "target",
|
|
2335
|
+
"required": false
|
|
2531
2336
|
}
|
|
2532
2337
|
},
|
|
2533
|
-
"description": "
|
|
2338
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2534
2339
|
"examples": [
|
|
2535
2340
|
{
|
|
2536
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2537
|
-
"description": "
|
|
2341
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2342
|
+
"description": "Interactively copy a dataset"
|
|
2538
2343
|
},
|
|
2539
2344
|
{
|
|
2540
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2541
|
-
"description": "
|
|
2542
|
-
}
|
|
2543
|
-
],
|
|
2544
|
-
"flags": {
|
|
2545
|
-
"yes": {
|
|
2546
|
-
"char": "y",
|
|
2547
|
-
"description": "Skip confirmation prompt (unattended mode)",
|
|
2548
|
-
"name": "yes",
|
|
2549
|
-
"allowNo": false,
|
|
2550
|
-
"type": "boolean"
|
|
2551
|
-
}
|
|
2552
|
-
},
|
|
2553
|
-
"hasDynamicHelp": false,
|
|
2554
|
-
"hiddenAliases": [],
|
|
2555
|
-
"id": "context:delete",
|
|
2556
|
-
"pluginAlias": "@sanity/cli",
|
|
2557
|
-
"pluginName": "@sanity/cli",
|
|
2558
|
-
"pluginType": "core",
|
|
2559
|
-
"strict": true,
|
|
2560
|
-
"isESM": true,
|
|
2561
|
-
"relativePath": [
|
|
2562
|
-
"dist",
|
|
2563
|
-
"commands",
|
|
2564
|
-
"context",
|
|
2565
|
-
"delete.js"
|
|
2566
|
-
]
|
|
2567
|
-
},
|
|
2568
|
-
"context:get": {
|
|
2569
|
-
"aliases": [],
|
|
2570
|
-
"args": {
|
|
2571
|
-
"knowledgeBaseId": {
|
|
2572
|
-
"description": "Knowledge base ID",
|
|
2573
|
-
"name": "knowledgeBaseId",
|
|
2574
|
-
"required": true
|
|
2575
|
-
}
|
|
2576
|
-
},
|
|
2577
|
-
"description": "Get details of a knowledge base",
|
|
2578
|
-
"examples": [
|
|
2345
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2346
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2347
|
+
},
|
|
2579
2348
|
{
|
|
2580
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2581
|
-
"description": "
|
|
2349
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2350
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2582
2351
|
},
|
|
2583
2352
|
{
|
|
2584
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2585
|
-
"description": "
|
|
2353
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2354
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2358
|
+
"description": "Copy without content release documents"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2362
|
+
"description": "Start copy job without waiting for completion"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2366
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2370
|
+
"description": "List all dataset copy jobs"
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2374
|
+
"description": "List copy jobs with pagination"
|
|
2586
2375
|
}
|
|
2587
2376
|
],
|
|
2588
2377
|
"flags": {
|
|
2589
|
-
"
|
|
2590
|
-
"
|
|
2591
|
-
"
|
|
2378
|
+
"project-id": {
|
|
2379
|
+
"char": "p",
|
|
2380
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2381
|
+
"helpGroup": "OVERRIDE",
|
|
2382
|
+
"name": "project-id",
|
|
2383
|
+
"hasDynamicHelp": false,
|
|
2384
|
+
"helpValue": "<id>",
|
|
2385
|
+
"multiple": false,
|
|
2386
|
+
"type": "option"
|
|
2387
|
+
},
|
|
2388
|
+
"attach": {
|
|
2389
|
+
"description": "Attach to the running copy process to show progress",
|
|
2390
|
+
"exclusive": [
|
|
2391
|
+
"list",
|
|
2392
|
+
"detach",
|
|
2393
|
+
"skip-history"
|
|
2394
|
+
],
|
|
2395
|
+
"name": "attach",
|
|
2396
|
+
"required": false,
|
|
2397
|
+
"hasDynamicHelp": false,
|
|
2398
|
+
"multiple": false,
|
|
2399
|
+
"type": "option"
|
|
2400
|
+
},
|
|
2401
|
+
"detach": {
|
|
2402
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2403
|
+
"exclusive": [
|
|
2404
|
+
"list",
|
|
2405
|
+
"attach"
|
|
2406
|
+
],
|
|
2407
|
+
"name": "detach",
|
|
2408
|
+
"required": false,
|
|
2409
|
+
"allowNo": false,
|
|
2410
|
+
"type": "boolean"
|
|
2411
|
+
},
|
|
2412
|
+
"limit": {
|
|
2413
|
+
"dependsOn": [
|
|
2414
|
+
"list"
|
|
2415
|
+
],
|
|
2416
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2417
|
+
"name": "limit",
|
|
2418
|
+
"required": false,
|
|
2419
|
+
"hasDynamicHelp": false,
|
|
2420
|
+
"multiple": false,
|
|
2421
|
+
"type": "option"
|
|
2422
|
+
},
|
|
2423
|
+
"list": {
|
|
2424
|
+
"description": "Lists all dataset copy jobs",
|
|
2425
|
+
"exclusive": [
|
|
2426
|
+
"attach",
|
|
2427
|
+
"detach",
|
|
2428
|
+
"skip-history"
|
|
2429
|
+
],
|
|
2430
|
+
"name": "list",
|
|
2431
|
+
"required": false,
|
|
2432
|
+
"allowNo": false,
|
|
2433
|
+
"type": "boolean"
|
|
2434
|
+
},
|
|
2435
|
+
"offset": {
|
|
2436
|
+
"dependsOn": [
|
|
2437
|
+
"list"
|
|
2438
|
+
],
|
|
2439
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2440
|
+
"name": "offset",
|
|
2441
|
+
"required": false,
|
|
2442
|
+
"hasDynamicHelp": false,
|
|
2443
|
+
"multiple": false,
|
|
2444
|
+
"type": "option"
|
|
2445
|
+
},
|
|
2446
|
+
"skip-content-releases": {
|
|
2447
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2448
|
+
"exclusive": [
|
|
2449
|
+
"list",
|
|
2450
|
+
"attach"
|
|
2451
|
+
],
|
|
2452
|
+
"name": "skip-content-releases",
|
|
2453
|
+
"required": false,
|
|
2454
|
+
"allowNo": false,
|
|
2455
|
+
"type": "boolean"
|
|
2456
|
+
},
|
|
2457
|
+
"skip-history": {
|
|
2458
|
+
"description": "Don't preserve document history on copy",
|
|
2459
|
+
"exclusive": [
|
|
2460
|
+
"list",
|
|
2461
|
+
"attach"
|
|
2462
|
+
],
|
|
2463
|
+
"name": "skip-history",
|
|
2464
|
+
"required": false,
|
|
2592
2465
|
"allowNo": false,
|
|
2593
2466
|
"type": "boolean"
|
|
2594
2467
|
}
|
|
2595
2468
|
},
|
|
2596
2469
|
"hasDynamicHelp": false,
|
|
2597
|
-
"hiddenAliases": [
|
|
2598
|
-
|
|
2470
|
+
"hiddenAliases": [
|
|
2471
|
+
"dataset:copy"
|
|
2472
|
+
],
|
|
2473
|
+
"id": "datasets:copy",
|
|
2599
2474
|
"pluginAlias": "@sanity/cli",
|
|
2600
2475
|
"pluginName": "@sanity/cli",
|
|
2601
2476
|
"pluginType": "core",
|
|
@@ -2604,80 +2479,80 @@
|
|
|
2604
2479
|
"relativePath": [
|
|
2605
2480
|
"dist",
|
|
2606
2481
|
"commands",
|
|
2607
|
-
"
|
|
2608
|
-
"
|
|
2482
|
+
"datasets",
|
|
2483
|
+
"copy.js"
|
|
2609
2484
|
]
|
|
2610
2485
|
},
|
|
2611
|
-
"
|
|
2486
|
+
"datasets:create": {
|
|
2612
2487
|
"aliases": [],
|
|
2613
|
-
"args": {
|
|
2614
|
-
|
|
2488
|
+
"args": {
|
|
2489
|
+
"name": {
|
|
2490
|
+
"description": "Name of the dataset to create",
|
|
2491
|
+
"name": "name",
|
|
2492
|
+
"required": false
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
"description": "Create a new dataset for the project",
|
|
2615
2496
|
"examples": [
|
|
2616
2497
|
{
|
|
2617
2498
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2618
|
-
"description": "
|
|
2499
|
+
"description": "Interactively create a dataset"
|
|
2619
2500
|
},
|
|
2620
2501
|
{
|
|
2621
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2622
|
-
"description": "
|
|
2502
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2503
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2623
2504
|
},
|
|
2624
2505
|
{
|
|
2625
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2626
|
-
"description": "
|
|
2506
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2507
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2627
2508
|
}
|
|
2628
2509
|
],
|
|
2629
2510
|
"flags": {
|
|
2630
|
-
"
|
|
2631
|
-
"
|
|
2511
|
+
"project-id": {
|
|
2512
|
+
"char": "p",
|
|
2513
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2632
2514
|
"helpGroup": "OVERRIDE",
|
|
2633
|
-
"name": "
|
|
2515
|
+
"name": "project-id",
|
|
2516
|
+
"hasDynamicHelp": false,
|
|
2517
|
+
"helpValue": "<id>",
|
|
2518
|
+
"multiple": false,
|
|
2519
|
+
"type": "option"
|
|
2520
|
+
},
|
|
2521
|
+
"embeddings": {
|
|
2522
|
+
"description": "Enable embeddings for this dataset",
|
|
2523
|
+
"name": "embeddings",
|
|
2524
|
+
"allowNo": false,
|
|
2525
|
+
"type": "boolean"
|
|
2526
|
+
},
|
|
2527
|
+
"embeddings-projection": {
|
|
2528
|
+
"dependsOn": [
|
|
2529
|
+
"embeddings"
|
|
2530
|
+
],
|
|
2531
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2532
|
+
"name": "embeddings-projection",
|
|
2634
2533
|
"hasDynamicHelp": false,
|
|
2635
|
-
"helpValue": "<id>",
|
|
2636
2534
|
"multiple": false,
|
|
2637
2535
|
"type": "option"
|
|
2638
2536
|
},
|
|
2639
|
-
"
|
|
2640
|
-
"description": "
|
|
2641
|
-
"name": "
|
|
2642
|
-
"
|
|
2643
|
-
"
|
|
2537
|
+
"visibility": {
|
|
2538
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2539
|
+
"name": "visibility",
|
|
2540
|
+
"required": false,
|
|
2541
|
+
"hasDynamicHelp": false,
|
|
2542
|
+
"multiple": false,
|
|
2543
|
+
"options": [
|
|
2544
|
+
"custom",
|
|
2545
|
+
"private",
|
|
2546
|
+
"public"
|
|
2547
|
+
],
|
|
2548
|
+
"type": "option"
|
|
2644
2549
|
}
|
|
2645
2550
|
},
|
|
2646
2551
|
"hasDynamicHelp": false,
|
|
2647
|
-
"hiddenAliases": [
|
|
2648
|
-
|
|
2649
|
-
"pluginAlias": "@sanity/cli",
|
|
2650
|
-
"pluginName": "@sanity/cli",
|
|
2651
|
-
"pluginType": "core",
|
|
2652
|
-
"strict": true,
|
|
2653
|
-
"isESM": true,
|
|
2654
|
-
"relativePath": [
|
|
2655
|
-
"dist",
|
|
2656
|
-
"commands",
|
|
2657
|
-
"context",
|
|
2658
|
-
"list.js"
|
|
2659
|
-
]
|
|
2660
|
-
},
|
|
2661
|
-
"context:refresh": {
|
|
2662
|
-
"aliases": [],
|
|
2663
|
-
"args": {
|
|
2664
|
-
"knowledgeBaseId": {
|
|
2665
|
-
"description": "Knowledge base ID",
|
|
2666
|
-
"name": "knowledgeBaseId",
|
|
2667
|
-
"required": true
|
|
2668
|
-
}
|
|
2669
|
-
},
|
|
2670
|
-
"description": "Refresh a knowledge base: re-check sources and apply what changed",
|
|
2671
|
-
"examples": [
|
|
2672
|
-
{
|
|
2673
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
2674
|
-
"description": "Start an incremental refresh"
|
|
2675
|
-
}
|
|
2552
|
+
"hiddenAliases": [
|
|
2553
|
+
"dataset:create"
|
|
2676
2554
|
],
|
|
2677
|
-
"
|
|
2678
|
-
"hasDynamicHelp": false,
|
|
2679
|
-
"hiddenAliases": [],
|
|
2680
|
-
"id": "context:refresh",
|
|
2555
|
+
"id": "datasets:create",
|
|
2681
2556
|
"pluginAlias": "@sanity/cli",
|
|
2682
2557
|
"pluginName": "@sanity/cli",
|
|
2683
2558
|
"pluginType": "core",
|
|
@@ -2686,134 +2561,104 @@
|
|
|
2686
2561
|
"relativePath": [
|
|
2687
2562
|
"dist",
|
|
2688
2563
|
"commands",
|
|
2689
|
-
"
|
|
2690
|
-
"
|
|
2564
|
+
"datasets",
|
|
2565
|
+
"create.js"
|
|
2691
2566
|
]
|
|
2692
2567
|
},
|
|
2693
|
-
"
|
|
2568
|
+
"datasets:delete": {
|
|
2694
2569
|
"aliases": [],
|
|
2695
2570
|
"args": {
|
|
2696
|
-
"
|
|
2697
|
-
"description": "
|
|
2698
|
-
"name": "
|
|
2571
|
+
"datasetName": {
|
|
2572
|
+
"description": "Dataset name to delete",
|
|
2573
|
+
"name": "datasetName",
|
|
2699
2574
|
"required": true
|
|
2700
2575
|
}
|
|
2701
2576
|
},
|
|
2702
|
-
"description": "
|
|
2577
|
+
"description": "Delete a dataset from the project",
|
|
2703
2578
|
"examples": [
|
|
2704
2579
|
{
|
|
2705
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2706
|
-
"description": "
|
|
2707
|
-
},
|
|
2708
|
-
{
|
|
2709
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --refresh-enabled --refresh-frequency weekly",
|
|
2710
|
-
"description": "Enable weekly scheduled refresh"
|
|
2580
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2581
|
+
"description": "Delete a specific dataset"
|
|
2711
2582
|
},
|
|
2712
2583
|
{
|
|
2713
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2714
|
-
"description": "
|
|
2584
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
2585
|
+
"description": "Delete a specific dataset without confirmation"
|
|
2715
2586
|
}
|
|
2716
2587
|
],
|
|
2717
2588
|
"flags": {
|
|
2718
|
-
"
|
|
2719
|
-
"
|
|
2720
|
-
"
|
|
2721
|
-
"
|
|
2589
|
+
"project-id": {
|
|
2590
|
+
"char": "p",
|
|
2591
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
2592
|
+
"helpGroup": "OVERRIDE",
|
|
2593
|
+
"name": "project-id",
|
|
2722
2594
|
"hasDynamicHelp": false,
|
|
2595
|
+
"helpValue": "<id>",
|
|
2723
2596
|
"multiple": false,
|
|
2724
2597
|
"type": "option"
|
|
2725
2598
|
},
|
|
2726
|
-
"
|
|
2727
|
-
"description": "
|
|
2728
|
-
"name": "
|
|
2729
|
-
"
|
|
2730
|
-
"allowNo": true,
|
|
2599
|
+
"force": {
|
|
2600
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2601
|
+
"name": "force",
|
|
2602
|
+
"allowNo": false,
|
|
2731
2603
|
"type": "boolean"
|
|
2732
|
-
},
|
|
2733
|
-
"refresh-frequency": {
|
|
2734
|
-
"description": "How often scheduled refresh runs",
|
|
2735
|
-
"name": "refresh-frequency",
|
|
2736
|
-
"required": false,
|
|
2737
|
-
"hasDynamicHelp": false,
|
|
2738
|
-
"multiple": false,
|
|
2739
|
-
"options": [
|
|
2740
|
-
"weekly",
|
|
2741
|
-
"monthly"
|
|
2742
|
-
],
|
|
2743
|
-
"type": "option"
|
|
2744
|
-
},
|
|
2745
|
-
"title": {
|
|
2746
|
-
"description": "New knowledge base title",
|
|
2747
|
-
"name": "title",
|
|
2748
|
-
"required": false,
|
|
2749
|
-
"hasDynamicHelp": false,
|
|
2750
|
-
"multiple": false,
|
|
2751
|
-
"type": "option"
|
|
2752
2604
|
}
|
|
2753
2605
|
},
|
|
2754
2606
|
"hasDynamicHelp": false,
|
|
2755
|
-
"hiddenAliases": [
|
|
2756
|
-
|
|
2607
|
+
"hiddenAliases": [
|
|
2608
|
+
"dataset:delete"
|
|
2609
|
+
],
|
|
2610
|
+
"id": "datasets:delete",
|
|
2757
2611
|
"pluginAlias": "@sanity/cli",
|
|
2758
2612
|
"pluginName": "@sanity/cli",
|
|
2759
2613
|
"pluginType": "core",
|
|
2760
2614
|
"strict": true,
|
|
2761
|
-
"telemetry": {
|
|
2762
|
-
"redactedFlags": [
|
|
2763
|
-
{
|
|
2764
|
-
"canonical": "--title",
|
|
2765
|
-
"flags": [
|
|
2766
|
-
"--title"
|
|
2767
|
-
]
|
|
2768
|
-
},
|
|
2769
|
-
{
|
|
2770
|
-
"canonical": "--description",
|
|
2771
|
-
"flags": [
|
|
2772
|
-
"--description"
|
|
2773
|
-
]
|
|
2774
|
-
}
|
|
2775
|
-
]
|
|
2776
|
-
},
|
|
2777
2615
|
"isESM": true,
|
|
2778
2616
|
"relativePath": [
|
|
2779
2617
|
"dist",
|
|
2780
2618
|
"commands",
|
|
2781
|
-
"
|
|
2782
|
-
"
|
|
2619
|
+
"datasets",
|
|
2620
|
+
"delete.js"
|
|
2783
2621
|
]
|
|
2784
2622
|
},
|
|
2785
|
-
"
|
|
2623
|
+
"datasets:export": {
|
|
2786
2624
|
"aliases": [],
|
|
2787
2625
|
"args": {
|
|
2788
|
-
"
|
|
2789
|
-
"description": "
|
|
2790
|
-
"name": "
|
|
2791
|
-
|
|
2626
|
+
"name": {
|
|
2627
|
+
"description": "Name of the dataset to export",
|
|
2628
|
+
"name": "name"
|
|
2629
|
+
},
|
|
2630
|
+
"destination": {
|
|
2631
|
+
"description": "Output destination file path",
|
|
2632
|
+
"name": "destination"
|
|
2792
2633
|
}
|
|
2793
2634
|
},
|
|
2794
|
-
"description": "
|
|
2635
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
2795
2636
|
"examples": [
|
|
2796
2637
|
{
|
|
2797
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2798
|
-
"description": "
|
|
2638
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
2639
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
2799
2640
|
},
|
|
2800
2641
|
{
|
|
2801
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2802
|
-
"description": "
|
|
2642
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
2643
|
+
"description": "Export dataset without assets"
|
|
2803
2644
|
},
|
|
2804
2645
|
{
|
|
2805
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2806
|
-
"description": "
|
|
2646
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
2647
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
2807
2648
|
},
|
|
2808
2649
|
{
|
|
2809
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2810
|
-
"description": "
|
|
2650
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
2651
|
+
"description": "Export specific document types"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
2655
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
2811
2656
|
}
|
|
2812
2657
|
],
|
|
2813
2658
|
"flags": {
|
|
2814
2659
|
"project-id": {
|
|
2815
2660
|
"char": "p",
|
|
2816
|
-
"description": "Project ID to
|
|
2661
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
2817
2662
|
"helpGroup": "OVERRIDE",
|
|
2818
2663
|
"name": "project-id",
|
|
2819
2664
|
"hasDynamicHelp": false,
|
|
@@ -2821,24 +2666,75 @@
|
|
|
2821
2666
|
"multiple": false,
|
|
2822
2667
|
"type": "option"
|
|
2823
2668
|
},
|
|
2824
|
-
"
|
|
2825
|
-
"description": "
|
|
2826
|
-
"name": "
|
|
2827
|
-
"
|
|
2828
|
-
"
|
|
2669
|
+
"asset-concurrency": {
|
|
2670
|
+
"description": "Concurrent number of asset downloads",
|
|
2671
|
+
"name": "asset-concurrency",
|
|
2672
|
+
"default": 8,
|
|
2673
|
+
"hasDynamicHelp": false,
|
|
2674
|
+
"multiple": false,
|
|
2675
|
+
"type": "option"
|
|
2676
|
+
},
|
|
2677
|
+
"mode": {
|
|
2678
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
2679
|
+
"name": "mode",
|
|
2680
|
+
"default": "stream",
|
|
2681
|
+
"hasDynamicHelp": false,
|
|
2682
|
+
"multiple": false,
|
|
2683
|
+
"options": [
|
|
2684
|
+
"stream",
|
|
2685
|
+
"cursor"
|
|
2686
|
+
],
|
|
2687
|
+
"type": "option"
|
|
2688
|
+
},
|
|
2689
|
+
"no-assets": {
|
|
2690
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
2691
|
+
"name": "no-assets",
|
|
2692
|
+
"allowNo": false,
|
|
2829
2693
|
"type": "boolean"
|
|
2830
2694
|
},
|
|
2831
|
-
"
|
|
2832
|
-
"
|
|
2833
|
-
"
|
|
2834
|
-
"
|
|
2695
|
+
"no-compress": {
|
|
2696
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
2697
|
+
"name": "no-compress",
|
|
2698
|
+
"allowNo": false,
|
|
2699
|
+
"type": "boolean"
|
|
2700
|
+
},
|
|
2701
|
+
"no-drafts": {
|
|
2702
|
+
"description": "Export only published versions of documents",
|
|
2703
|
+
"name": "no-drafts",
|
|
2704
|
+
"allowNo": false,
|
|
2705
|
+
"type": "boolean"
|
|
2706
|
+
},
|
|
2707
|
+
"no-strict-asset-verification": {
|
|
2708
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2709
|
+
"name": "no-strict-asset-verification",
|
|
2710
|
+
"allowNo": false,
|
|
2711
|
+
"type": "boolean"
|
|
2712
|
+
},
|
|
2713
|
+
"overwrite": {
|
|
2714
|
+
"description": "Overwrite any file with the same name",
|
|
2715
|
+
"name": "overwrite",
|
|
2716
|
+
"allowNo": false,
|
|
2717
|
+
"type": "boolean"
|
|
2718
|
+
},
|
|
2719
|
+
"raw": {
|
|
2720
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
2721
|
+
"name": "raw",
|
|
2835
2722
|
"allowNo": false,
|
|
2836
2723
|
"type": "boolean"
|
|
2724
|
+
},
|
|
2725
|
+
"types": {
|
|
2726
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
2727
|
+
"name": "types",
|
|
2728
|
+
"hasDynamicHelp": false,
|
|
2729
|
+
"multiple": false,
|
|
2730
|
+
"type": "option"
|
|
2837
2731
|
}
|
|
2838
2732
|
},
|
|
2839
2733
|
"hasDynamicHelp": false,
|
|
2840
|
-
"hiddenAliases": [
|
|
2841
|
-
|
|
2734
|
+
"hiddenAliases": [
|
|
2735
|
+
"dataset:export"
|
|
2736
|
+
],
|
|
2737
|
+
"id": "datasets:export",
|
|
2842
2738
|
"pluginAlias": "@sanity/cli",
|
|
2843
2739
|
"pluginName": "@sanity/cli",
|
|
2844
2740
|
"pluginType": "core",
|
|
@@ -2847,49 +2743,151 @@
|
|
|
2847
2743
|
"relativePath": [
|
|
2848
2744
|
"dist",
|
|
2849
2745
|
"commands",
|
|
2850
|
-
"
|
|
2851
|
-
"
|
|
2746
|
+
"datasets",
|
|
2747
|
+
"export.js"
|
|
2852
2748
|
]
|
|
2853
2749
|
},
|
|
2854
|
-
"
|
|
2750
|
+
"datasets:import": {
|
|
2855
2751
|
"aliases": [],
|
|
2856
2752
|
"args": {
|
|
2857
|
-
"
|
|
2858
|
-
"description": "
|
|
2859
|
-
"name": "
|
|
2753
|
+
"source": {
|
|
2754
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
2755
|
+
"name": "source",
|
|
2756
|
+
"required": true
|
|
2757
|
+
},
|
|
2758
|
+
"targetDataset": {
|
|
2759
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
2760
|
+
"name": "targetDataset",
|
|
2860
2761
|
"required": false
|
|
2861
2762
|
}
|
|
2862
2763
|
},
|
|
2863
|
-
"description": "
|
|
2764
|
+
"description": "Import documents to a Sanity dataset",
|
|
2864
2765
|
"examples": [
|
|
2865
2766
|
{
|
|
2866
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2867
|
-
"description": "
|
|
2767
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
2768
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
2868
2769
|
},
|
|
2869
2770
|
{
|
|
2870
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2871
|
-
"description": "
|
|
2771
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
2772
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
2872
2773
|
},
|
|
2873
2774
|
{
|
|
2874
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2875
|
-
"description": "
|
|
2775
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
2776
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
2780
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
2876
2781
|
}
|
|
2877
2782
|
],
|
|
2878
2783
|
"flags": {
|
|
2784
|
+
"allow-assets-in-different-dataset": {
|
|
2785
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
2786
|
+
"name": "allow-assets-in-different-dataset",
|
|
2787
|
+
"allowNo": false,
|
|
2788
|
+
"type": "boolean"
|
|
2789
|
+
},
|
|
2790
|
+
"allow-failing-assets": {
|
|
2791
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
2792
|
+
"name": "allow-failing-assets",
|
|
2793
|
+
"allowNo": false,
|
|
2794
|
+
"type": "boolean"
|
|
2795
|
+
},
|
|
2796
|
+
"allow-replacement-characters": {
|
|
2797
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
2798
|
+
"name": "allow-replacement-characters",
|
|
2799
|
+
"allowNo": false,
|
|
2800
|
+
"type": "boolean"
|
|
2801
|
+
},
|
|
2802
|
+
"allow-system-documents": {
|
|
2803
|
+
"description": "Imports system documents",
|
|
2804
|
+
"name": "allow-system-documents",
|
|
2805
|
+
"allowNo": false,
|
|
2806
|
+
"type": "boolean"
|
|
2807
|
+
},
|
|
2808
|
+
"asset-concurrency": {
|
|
2809
|
+
"description": "Number of parallel asset imports",
|
|
2810
|
+
"name": "asset-concurrency",
|
|
2811
|
+
"hasDynamicHelp": false,
|
|
2812
|
+
"multiple": false,
|
|
2813
|
+
"type": "option"
|
|
2814
|
+
},
|
|
2815
|
+
"dataset": {
|
|
2816
|
+
"char": "d",
|
|
2817
|
+
"description": "Dataset to import to",
|
|
2818
|
+
"name": "dataset",
|
|
2819
|
+
"hasDynamicHelp": false,
|
|
2820
|
+
"helpValue": "<name>",
|
|
2821
|
+
"multiple": false,
|
|
2822
|
+
"type": "option"
|
|
2823
|
+
},
|
|
2824
|
+
"missing": {
|
|
2825
|
+
"description": "Skip documents that already exist",
|
|
2826
|
+
"exclusive": [
|
|
2827
|
+
"replace"
|
|
2828
|
+
],
|
|
2829
|
+
"name": "missing",
|
|
2830
|
+
"allowNo": false,
|
|
2831
|
+
"type": "boolean"
|
|
2832
|
+
},
|
|
2879
2833
|
"project-id": {
|
|
2880
2834
|
"char": "p",
|
|
2881
|
-
"description": "Project ID to
|
|
2835
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
2882
2836
|
"helpGroup": "OVERRIDE",
|
|
2883
2837
|
"name": "project-id",
|
|
2884
2838
|
"hasDynamicHelp": false,
|
|
2885
2839
|
"helpValue": "<id>",
|
|
2886
2840
|
"multiple": false,
|
|
2887
2841
|
"type": "option"
|
|
2842
|
+
},
|
|
2843
|
+
"project": {
|
|
2844
|
+
"deprecated": {
|
|
2845
|
+
"to": "project-id"
|
|
2846
|
+
},
|
|
2847
|
+
"description": "Project ID to import to",
|
|
2848
|
+
"hidden": true,
|
|
2849
|
+
"name": "project",
|
|
2850
|
+
"hasDynamicHelp": false,
|
|
2851
|
+
"multiple": false,
|
|
2852
|
+
"type": "option"
|
|
2853
|
+
},
|
|
2854
|
+
"replace": {
|
|
2855
|
+
"description": "Replace documents with the same IDs",
|
|
2856
|
+
"exclusive": [
|
|
2857
|
+
"missing"
|
|
2858
|
+
],
|
|
2859
|
+
"name": "replace",
|
|
2860
|
+
"allowNo": false,
|
|
2861
|
+
"type": "boolean"
|
|
2862
|
+
},
|
|
2863
|
+
"replace-assets": {
|
|
2864
|
+
"description": "Skip reuse of existing assets",
|
|
2865
|
+
"name": "replace-assets",
|
|
2866
|
+
"allowNo": false,
|
|
2867
|
+
"type": "boolean"
|
|
2868
|
+
},
|
|
2869
|
+
"skip-cross-dataset-references": {
|
|
2870
|
+
"description": "Skips references to other datasets",
|
|
2871
|
+
"name": "skip-cross-dataset-references",
|
|
2872
|
+
"allowNo": false,
|
|
2873
|
+
"type": "boolean"
|
|
2874
|
+
},
|
|
2875
|
+
"token": {
|
|
2876
|
+
"char": "t",
|
|
2877
|
+
"description": "Token to authenticate with",
|
|
2878
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
2879
|
+
"name": "token",
|
|
2880
|
+
"required": false,
|
|
2881
|
+
"hasDynamicHelp": false,
|
|
2882
|
+
"multiple": false,
|
|
2883
|
+
"type": "option"
|
|
2888
2884
|
}
|
|
2889
2885
|
},
|
|
2890
2886
|
"hasDynamicHelp": false,
|
|
2891
|
-
"hiddenAliases": [
|
|
2892
|
-
|
|
2887
|
+
"hiddenAliases": [
|
|
2888
|
+
"dataset:import"
|
|
2889
|
+
],
|
|
2890
|
+
"id": "datasets:import",
|
|
2893
2891
|
"pluginAlias": "@sanity/cli",
|
|
2894
2892
|
"pluginName": "@sanity/cli",
|
|
2895
2893
|
"pluginType": "core",
|
|
@@ -2898,28 +2896,28 @@
|
|
|
2898
2896
|
"relativePath": [
|
|
2899
2897
|
"dist",
|
|
2900
2898
|
"commands",
|
|
2901
|
-
"
|
|
2902
|
-
"
|
|
2899
|
+
"datasets",
|
|
2900
|
+
"import.js"
|
|
2903
2901
|
]
|
|
2904
2902
|
},
|
|
2905
|
-
"
|
|
2903
|
+
"datasets:list": {
|
|
2906
2904
|
"aliases": [],
|
|
2907
2905
|
"args": {},
|
|
2908
|
-
"description": "List
|
|
2906
|
+
"description": "List datasets for the project",
|
|
2909
2907
|
"examples": [
|
|
2910
2908
|
{
|
|
2911
2909
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2912
|
-
"description": "List
|
|
2910
|
+
"description": "List datasets for the project"
|
|
2913
2911
|
},
|
|
2914
2912
|
{
|
|
2915
2913
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2916
|
-
"description": "List
|
|
2914
|
+
"description": "List datasets for a specific project"
|
|
2917
2915
|
}
|
|
2918
2916
|
],
|
|
2919
2917
|
"flags": {
|
|
2920
2918
|
"project-id": {
|
|
2921
2919
|
"char": "p",
|
|
2922
|
-
"description": "Project ID to list
|
|
2920
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
2923
2921
|
"helpGroup": "OVERRIDE",
|
|
2924
2922
|
"name": "project-id",
|
|
2925
2923
|
"hasDynamicHelp": false,
|
|
@@ -2929,8 +2927,10 @@
|
|
|
2929
2927
|
}
|
|
2930
2928
|
},
|
|
2931
2929
|
"hasDynamicHelp": false,
|
|
2932
|
-
"hiddenAliases": [
|
|
2933
|
-
|
|
2930
|
+
"hiddenAliases": [
|
|
2931
|
+
"dataset:list"
|
|
2932
|
+
],
|
|
2933
|
+
"id": "datasets:list",
|
|
2934
2934
|
"pluginAlias": "@sanity/cli",
|
|
2935
2935
|
"pluginName": "@sanity/cli",
|
|
2936
2936
|
"pluginType": "core",
|
|
@@ -2939,7 +2939,7 @@
|
|
|
2939
2939
|
"relativePath": [
|
|
2940
2940
|
"dist",
|
|
2941
2941
|
"commands",
|
|
2942
|
-
"
|
|
2942
|
+
"datasets",
|
|
2943
2943
|
"list.js"
|
|
2944
2944
|
]
|
|
2945
2945
|
},
|
|
@@ -4050,114 +4050,22 @@
|
|
|
4050
4050
|
},
|
|
4051
4051
|
{
|
|
4052
4052
|
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
4053
|
-
"description": "Extracts manifests into /public/static"
|
|
4054
|
-
}
|
|
4055
|
-
],
|
|
4056
|
-
"flags": {
|
|
4057
|
-
"path": {
|
|
4058
|
-
"description": "Optional path to specify destination directory of the manifest files",
|
|
4059
|
-
"name": "path",
|
|
4060
|
-
"default": "dist/static",
|
|
4061
|
-
"hasDynamicHelp": false,
|
|
4062
|
-
"multiple": false,
|
|
4063
|
-
"type": "option"
|
|
4064
|
-
}
|
|
4065
|
-
},
|
|
4066
|
-
"hasDynamicHelp": false,
|
|
4067
|
-
"hiddenAliases": [],
|
|
4068
|
-
"id": "manifest:extract",
|
|
4069
|
-
"pluginAlias": "@sanity/cli",
|
|
4070
|
-
"pluginName": "@sanity/cli",
|
|
4071
|
-
"pluginType": "core",
|
|
4072
|
-
"strict": true,
|
|
4073
|
-
"isESM": true,
|
|
4074
|
-
"relativePath": [
|
|
4075
|
-
"dist",
|
|
4076
|
-
"commands",
|
|
4077
|
-
"manifest",
|
|
4078
|
-
"extract.js"
|
|
4079
|
-
]
|
|
4080
|
-
},
|
|
4081
|
-
"mcp:configure": {
|
|
4082
|
-
"aliases": [],
|
|
4083
|
-
"args": {},
|
|
4084
|
-
"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)",
|
|
4085
|
-
"examples": [
|
|
4086
|
-
{
|
|
4087
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4088
|
-
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4089
|
-
}
|
|
4090
|
-
],
|
|
4091
|
-
"flags": {},
|
|
4092
|
-
"hasDynamicHelp": false,
|
|
4093
|
-
"hiddenAliases": [],
|
|
4094
|
-
"id": "mcp:configure",
|
|
4095
|
-
"pluginAlias": "@sanity/cli",
|
|
4096
|
-
"pluginName": "@sanity/cli",
|
|
4097
|
-
"pluginType": "core",
|
|
4098
|
-
"strict": true,
|
|
4099
|
-
"isESM": true,
|
|
4100
|
-
"relativePath": [
|
|
4101
|
-
"dist",
|
|
4102
|
-
"commands",
|
|
4103
|
-
"mcp",
|
|
4104
|
-
"configure.js"
|
|
4105
|
-
]
|
|
4106
|
-
},
|
|
4107
|
-
"migrations:create": {
|
|
4108
|
-
"aliases": [],
|
|
4109
|
-
"args": {
|
|
4110
|
-
"title": {
|
|
4111
|
-
"description": "Title of migration",
|
|
4112
|
-
"name": "title",
|
|
4113
|
-
"required": false
|
|
4114
|
-
}
|
|
4115
|
-
},
|
|
4116
|
-
"description": "Create a new migration within your project",
|
|
4117
|
-
"examples": [
|
|
4118
|
-
{
|
|
4119
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4120
|
-
"description": "Create a new migration, prompting for title and options"
|
|
4121
|
-
},
|
|
4122
|
-
{
|
|
4123
|
-
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
4124
|
-
"description": "Create a new migration with the provided title, prompting for options"
|
|
4125
|
-
}
|
|
4126
|
-
],
|
|
4127
|
-
"flags": {},
|
|
4128
|
-
"hasDynamicHelp": false,
|
|
4129
|
-
"hiddenAliases": [
|
|
4130
|
-
"migration:create"
|
|
4131
|
-
],
|
|
4132
|
-
"id": "migrations:create",
|
|
4133
|
-
"pluginAlias": "@sanity/cli",
|
|
4134
|
-
"pluginName": "@sanity/cli",
|
|
4135
|
-
"pluginType": "core",
|
|
4136
|
-
"strict": true,
|
|
4137
|
-
"isESM": true,
|
|
4138
|
-
"relativePath": [
|
|
4139
|
-
"dist",
|
|
4140
|
-
"commands",
|
|
4141
|
-
"migrations",
|
|
4142
|
-
"create.js"
|
|
4143
|
-
]
|
|
4144
|
-
},
|
|
4145
|
-
"migrations:list": {
|
|
4146
|
-
"aliases": [],
|
|
4147
|
-
"args": {},
|
|
4148
|
-
"description": "List available migrations",
|
|
4149
|
-
"examples": [
|
|
4150
|
-
{
|
|
4151
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4152
|
-
"description": "List all available migrations in the project"
|
|
4053
|
+
"description": "Extracts manifests into /public/static"
|
|
4153
4054
|
}
|
|
4154
4055
|
],
|
|
4155
|
-
"flags": {
|
|
4056
|
+
"flags": {
|
|
4057
|
+
"path": {
|
|
4058
|
+
"description": "Optional path to specify destination directory of the manifest files",
|
|
4059
|
+
"name": "path",
|
|
4060
|
+
"default": "dist/static",
|
|
4061
|
+
"hasDynamicHelp": false,
|
|
4062
|
+
"multiple": false,
|
|
4063
|
+
"type": "option"
|
|
4064
|
+
}
|
|
4065
|
+
},
|
|
4156
4066
|
"hasDynamicHelp": false,
|
|
4157
|
-
"hiddenAliases": [
|
|
4158
|
-
|
|
4159
|
-
],
|
|
4160
|
-
"id": "migrations:list",
|
|
4067
|
+
"hiddenAliases": [],
|
|
4068
|
+
"id": "manifest:extract",
|
|
4161
4069
|
"pluginAlias": "@sanity/cli",
|
|
4162
4070
|
"pluginName": "@sanity/cli",
|
|
4163
4071
|
"pluginType": "core",
|
|
@@ -4166,95 +4074,24 @@
|
|
|
4166
4074
|
"relativePath": [
|
|
4167
4075
|
"dist",
|
|
4168
4076
|
"commands",
|
|
4169
|
-
"
|
|
4170
|
-
"
|
|
4077
|
+
"manifest",
|
|
4078
|
+
"extract.js"
|
|
4171
4079
|
]
|
|
4172
4080
|
},
|
|
4173
|
-
"
|
|
4081
|
+
"mcp:configure": {
|
|
4174
4082
|
"aliases": [],
|
|
4175
|
-
"args": {
|
|
4176
|
-
|
|
4177
|
-
"description": "ID",
|
|
4178
|
-
"name": "id",
|
|
4179
|
-
"required": false
|
|
4180
|
-
}
|
|
4181
|
-
},
|
|
4182
|
-
"description": "Run a migration against a dataset",
|
|
4083
|
+
"args": {},
|
|
4084
|
+
"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)",
|
|
4183
4085
|
"examples": [
|
|
4184
4086
|
{
|
|
4185
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4186
|
-
"description": "
|
|
4187
|
-
},
|
|
4188
|
-
{
|
|
4189
|
-
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
4190
|
-
"description": "execute the migration against a dataset"
|
|
4191
|
-
},
|
|
4192
|
-
{
|
|
4193
|
-
"command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
|
|
4194
|
-
"description": "execute the migration using a dataset export as the source"
|
|
4087
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4088
|
+
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4195
4089
|
}
|
|
4196
4090
|
],
|
|
4197
|
-
"flags": {
|
|
4198
|
-
"api-version": {
|
|
4199
|
-
"description": "API version to use when migrating. Defaults to v2024-01-29.",
|
|
4200
|
-
"name": "api-version",
|
|
4201
|
-
"hasDynamicHelp": false,
|
|
4202
|
-
"multiple": false,
|
|
4203
|
-
"type": "option"
|
|
4204
|
-
},
|
|
4205
|
-
"concurrency": {
|
|
4206
|
-
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
4207
|
-
"name": "concurrency",
|
|
4208
|
-
"default": 6,
|
|
4209
|
-
"hasDynamicHelp": false,
|
|
4210
|
-
"multiple": false,
|
|
4211
|
-
"type": "option"
|
|
4212
|
-
},
|
|
4213
|
-
"confirm": {
|
|
4214
|
-
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
4215
|
-
"name": "confirm",
|
|
4216
|
-
"allowNo": true,
|
|
4217
|
-
"type": "boolean"
|
|
4218
|
-
},
|
|
4219
|
-
"dataset": {
|
|
4220
|
-
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
4221
|
-
"name": "dataset",
|
|
4222
|
-
"hasDynamicHelp": false,
|
|
4223
|
-
"multiple": false,
|
|
4224
|
-
"type": "option"
|
|
4225
|
-
},
|
|
4226
|
-
"dry-run": {
|
|
4227
|
-
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
4228
|
-
"name": "dry-run",
|
|
4229
|
-
"allowNo": true,
|
|
4230
|
-
"type": "boolean"
|
|
4231
|
-
},
|
|
4232
|
-
"from-export": {
|
|
4233
|
-
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
4234
|
-
"name": "from-export",
|
|
4235
|
-
"hasDynamicHelp": false,
|
|
4236
|
-
"multiple": false,
|
|
4237
|
-
"type": "option"
|
|
4238
|
-
},
|
|
4239
|
-
"progress": {
|
|
4240
|
-
"description": "Display progress during migration (default: true). Use --no-progress to hide output.",
|
|
4241
|
-
"name": "progress",
|
|
4242
|
-
"allowNo": true,
|
|
4243
|
-
"type": "boolean"
|
|
4244
|
-
},
|
|
4245
|
-
"project": {
|
|
4246
|
-
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
4247
|
-
"name": "project",
|
|
4248
|
-
"hasDynamicHelp": false,
|
|
4249
|
-
"multiple": false,
|
|
4250
|
-
"type": "option"
|
|
4251
|
-
}
|
|
4252
|
-
},
|
|
4091
|
+
"flags": {},
|
|
4253
4092
|
"hasDynamicHelp": false,
|
|
4254
|
-
"hiddenAliases": [
|
|
4255
|
-
|
|
4256
|
-
],
|
|
4257
|
-
"id": "migrations:run",
|
|
4093
|
+
"hiddenAliases": [],
|
|
4094
|
+
"id": "mcp:configure",
|
|
4258
4095
|
"pluginAlias": "@sanity/cli",
|
|
4259
4096
|
"pluginName": "@sanity/cli",
|
|
4260
4097
|
"pluginType": "core",
|
|
@@ -4263,8 +4100,8 @@
|
|
|
4263
4100
|
"relativePath": [
|
|
4264
4101
|
"dist",
|
|
4265
4102
|
"commands",
|
|
4266
|
-
"
|
|
4267
|
-
"
|
|
4103
|
+
"mcp",
|
|
4104
|
+
"configure.js"
|
|
4268
4105
|
]
|
|
4269
4106
|
},
|
|
4270
4107
|
"media:create-aspect": {
|
|
@@ -4487,10 +4324,180 @@
|
|
|
4487
4324
|
"allowNo": false,
|
|
4488
4325
|
"type": "boolean"
|
|
4489
4326
|
}
|
|
4490
|
-
},
|
|
4327
|
+
},
|
|
4328
|
+
"hasDynamicHelp": false,
|
|
4329
|
+
"hiddenAliases": [],
|
|
4330
|
+
"id": "media:export",
|
|
4331
|
+
"pluginAlias": "@sanity/cli",
|
|
4332
|
+
"pluginName": "@sanity/cli",
|
|
4333
|
+
"pluginType": "core",
|
|
4334
|
+
"strict": true,
|
|
4335
|
+
"isESM": true,
|
|
4336
|
+
"relativePath": [
|
|
4337
|
+
"dist",
|
|
4338
|
+
"commands",
|
|
4339
|
+
"media",
|
|
4340
|
+
"export.js"
|
|
4341
|
+
]
|
|
4342
|
+
},
|
|
4343
|
+
"media:import": {
|
|
4344
|
+
"aliases": [],
|
|
4345
|
+
"args": {
|
|
4346
|
+
"source": {
|
|
4347
|
+
"description": "Directory, archive, or asset URL to import from. An https URL imports one asset that Sanity fetches itself",
|
|
4348
|
+
"name": "source",
|
|
4349
|
+
"required": true
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
"description": "Import a set of assets to the target media library.",
|
|
4353
|
+
"examples": [
|
|
4354
|
+
{
|
|
4355
|
+
"command": "<%= config.bin %> <%= command.id %> products",
|
|
4356
|
+
"description": "Import all assets from the \"products\" directory"
|
|
4357
|
+
},
|
|
4358
|
+
{
|
|
4359
|
+
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4360
|
+
"description": "Import all assets from \"gallery\" archive"
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4364
|
+
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4365
|
+
},
|
|
4366
|
+
{
|
|
4367
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com/hero.png",
|
|
4368
|
+
"description": "Have Sanity fetch a single asset from a public URL"
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com/hero.png --aspect department=Brand",
|
|
4372
|
+
"description": "Fetch an asset from a URL and set aspect data on it"
|
|
4373
|
+
}
|
|
4374
|
+
],
|
|
4375
|
+
"flags": {
|
|
4376
|
+
"project-id": {
|
|
4377
|
+
"char": "p",
|
|
4378
|
+
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
4379
|
+
"helpGroup": "OVERRIDE",
|
|
4380
|
+
"name": "project-id",
|
|
4381
|
+
"hasDynamicHelp": false,
|
|
4382
|
+
"helpValue": "<id>",
|
|
4383
|
+
"multiple": false,
|
|
4384
|
+
"type": "option"
|
|
4385
|
+
},
|
|
4386
|
+
"aspect": {
|
|
4387
|
+
"description": "Aspect value to set on the imported asset, as key=value. Repeatable. Only applies when the source is a URL - directory and archive imports read aspects from their data.ndjson",
|
|
4388
|
+
"name": "aspect",
|
|
4389
|
+
"hasDynamicHelp": false,
|
|
4390
|
+
"helpValue": "<key=value>",
|
|
4391
|
+
"multiple": true,
|
|
4392
|
+
"type": "option"
|
|
4393
|
+
},
|
|
4394
|
+
"filename": {
|
|
4395
|
+
"description": "Original filename to store on the asset. Only applies when the source is a URL. Defaults to a name derived from the URL",
|
|
4396
|
+
"name": "filename",
|
|
4397
|
+
"hasDynamicHelp": false,
|
|
4398
|
+
"helpValue": "<filename>",
|
|
4399
|
+
"multiple": false,
|
|
4400
|
+
"type": "option"
|
|
4401
|
+
},
|
|
4402
|
+
"media-library-id": {
|
|
4403
|
+
"description": "The id of the target media library",
|
|
4404
|
+
"name": "media-library-id",
|
|
4405
|
+
"hasDynamicHelp": false,
|
|
4406
|
+
"multiple": false,
|
|
4407
|
+
"type": "option"
|
|
4408
|
+
},
|
|
4409
|
+
"replace-aspects": {
|
|
4410
|
+
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data). Only applies to directory and archive imports",
|
|
4411
|
+
"name": "replace-aspects",
|
|
4412
|
+
"allowNo": false,
|
|
4413
|
+
"type": "boolean"
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
"hasDynamicHelp": false,
|
|
4417
|
+
"hiddenAliases": [],
|
|
4418
|
+
"id": "media:import",
|
|
4419
|
+
"pluginAlias": "@sanity/cli",
|
|
4420
|
+
"pluginName": "@sanity/cli",
|
|
4421
|
+
"pluginType": "core",
|
|
4422
|
+
"strict": true,
|
|
4423
|
+
"telemetry": {
|
|
4424
|
+
"redactedFlags": [
|
|
4425
|
+
{
|
|
4426
|
+
"canonical": "--aspect",
|
|
4427
|
+
"flags": [
|
|
4428
|
+
"--aspect"
|
|
4429
|
+
]
|
|
4430
|
+
},
|
|
4431
|
+
{
|
|
4432
|
+
"canonical": "--filename",
|
|
4433
|
+
"flags": [
|
|
4434
|
+
"--filename"
|
|
4435
|
+
]
|
|
4436
|
+
}
|
|
4437
|
+
]
|
|
4438
|
+
},
|
|
4439
|
+
"isESM": true,
|
|
4440
|
+
"relativePath": [
|
|
4441
|
+
"dist",
|
|
4442
|
+
"commands",
|
|
4443
|
+
"media",
|
|
4444
|
+
"import.js"
|
|
4445
|
+
]
|
|
4446
|
+
},
|
|
4447
|
+
"migrations:create": {
|
|
4448
|
+
"aliases": [],
|
|
4449
|
+
"args": {
|
|
4450
|
+
"title": {
|
|
4451
|
+
"description": "Title of migration",
|
|
4452
|
+
"name": "title",
|
|
4453
|
+
"required": false
|
|
4454
|
+
}
|
|
4455
|
+
},
|
|
4456
|
+
"description": "Create a new migration within your project",
|
|
4457
|
+
"examples": [
|
|
4458
|
+
{
|
|
4459
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4460
|
+
"description": "Create a new migration, prompting for title and options"
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
4464
|
+
"description": "Create a new migration with the provided title, prompting for options"
|
|
4465
|
+
}
|
|
4466
|
+
],
|
|
4467
|
+
"flags": {},
|
|
4468
|
+
"hasDynamicHelp": false,
|
|
4469
|
+
"hiddenAliases": [
|
|
4470
|
+
"migration:create"
|
|
4471
|
+
],
|
|
4472
|
+
"id": "migrations:create",
|
|
4473
|
+
"pluginAlias": "@sanity/cli",
|
|
4474
|
+
"pluginName": "@sanity/cli",
|
|
4475
|
+
"pluginType": "core",
|
|
4476
|
+
"strict": true,
|
|
4477
|
+
"isESM": true,
|
|
4478
|
+
"relativePath": [
|
|
4479
|
+
"dist",
|
|
4480
|
+
"commands",
|
|
4481
|
+
"migrations",
|
|
4482
|
+
"create.js"
|
|
4483
|
+
]
|
|
4484
|
+
},
|
|
4485
|
+
"migrations:list": {
|
|
4486
|
+
"aliases": [],
|
|
4487
|
+
"args": {},
|
|
4488
|
+
"description": "List available migrations",
|
|
4489
|
+
"examples": [
|
|
4490
|
+
{
|
|
4491
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4492
|
+
"description": "List all available migrations in the project"
|
|
4493
|
+
}
|
|
4494
|
+
],
|
|
4495
|
+
"flags": {},
|
|
4491
4496
|
"hasDynamicHelp": false,
|
|
4492
|
-
"hiddenAliases": [
|
|
4493
|
-
|
|
4497
|
+
"hiddenAliases": [
|
|
4498
|
+
"migration:list"
|
|
4499
|
+
],
|
|
4500
|
+
"id": "migrations:list",
|
|
4494
4501
|
"pluginAlias": "@sanity/cli",
|
|
4495
4502
|
"pluginName": "@sanity/cli",
|
|
4496
4503
|
"pluginType": "core",
|
|
@@ -4499,112 +4506,105 @@
|
|
|
4499
4506
|
"relativePath": [
|
|
4500
4507
|
"dist",
|
|
4501
4508
|
"commands",
|
|
4502
|
-
"
|
|
4503
|
-
"
|
|
4509
|
+
"migrations",
|
|
4510
|
+
"list.js"
|
|
4504
4511
|
]
|
|
4505
4512
|
},
|
|
4506
|
-
"
|
|
4513
|
+
"migrations:run": {
|
|
4507
4514
|
"aliases": [],
|
|
4508
4515
|
"args": {
|
|
4509
|
-
"
|
|
4510
|
-
"description": "
|
|
4511
|
-
"name": "
|
|
4512
|
-
"required":
|
|
4516
|
+
"id": {
|
|
4517
|
+
"description": "ID",
|
|
4518
|
+
"name": "id",
|
|
4519
|
+
"required": false
|
|
4513
4520
|
}
|
|
4514
4521
|
},
|
|
4515
|
-
"description": "
|
|
4522
|
+
"description": "Run a migration against a dataset",
|
|
4516
4523
|
"examples": [
|
|
4517
4524
|
{
|
|
4518
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4519
|
-
"description": "
|
|
4520
|
-
},
|
|
4521
|
-
{
|
|
4522
|
-
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4523
|
-
"description": "Import all assets from \"gallery\" archive"
|
|
4524
|
-
},
|
|
4525
|
-
{
|
|
4526
|
-
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4527
|
-
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4525
|
+
"command": "<%= config.bin %> <%= command.id %> <id>",
|
|
4526
|
+
"description": "dry run the migration"
|
|
4528
4527
|
},
|
|
4529
4528
|
{
|
|
4530
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4531
|
-
"description": "
|
|
4529
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
4530
|
+
"description": "execute the migration against a dataset"
|
|
4532
4531
|
},
|
|
4533
4532
|
{
|
|
4534
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4535
|
-
"description": "
|
|
4533
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
|
|
4534
|
+
"description": "execute the migration using a dataset export as the source"
|
|
4536
4535
|
}
|
|
4537
4536
|
],
|
|
4538
4537
|
"flags": {
|
|
4539
|
-
"
|
|
4540
|
-
"
|
|
4541
|
-
"
|
|
4542
|
-
"helpGroup": "OVERRIDE",
|
|
4543
|
-
"name": "project-id",
|
|
4538
|
+
"api-version": {
|
|
4539
|
+
"description": "API version to use when migrating. Defaults to v2024-01-29.",
|
|
4540
|
+
"name": "api-version",
|
|
4544
4541
|
"hasDynamicHelp": false,
|
|
4545
|
-
"helpValue": "<id>",
|
|
4546
4542
|
"multiple": false,
|
|
4547
4543
|
"type": "option"
|
|
4548
4544
|
},
|
|
4549
|
-
"
|
|
4550
|
-
"description": "
|
|
4551
|
-
"name": "
|
|
4545
|
+
"concurrency": {
|
|
4546
|
+
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
4547
|
+
"name": "concurrency",
|
|
4548
|
+
"default": 6,
|
|
4552
4549
|
"hasDynamicHelp": false,
|
|
4553
|
-
"
|
|
4554
|
-
"multiple": true,
|
|
4550
|
+
"multiple": false,
|
|
4555
4551
|
"type": "option"
|
|
4556
4552
|
},
|
|
4557
|
-
"
|
|
4558
|
-
"description": "
|
|
4559
|
-
"name": "
|
|
4553
|
+
"confirm": {
|
|
4554
|
+
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
4555
|
+
"name": "confirm",
|
|
4556
|
+
"allowNo": true,
|
|
4557
|
+
"type": "boolean"
|
|
4558
|
+
},
|
|
4559
|
+
"dataset": {
|
|
4560
|
+
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
4561
|
+
"name": "dataset",
|
|
4560
4562
|
"hasDynamicHelp": false,
|
|
4561
|
-
"helpValue": "<filename>",
|
|
4562
4563
|
"multiple": false,
|
|
4563
4564
|
"type": "option"
|
|
4564
4565
|
},
|
|
4565
|
-
"
|
|
4566
|
-
"description": "
|
|
4567
|
-
"name": "
|
|
4566
|
+
"dry-run": {
|
|
4567
|
+
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
4568
|
+
"name": "dry-run",
|
|
4569
|
+
"allowNo": true,
|
|
4570
|
+
"type": "boolean"
|
|
4571
|
+
},
|
|
4572
|
+
"from-export": {
|
|
4573
|
+
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
4574
|
+
"name": "from-export",
|
|
4568
4575
|
"hasDynamicHelp": false,
|
|
4569
4576
|
"multiple": false,
|
|
4570
4577
|
"type": "option"
|
|
4571
4578
|
},
|
|
4572
|
-
"
|
|
4573
|
-
"description": "
|
|
4574
|
-
"name": "
|
|
4575
|
-
"allowNo":
|
|
4579
|
+
"progress": {
|
|
4580
|
+
"description": "Display progress during migration (default: true). Use --no-progress to hide output.",
|
|
4581
|
+
"name": "progress",
|
|
4582
|
+
"allowNo": true,
|
|
4576
4583
|
"type": "boolean"
|
|
4584
|
+
},
|
|
4585
|
+
"project": {
|
|
4586
|
+
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
4587
|
+
"name": "project",
|
|
4588
|
+
"hasDynamicHelp": false,
|
|
4589
|
+
"multiple": false,
|
|
4590
|
+
"type": "option"
|
|
4577
4591
|
}
|
|
4578
4592
|
},
|
|
4579
4593
|
"hasDynamicHelp": false,
|
|
4580
|
-
"hiddenAliases": [
|
|
4581
|
-
|
|
4594
|
+
"hiddenAliases": [
|
|
4595
|
+
"migration:run"
|
|
4596
|
+
],
|
|
4597
|
+
"id": "migrations:run",
|
|
4582
4598
|
"pluginAlias": "@sanity/cli",
|
|
4583
4599
|
"pluginName": "@sanity/cli",
|
|
4584
4600
|
"pluginType": "core",
|
|
4585
4601
|
"strict": true,
|
|
4586
|
-
"telemetry": {
|
|
4587
|
-
"redactedFlags": [
|
|
4588
|
-
{
|
|
4589
|
-
"canonical": "--aspect",
|
|
4590
|
-
"flags": [
|
|
4591
|
-
"--aspect"
|
|
4592
|
-
]
|
|
4593
|
-
},
|
|
4594
|
-
{
|
|
4595
|
-
"canonical": "--filename",
|
|
4596
|
-
"flags": [
|
|
4597
|
-
"--filename"
|
|
4598
|
-
]
|
|
4599
|
-
}
|
|
4600
|
-
]
|
|
4601
|
-
},
|
|
4602
4602
|
"isESM": true,
|
|
4603
4603
|
"relativePath": [
|
|
4604
4604
|
"dist",
|
|
4605
4605
|
"commands",
|
|
4606
|
-
"
|
|
4607
|
-
"
|
|
4606
|
+
"migrations",
|
|
4607
|
+
"run.js"
|
|
4608
4608
|
]
|
|
4609
4609
|
},
|
|
4610
4610
|
"openapi:get": {
|
|
@@ -5659,48 +5659,6 @@
|
|
|
5659
5659
|
"status.js"
|
|
5660
5660
|
]
|
|
5661
5661
|
},
|
|
5662
|
-
"typegen:generate": {
|
|
5663
|
-
"aliases": [],
|
|
5664
|
-
"args": {},
|
|
5665
|
-
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
|
|
5666
|
-
"examples": [
|
|
5667
|
-
{
|
|
5668
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5669
|
-
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
5670
|
-
}
|
|
5671
|
-
],
|
|
5672
|
-
"flags": {
|
|
5673
|
-
"config-path": {
|
|
5674
|
-
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
5675
|
-
"name": "config-path",
|
|
5676
|
-
"hasDynamicHelp": false,
|
|
5677
|
-
"multiple": false,
|
|
5678
|
-
"type": "option"
|
|
5679
|
-
},
|
|
5680
|
-
"watch": {
|
|
5681
|
-
"description": "[Default: false] Run the typegen in watch mode",
|
|
5682
|
-
"name": "watch",
|
|
5683
|
-
"allowNo": false,
|
|
5684
|
-
"type": "boolean"
|
|
5685
|
-
}
|
|
5686
|
-
},
|
|
5687
|
-
"hasDynamicHelp": false,
|
|
5688
|
-
"hiddenAliases": [
|
|
5689
|
-
"typegen:generate"
|
|
5690
|
-
],
|
|
5691
|
-
"id": "typegen:generate",
|
|
5692
|
-
"pluginAlias": "@sanity/cli",
|
|
5693
|
-
"pluginName": "@sanity/cli",
|
|
5694
|
-
"pluginType": "core",
|
|
5695
|
-
"strict": true,
|
|
5696
|
-
"isESM": true,
|
|
5697
|
-
"relativePath": [
|
|
5698
|
-
"dist",
|
|
5699
|
-
"commands",
|
|
5700
|
-
"typegen",
|
|
5701
|
-
"generate.js"
|
|
5702
|
-
]
|
|
5703
|
-
},
|
|
5704
5662
|
"tokens:create": {
|
|
5705
5663
|
"aliases": [],
|
|
5706
5664
|
"args": {
|
|
@@ -5966,6 +5924,48 @@
|
|
|
5966
5924
|
"rotate.js"
|
|
5967
5925
|
]
|
|
5968
5926
|
},
|
|
5927
|
+
"typegen:generate": {
|
|
5928
|
+
"aliases": [],
|
|
5929
|
+
"args": {},
|
|
5930
|
+
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted.",
|
|
5931
|
+
"examples": [
|
|
5932
|
+
{
|
|
5933
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5934
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
5935
|
+
}
|
|
5936
|
+
],
|
|
5937
|
+
"flags": {
|
|
5938
|
+
"config-path": {
|
|
5939
|
+
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
5940
|
+
"name": "config-path",
|
|
5941
|
+
"hasDynamicHelp": false,
|
|
5942
|
+
"multiple": false,
|
|
5943
|
+
"type": "option"
|
|
5944
|
+
},
|
|
5945
|
+
"watch": {
|
|
5946
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
5947
|
+
"name": "watch",
|
|
5948
|
+
"allowNo": false,
|
|
5949
|
+
"type": "boolean"
|
|
5950
|
+
}
|
|
5951
|
+
},
|
|
5952
|
+
"hasDynamicHelp": false,
|
|
5953
|
+
"hiddenAliases": [
|
|
5954
|
+
"typegen:generate"
|
|
5955
|
+
],
|
|
5956
|
+
"id": "typegen:generate",
|
|
5957
|
+
"pluginAlias": "@sanity/cli",
|
|
5958
|
+
"pluginName": "@sanity/cli",
|
|
5959
|
+
"pluginType": "core",
|
|
5960
|
+
"strict": true,
|
|
5961
|
+
"isESM": true,
|
|
5962
|
+
"relativePath": [
|
|
5963
|
+
"dist",
|
|
5964
|
+
"commands",
|
|
5965
|
+
"typegen",
|
|
5966
|
+
"generate.js"
|
|
5967
|
+
]
|
|
5968
|
+
},
|
|
5969
5969
|
"users:invite": {
|
|
5970
5970
|
"aliases": [],
|
|
5971
5971
|
"args": {
|
|
@@ -6119,112 +6119,221 @@
|
|
|
6119
6119
|
"list.js"
|
|
6120
6120
|
]
|
|
6121
6121
|
},
|
|
6122
|
-
"
|
|
6122
|
+
"context:imports:create": {
|
|
6123
6123
|
"aliases": [],
|
|
6124
6124
|
"args": {
|
|
6125
|
-
"
|
|
6126
|
-
"description": "
|
|
6127
|
-
"name": "
|
|
6128
|
-
"required":
|
|
6129
|
-
},
|
|
6130
|
-
"targetDataset": {
|
|
6131
|
-
"description": "Target dataset name to link the alias to",
|
|
6132
|
-
"name": "targetDataset",
|
|
6133
|
-
"required": false
|
|
6125
|
+
"knowledgeBaseId": {
|
|
6126
|
+
"description": "Knowledge base ID",
|
|
6127
|
+
"name": "knowledgeBaseId",
|
|
6128
|
+
"required": true
|
|
6134
6129
|
}
|
|
6135
6130
|
},
|
|
6136
|
-
"description": "
|
|
6131
|
+
"description": "Import content into a knowledge base",
|
|
6137
6132
|
"examples": [
|
|
6138
6133
|
{
|
|
6139
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6140
|
-
"description": "
|
|
6134
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --text \"Refunds are processed within 5 days\" --title \"Refund policy\"",
|
|
6135
|
+
"description": "Import inline text"
|
|
6141
6136
|
},
|
|
6142
6137
|
{
|
|
6143
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6144
|
-
"description": "
|
|
6138
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --file ./handbook.pdf",
|
|
6139
|
+
"description": "Upload and import a local file"
|
|
6145
6140
|
},
|
|
6146
6141
|
{
|
|
6147
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6148
|
-
"description": "
|
|
6142
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --url https://example.com/docs",
|
|
6143
|
+
"description": "Crawl a website"
|
|
6149
6144
|
},
|
|
6150
6145
|
{
|
|
6151
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6152
|
-
"description": "
|
|
6146
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --query '*[_type == \"article\"]' --sanity-project abc123 --sanity-dataset production",
|
|
6147
|
+
"description": "Bind a Sanity dataset as a source"
|
|
6153
6148
|
}
|
|
6154
6149
|
],
|
|
6155
6150
|
"flags": {
|
|
6156
|
-
"
|
|
6157
|
-
"
|
|
6158
|
-
"
|
|
6159
|
-
"
|
|
6160
|
-
"
|
|
6151
|
+
"content-type": {
|
|
6152
|
+
"description": "Content type of the import (--text: text/markdown or text/plain; --file: any MIME type, inferred from the file extension when omitted)",
|
|
6153
|
+
"name": "content-type",
|
|
6154
|
+
"required": false,
|
|
6155
|
+
"hasDynamicHelp": false,
|
|
6156
|
+
"helpValue": "<mime>",
|
|
6157
|
+
"multiple": false,
|
|
6158
|
+
"type": "option"
|
|
6159
|
+
},
|
|
6160
|
+
"file": {
|
|
6161
|
+
"description": "Path to a local file to import",
|
|
6162
|
+
"exclusive": [
|
|
6163
|
+
"text",
|
|
6164
|
+
"url",
|
|
6165
|
+
"query"
|
|
6166
|
+
],
|
|
6167
|
+
"name": "file",
|
|
6168
|
+
"required": false,
|
|
6169
|
+
"hasDynamicHelp": false,
|
|
6170
|
+
"helpValue": "<path>",
|
|
6171
|
+
"multiple": false,
|
|
6172
|
+
"type": "option"
|
|
6173
|
+
},
|
|
6174
|
+
"query": {
|
|
6175
|
+
"description": "GROQ query binding a Sanity dataset as a source",
|
|
6176
|
+
"exclusive": [
|
|
6177
|
+
"text",
|
|
6178
|
+
"url",
|
|
6179
|
+
"file"
|
|
6180
|
+
],
|
|
6181
|
+
"name": "query",
|
|
6182
|
+
"required": false,
|
|
6183
|
+
"hasDynamicHelp": false,
|
|
6184
|
+
"multiple": false,
|
|
6185
|
+
"type": "option"
|
|
6186
|
+
},
|
|
6187
|
+
"sanity-dataset": {
|
|
6188
|
+
"dependsOn": [
|
|
6189
|
+
"query"
|
|
6190
|
+
],
|
|
6191
|
+
"description": "Sanity dataset for a dataset import",
|
|
6192
|
+
"name": "sanity-dataset",
|
|
6193
|
+
"required": false,
|
|
6194
|
+
"hasDynamicHelp": false,
|
|
6195
|
+
"helpValue": "<name>",
|
|
6196
|
+
"multiple": false,
|
|
6197
|
+
"type": "option"
|
|
6198
|
+
},
|
|
6199
|
+
"sanity-project": {
|
|
6200
|
+
"dependsOn": [
|
|
6201
|
+
"query"
|
|
6202
|
+
],
|
|
6203
|
+
"description": "Sanity project ID for a dataset import",
|
|
6204
|
+
"name": "sanity-project",
|
|
6205
|
+
"required": false,
|
|
6161
6206
|
"hasDynamicHelp": false,
|
|
6162
6207
|
"helpValue": "<id>",
|
|
6163
6208
|
"multiple": false,
|
|
6164
6209
|
"type": "option"
|
|
6210
|
+
},
|
|
6211
|
+
"text": {
|
|
6212
|
+
"description": "Inline text content to import (requires --title)",
|
|
6213
|
+
"exclusive": [
|
|
6214
|
+
"file",
|
|
6215
|
+
"url",
|
|
6216
|
+
"query"
|
|
6217
|
+
],
|
|
6218
|
+
"name": "text",
|
|
6219
|
+
"required": false,
|
|
6220
|
+
"hasDynamicHelp": false,
|
|
6221
|
+
"multiple": false,
|
|
6222
|
+
"type": "option"
|
|
6223
|
+
},
|
|
6224
|
+
"title": {
|
|
6225
|
+
"dependsOn": [
|
|
6226
|
+
"text"
|
|
6227
|
+
],
|
|
6228
|
+
"description": "Title for an inline text import",
|
|
6229
|
+
"name": "title",
|
|
6230
|
+
"required": false,
|
|
6231
|
+
"hasDynamicHelp": false,
|
|
6232
|
+
"multiple": false,
|
|
6233
|
+
"type": "option"
|
|
6234
|
+
},
|
|
6235
|
+
"url": {
|
|
6236
|
+
"description": "Website URL to crawl",
|
|
6237
|
+
"exclusive": [
|
|
6238
|
+
"text",
|
|
6239
|
+
"file",
|
|
6240
|
+
"query"
|
|
6241
|
+
],
|
|
6242
|
+
"name": "url",
|
|
6243
|
+
"required": false,
|
|
6244
|
+
"hasDynamicHelp": false,
|
|
6245
|
+
"helpValue": "<url>",
|
|
6246
|
+
"multiple": false,
|
|
6247
|
+
"type": "option"
|
|
6165
6248
|
}
|
|
6166
6249
|
},
|
|
6167
6250
|
"hasDynamicHelp": false,
|
|
6168
|
-
"hiddenAliases": [
|
|
6169
|
-
|
|
6170
|
-
],
|
|
6171
|
-
"id": "datasets:alias:create",
|
|
6251
|
+
"hiddenAliases": [],
|
|
6252
|
+
"id": "context:imports:create",
|
|
6172
6253
|
"pluginAlias": "@sanity/cli",
|
|
6173
6254
|
"pluginName": "@sanity/cli",
|
|
6174
6255
|
"pluginType": "core",
|
|
6175
6256
|
"strict": true,
|
|
6257
|
+
"telemetry": {
|
|
6258
|
+
"redactedFlags": [
|
|
6259
|
+
{
|
|
6260
|
+
"canonical": "--text",
|
|
6261
|
+
"flags": [
|
|
6262
|
+
"--text"
|
|
6263
|
+
]
|
|
6264
|
+
},
|
|
6265
|
+
{
|
|
6266
|
+
"canonical": "--file",
|
|
6267
|
+
"flags": [
|
|
6268
|
+
"--file"
|
|
6269
|
+
]
|
|
6270
|
+
},
|
|
6271
|
+
{
|
|
6272
|
+
"canonical": "--url",
|
|
6273
|
+
"flags": [
|
|
6274
|
+
"--url"
|
|
6275
|
+
]
|
|
6276
|
+
},
|
|
6277
|
+
{
|
|
6278
|
+
"canonical": "--title",
|
|
6279
|
+
"flags": [
|
|
6280
|
+
"--title"
|
|
6281
|
+
]
|
|
6282
|
+
},
|
|
6283
|
+
{
|
|
6284
|
+
"canonical": "--query",
|
|
6285
|
+
"flags": [
|
|
6286
|
+
"--query"
|
|
6287
|
+
]
|
|
6288
|
+
}
|
|
6289
|
+
]
|
|
6290
|
+
},
|
|
6176
6291
|
"isESM": true,
|
|
6177
6292
|
"relativePath": [
|
|
6178
6293
|
"dist",
|
|
6179
6294
|
"commands",
|
|
6180
|
-
"
|
|
6181
|
-
"
|
|
6295
|
+
"context",
|
|
6296
|
+
"imports",
|
|
6182
6297
|
"create.js"
|
|
6183
6298
|
]
|
|
6184
6299
|
},
|
|
6185
|
-
"
|
|
6300
|
+
"context:imports:delete": {
|
|
6186
6301
|
"aliases": [],
|
|
6187
6302
|
"args": {
|
|
6188
|
-
"
|
|
6189
|
-
"description": "
|
|
6190
|
-
"name": "
|
|
6303
|
+
"knowledgeBaseId": {
|
|
6304
|
+
"description": "Knowledge base ID",
|
|
6305
|
+
"name": "knowledgeBaseId",
|
|
6306
|
+
"required": true
|
|
6307
|
+
},
|
|
6308
|
+
"importId": {
|
|
6309
|
+
"description": "Import ID",
|
|
6310
|
+
"name": "importId",
|
|
6191
6311
|
"required": true
|
|
6192
6312
|
}
|
|
6193
6313
|
},
|
|
6194
|
-
"description": "Delete
|
|
6314
|
+
"description": "Delete an import from a knowledge base",
|
|
6195
6315
|
"examples": [
|
|
6196
6316
|
{
|
|
6197
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6198
|
-
"description": "Delete
|
|
6317
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
6318
|
+
"description": "Delete an import after confirmation"
|
|
6199
6319
|
},
|
|
6200
6320
|
{
|
|
6201
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6202
|
-
"description": "Delete
|
|
6321
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --yes",
|
|
6322
|
+
"description": "Delete an import without confirmation prompt"
|
|
6203
6323
|
}
|
|
6204
6324
|
],
|
|
6205
6325
|
"flags": {
|
|
6206
|
-
"
|
|
6207
|
-
"char": "
|
|
6208
|
-
"description": "
|
|
6209
|
-
"
|
|
6210
|
-
"name": "project-id",
|
|
6211
|
-
"hasDynamicHelp": false,
|
|
6212
|
-
"helpValue": "<id>",
|
|
6213
|
-
"multiple": false,
|
|
6214
|
-
"type": "option"
|
|
6215
|
-
},
|
|
6216
|
-
"force": {
|
|
6217
|
-
"description": "Skip confirmation prompt and delete immediately",
|
|
6218
|
-
"name": "force",
|
|
6326
|
+
"yes": {
|
|
6327
|
+
"char": "y",
|
|
6328
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
6329
|
+
"name": "yes",
|
|
6219
6330
|
"allowNo": false,
|
|
6220
6331
|
"type": "boolean"
|
|
6221
6332
|
}
|
|
6222
6333
|
},
|
|
6223
6334
|
"hasDynamicHelp": false,
|
|
6224
|
-
"hiddenAliases": [
|
|
6225
|
-
|
|
6226
|
-
],
|
|
6227
|
-
"id": "datasets:alias:delete",
|
|
6335
|
+
"hiddenAliases": [],
|
|
6336
|
+
"id": "context:imports:delete",
|
|
6228
6337
|
"pluginAlias": "@sanity/cli",
|
|
6229
6338
|
"pluginName": "@sanity/cli",
|
|
6230
6339
|
"pluginType": "core",
|
|
@@ -6233,68 +6342,43 @@
|
|
|
6233
6342
|
"relativePath": [
|
|
6234
6343
|
"dist",
|
|
6235
6344
|
"commands",
|
|
6236
|
-
"
|
|
6237
|
-
"
|
|
6345
|
+
"context",
|
|
6346
|
+
"imports",
|
|
6238
6347
|
"delete.js"
|
|
6239
6348
|
]
|
|
6240
6349
|
},
|
|
6241
|
-
"
|
|
6350
|
+
"context:imports:download": {
|
|
6242
6351
|
"aliases": [],
|
|
6243
6352
|
"args": {
|
|
6244
|
-
"
|
|
6245
|
-
"description": "
|
|
6246
|
-
"name": "
|
|
6247
|
-
"required":
|
|
6353
|
+
"knowledgeBaseId": {
|
|
6354
|
+
"description": "Knowledge base ID",
|
|
6355
|
+
"name": "knowledgeBaseId",
|
|
6356
|
+
"required": true
|
|
6248
6357
|
},
|
|
6249
|
-
"
|
|
6250
|
-
"description": "
|
|
6251
|
-
"name": "
|
|
6252
|
-
"required":
|
|
6358
|
+
"importId": {
|
|
6359
|
+
"description": "Import ID",
|
|
6360
|
+
"name": "importId",
|
|
6361
|
+
"required": true
|
|
6253
6362
|
}
|
|
6254
6363
|
},
|
|
6255
|
-
"description": "
|
|
6364
|
+
"description": "Get a short-lived signed URL for the original uploaded bytes of a file import",
|
|
6256
6365
|
"examples": [
|
|
6257
6366
|
{
|
|
6258
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6259
|
-
"description": "
|
|
6260
|
-
},
|
|
6261
|
-
{
|
|
6262
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6263
|
-
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
6264
|
-
},
|
|
6265
|
-
{
|
|
6266
|
-
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
6267
|
-
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
6268
|
-
},
|
|
6269
|
-
{
|
|
6270
|
-
"command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
|
|
6271
|
-
"description": "Force link without confirmation (skip relink prompt)"
|
|
6367
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
6368
|
+
"description": "Get a download URL for an uploaded file"
|
|
6272
6369
|
}
|
|
6273
6370
|
],
|
|
6274
|
-
"flags": {
|
|
6275
|
-
"
|
|
6276
|
-
"
|
|
6277
|
-
"
|
|
6278
|
-
"helpGroup": "OVERRIDE",
|
|
6279
|
-
"name": "project-id",
|
|
6280
|
-
"hasDynamicHelp": false,
|
|
6281
|
-
"helpValue": "<id>",
|
|
6282
|
-
"multiple": false,
|
|
6283
|
-
"type": "option"
|
|
6284
|
-
},
|
|
6285
|
-
"force": {
|
|
6286
|
-
"description": "Skip confirmation prompt when relinking existing alias",
|
|
6287
|
-
"name": "force",
|
|
6288
|
-
"required": false,
|
|
6371
|
+
"flags": {
|
|
6372
|
+
"json": {
|
|
6373
|
+
"description": "Output the download URL in JSON format",
|
|
6374
|
+
"name": "json",
|
|
6289
6375
|
"allowNo": false,
|
|
6290
6376
|
"type": "boolean"
|
|
6291
6377
|
}
|
|
6292
6378
|
},
|
|
6293
6379
|
"hasDynamicHelp": false,
|
|
6294
|
-
"hiddenAliases": [
|
|
6295
|
-
|
|
6296
|
-
],
|
|
6297
|
-
"id": "datasets:alias:link",
|
|
6380
|
+
"hiddenAliases": [],
|
|
6381
|
+
"id": "context:imports:download",
|
|
6298
6382
|
"pluginAlias": "@sanity/cli",
|
|
6299
6383
|
"pluginName": "@sanity/cli",
|
|
6300
6384
|
"pluginType": "core",
|
|
@@ -6303,58 +6387,47 @@
|
|
|
6303
6387
|
"relativePath": [
|
|
6304
6388
|
"dist",
|
|
6305
6389
|
"commands",
|
|
6306
|
-
"
|
|
6307
|
-
"
|
|
6308
|
-
"
|
|
6390
|
+
"context",
|
|
6391
|
+
"imports",
|
|
6392
|
+
"download.js"
|
|
6309
6393
|
]
|
|
6310
6394
|
},
|
|
6311
|
-
"
|
|
6395
|
+
"context:imports:get": {
|
|
6312
6396
|
"aliases": [],
|
|
6313
6397
|
"args": {
|
|
6314
|
-
"
|
|
6315
|
-
"description": "
|
|
6316
|
-
"name": "
|
|
6317
|
-
"required":
|
|
6398
|
+
"knowledgeBaseId": {
|
|
6399
|
+
"description": "Knowledge base ID",
|
|
6400
|
+
"name": "knowledgeBaseId",
|
|
6401
|
+
"required": true
|
|
6402
|
+
},
|
|
6403
|
+
"importId": {
|
|
6404
|
+
"description": "Import ID",
|
|
6405
|
+
"name": "importId",
|
|
6406
|
+
"required": true
|
|
6318
6407
|
}
|
|
6319
6408
|
},
|
|
6320
|
-
"description": "
|
|
6409
|
+
"description": "Get details of an import",
|
|
6321
6410
|
"examples": [
|
|
6322
6411
|
{
|
|
6323
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6324
|
-
"description": "
|
|
6325
|
-
},
|
|
6326
|
-
{
|
|
6327
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6328
|
-
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
6412
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456",
|
|
6413
|
+
"description": "Get details of a specific import"
|
|
6329
6414
|
},
|
|
6330
6415
|
{
|
|
6331
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6332
|
-
"description": "
|
|
6416
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --json",
|
|
6417
|
+
"description": "Output the import as JSON"
|
|
6333
6418
|
}
|
|
6334
6419
|
],
|
|
6335
6420
|
"flags": {
|
|
6336
|
-
"
|
|
6337
|
-
"
|
|
6338
|
-
"
|
|
6339
|
-
"helpGroup": "OVERRIDE",
|
|
6340
|
-
"name": "project-id",
|
|
6341
|
-
"hasDynamicHelp": false,
|
|
6342
|
-
"helpValue": "<id>",
|
|
6343
|
-
"multiple": false,
|
|
6344
|
-
"type": "option"
|
|
6345
|
-
},
|
|
6346
|
-
"force": {
|
|
6347
|
-
"description": "Skip confirmation prompt and unlink immediately",
|
|
6348
|
-
"name": "force",
|
|
6421
|
+
"json": {
|
|
6422
|
+
"description": "Output the import in JSON format",
|
|
6423
|
+
"name": "json",
|
|
6349
6424
|
"allowNo": false,
|
|
6350
6425
|
"type": "boolean"
|
|
6351
6426
|
}
|
|
6352
6427
|
},
|
|
6353
6428
|
"hasDynamicHelp": false,
|
|
6354
|
-
"hiddenAliases": [
|
|
6355
|
-
|
|
6356
|
-
],
|
|
6357
|
-
"id": "datasets:alias:unlink",
|
|
6429
|
+
"hiddenAliases": [],
|
|
6430
|
+
"id": "context:imports:get",
|
|
6358
6431
|
"pluginAlias": "@sanity/cli",
|
|
6359
6432
|
"pluginName": "@sanity/cli",
|
|
6360
6433
|
"pluginType": "core",
|
|
@@ -6363,44 +6436,42 @@
|
|
|
6363
6436
|
"relativePath": [
|
|
6364
6437
|
"dist",
|
|
6365
6438
|
"commands",
|
|
6366
|
-
"
|
|
6367
|
-
"
|
|
6368
|
-
"
|
|
6439
|
+
"context",
|
|
6440
|
+
"imports",
|
|
6441
|
+
"get.js"
|
|
6369
6442
|
]
|
|
6370
6443
|
},
|
|
6371
|
-
"
|
|
6444
|
+
"context:imports:list": {
|
|
6372
6445
|
"aliases": [],
|
|
6373
6446
|
"args": {
|
|
6374
|
-
"
|
|
6375
|
-
"description": "
|
|
6376
|
-
"name": "
|
|
6377
|
-
"required":
|
|
6447
|
+
"knowledgeBaseId": {
|
|
6448
|
+
"description": "Knowledge base ID",
|
|
6449
|
+
"name": "knowledgeBaseId",
|
|
6450
|
+
"required": true
|
|
6378
6451
|
}
|
|
6379
6452
|
},
|
|
6380
|
-
"description": "
|
|
6453
|
+
"description": "List imports for a knowledge base",
|
|
6381
6454
|
"examples": [
|
|
6382
6455
|
{
|
|
6383
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6384
|
-
"description": "
|
|
6456
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
6457
|
+
"description": "List all imports for a knowledge base"
|
|
6458
|
+
},
|
|
6459
|
+
{
|
|
6460
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
6461
|
+
"description": "Output imports as JSON"
|
|
6385
6462
|
}
|
|
6386
6463
|
],
|
|
6387
6464
|
"flags": {
|
|
6388
|
-
"
|
|
6389
|
-
"
|
|
6390
|
-
"
|
|
6391
|
-
"
|
|
6392
|
-
"
|
|
6393
|
-
"hasDynamicHelp": false,
|
|
6394
|
-
"helpValue": "<id>",
|
|
6395
|
-
"multiple": false,
|
|
6396
|
-
"type": "option"
|
|
6465
|
+
"json": {
|
|
6466
|
+
"description": "Output imports in JSON format",
|
|
6467
|
+
"name": "json",
|
|
6468
|
+
"allowNo": false,
|
|
6469
|
+
"type": "boolean"
|
|
6397
6470
|
}
|
|
6398
6471
|
},
|
|
6399
6472
|
"hasDynamicHelp": false,
|
|
6400
|
-
"hiddenAliases": [
|
|
6401
|
-
|
|
6402
|
-
],
|
|
6403
|
-
"id": "datasets:embeddings:disable",
|
|
6473
|
+
"hiddenAliases": [],
|
|
6474
|
+
"id": "context:imports:list",
|
|
6404
6475
|
"pluginAlias": "@sanity/cli",
|
|
6405
6476
|
"pluginName": "@sanity/cli",
|
|
6406
6477
|
"pluginType": "core",
|
|
@@ -6409,66 +6480,53 @@
|
|
|
6409
6480
|
"relativePath": [
|
|
6410
6481
|
"dist",
|
|
6411
6482
|
"commands",
|
|
6412
|
-
"
|
|
6413
|
-
"
|
|
6414
|
-
"
|
|
6483
|
+
"context",
|
|
6484
|
+
"imports",
|
|
6485
|
+
"list.js"
|
|
6415
6486
|
]
|
|
6416
6487
|
},
|
|
6417
|
-
"
|
|
6488
|
+
"context:jobs:get": {
|
|
6418
6489
|
"aliases": [],
|
|
6419
6490
|
"args": {
|
|
6420
|
-
"
|
|
6421
|
-
"description": "
|
|
6422
|
-
"name": "
|
|
6423
|
-
"required":
|
|
6491
|
+
"knowledgeBaseId": {
|
|
6492
|
+
"description": "Knowledge base ID",
|
|
6493
|
+
"name": "knowledgeBaseId",
|
|
6494
|
+
"required": true
|
|
6495
|
+
},
|
|
6496
|
+
"jobId": {
|
|
6497
|
+
"description": "Job ID",
|
|
6498
|
+
"name": "jobId",
|
|
6499
|
+
"required": true
|
|
6424
6500
|
}
|
|
6425
6501
|
},
|
|
6426
|
-
"description": "
|
|
6502
|
+
"description": "Get the status of a knowledge base job",
|
|
6427
6503
|
"examples": [
|
|
6428
6504
|
{
|
|
6429
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6430
|
-
"description": "
|
|
6431
|
-
},
|
|
6432
|
-
{
|
|
6433
|
-
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
6434
|
-
"description": "Enable embeddings with a specific projection"
|
|
6505
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
|
|
6506
|
+
"description": "Get the current status of a job"
|
|
6435
6507
|
},
|
|
6436
6508
|
{
|
|
6437
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6438
|
-
"description": "
|
|
6509
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
|
|
6510
|
+
"description": "Wait for the job to finish (non-zero exit if it does not succeed)"
|
|
6439
6511
|
}
|
|
6440
6512
|
],
|
|
6441
6513
|
"flags": {
|
|
6442
|
-
"
|
|
6443
|
-
"
|
|
6444
|
-
"
|
|
6445
|
-
"
|
|
6446
|
-
"
|
|
6447
|
-
"hasDynamicHelp": false,
|
|
6448
|
-
"helpValue": "<id>",
|
|
6449
|
-
"multiple": false,
|
|
6450
|
-
"type": "option"
|
|
6451
|
-
},
|
|
6452
|
-
"projection": {
|
|
6453
|
-
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
6454
|
-
"name": "projection",
|
|
6455
|
-
"required": false,
|
|
6456
|
-
"hasDynamicHelp": false,
|
|
6457
|
-
"multiple": false,
|
|
6458
|
-
"type": "option"
|
|
6514
|
+
"json": {
|
|
6515
|
+
"description": "Output the job in JSON format",
|
|
6516
|
+
"name": "json",
|
|
6517
|
+
"allowNo": false,
|
|
6518
|
+
"type": "boolean"
|
|
6459
6519
|
},
|
|
6460
|
-
"
|
|
6461
|
-
"description": "
|
|
6462
|
-
"name": "
|
|
6520
|
+
"watch": {
|
|
6521
|
+
"description": "Poll until the job reaches a terminal state",
|
|
6522
|
+
"name": "watch",
|
|
6463
6523
|
"allowNo": false,
|
|
6464
6524
|
"type": "boolean"
|
|
6465
6525
|
}
|
|
6466
6526
|
},
|
|
6467
6527
|
"hasDynamicHelp": false,
|
|
6468
|
-
"hiddenAliases": [
|
|
6469
|
-
|
|
6470
|
-
],
|
|
6471
|
-
"id": "datasets:embeddings:enable",
|
|
6528
|
+
"hiddenAliases": [],
|
|
6529
|
+
"id": "context:jobs:get",
|
|
6472
6530
|
"pluginAlias": "@sanity/cli",
|
|
6473
6531
|
"pluginName": "@sanity/cli",
|
|
6474
6532
|
"pluginType": "core",
|
|
@@ -6477,31 +6535,48 @@
|
|
|
6477
6535
|
"relativePath": [
|
|
6478
6536
|
"dist",
|
|
6479
6537
|
"commands",
|
|
6480
|
-
"
|
|
6481
|
-
"
|
|
6482
|
-
"
|
|
6538
|
+
"context",
|
|
6539
|
+
"jobs",
|
|
6540
|
+
"get.js"
|
|
6483
6541
|
]
|
|
6484
6542
|
},
|
|
6485
|
-
"datasets:
|
|
6543
|
+
"datasets:alias:create": {
|
|
6486
6544
|
"aliases": [],
|
|
6487
6545
|
"args": {
|
|
6488
|
-
"
|
|
6489
|
-
"description": "
|
|
6490
|
-
"name": "
|
|
6546
|
+
"aliasName": {
|
|
6547
|
+
"description": "Dataset alias name to create",
|
|
6548
|
+
"name": "aliasName",
|
|
6549
|
+
"required": false
|
|
6550
|
+
},
|
|
6551
|
+
"targetDataset": {
|
|
6552
|
+
"description": "Target dataset name to link the alias to",
|
|
6553
|
+
"name": "targetDataset",
|
|
6491
6554
|
"required": false
|
|
6492
6555
|
}
|
|
6493
6556
|
},
|
|
6494
|
-
"description": "
|
|
6557
|
+
"description": "Create a dataset alias for the project",
|
|
6495
6558
|
"examples": [
|
|
6496
6559
|
{
|
|
6497
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6498
|
-
"description": "
|
|
6560
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
6561
|
+
"description": "Create alias in a specific project"
|
|
6562
|
+
},
|
|
6563
|
+
{
|
|
6564
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6565
|
+
"description": "Create an alias with interactive prompts"
|
|
6566
|
+
},
|
|
6567
|
+
{
|
|
6568
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6569
|
+
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
6570
|
+
},
|
|
6571
|
+
{
|
|
6572
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
6573
|
+
"description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
|
|
6499
6574
|
}
|
|
6500
6575
|
],
|
|
6501
6576
|
"flags": {
|
|
6502
6577
|
"project-id": {
|
|
6503
6578
|
"char": "p",
|
|
6504
|
-
"description": "Project ID to
|
|
6579
|
+
"description": "Project ID to create dataset alias in (overrides CLI configuration)",
|
|
6505
6580
|
"helpGroup": "OVERRIDE",
|
|
6506
6581
|
"name": "project-id",
|
|
6507
6582
|
"hasDynamicHelp": false,
|
|
@@ -6512,9 +6587,9 @@
|
|
|
6512
6587
|
},
|
|
6513
6588
|
"hasDynamicHelp": false,
|
|
6514
6589
|
"hiddenAliases": [
|
|
6515
|
-
"dataset:
|
|
6590
|
+
"dataset:alias:create"
|
|
6516
6591
|
],
|
|
6517
|
-
"id": "datasets:
|
|
6592
|
+
"id": "datasets:alias:create",
|
|
6518
6593
|
"pluginAlias": "@sanity/cli",
|
|
6519
6594
|
"pluginName": "@sanity/cli",
|
|
6520
6595
|
"pluginType": "core",
|
|
@@ -6524,43 +6599,53 @@
|
|
|
6524
6599
|
"dist",
|
|
6525
6600
|
"commands",
|
|
6526
6601
|
"datasets",
|
|
6527
|
-
"
|
|
6528
|
-
"
|
|
6602
|
+
"alias",
|
|
6603
|
+
"create.js"
|
|
6529
6604
|
]
|
|
6530
6605
|
},
|
|
6531
|
-
"datasets:
|
|
6606
|
+
"datasets:alias:delete": {
|
|
6532
6607
|
"aliases": [],
|
|
6533
6608
|
"args": {
|
|
6534
|
-
"
|
|
6535
|
-
"description": "
|
|
6536
|
-
"name": "
|
|
6609
|
+
"aliasName": {
|
|
6610
|
+
"description": "Dataset alias name to delete",
|
|
6611
|
+
"name": "aliasName",
|
|
6537
6612
|
"required": true
|
|
6538
6613
|
}
|
|
6539
6614
|
},
|
|
6540
|
-
"description": "
|
|
6615
|
+
"description": "Delete a dataset alias from the project",
|
|
6541
6616
|
"examples": [
|
|
6542
6617
|
{
|
|
6543
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6544
|
-
"description": "
|
|
6618
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6619
|
+
"description": "Delete alias named \"conference\" with confirmation prompt"
|
|
6620
|
+
},
|
|
6621
|
+
{
|
|
6622
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
6623
|
+
"description": "Delete alias named \"conference\" without confirmation prompt"
|
|
6545
6624
|
}
|
|
6546
6625
|
],
|
|
6547
6626
|
"flags": {
|
|
6548
6627
|
"project-id": {
|
|
6549
6628
|
"char": "p",
|
|
6550
|
-
"description": "Project ID to
|
|
6629
|
+
"description": "Project ID to delete dataset alias from (overrides CLI configuration)",
|
|
6551
6630
|
"helpGroup": "OVERRIDE",
|
|
6552
6631
|
"name": "project-id",
|
|
6553
6632
|
"hasDynamicHelp": false,
|
|
6554
6633
|
"helpValue": "<id>",
|
|
6555
6634
|
"multiple": false,
|
|
6556
6635
|
"type": "option"
|
|
6636
|
+
},
|
|
6637
|
+
"force": {
|
|
6638
|
+
"description": "Skip confirmation prompt and delete immediately",
|
|
6639
|
+
"name": "force",
|
|
6640
|
+
"allowNo": false,
|
|
6641
|
+
"type": "boolean"
|
|
6557
6642
|
}
|
|
6558
6643
|
},
|
|
6559
6644
|
"hasDynamicHelp": false,
|
|
6560
6645
|
"hiddenAliases": [
|
|
6561
|
-
"dataset:
|
|
6646
|
+
"dataset:alias:delete"
|
|
6562
6647
|
],
|
|
6563
|
-
"id": "datasets:
|
|
6648
|
+
"id": "datasets:alias:delete",
|
|
6564
6649
|
"pluginAlias": "@sanity/cli",
|
|
6565
6650
|
"pluginName": "@sanity/cli",
|
|
6566
6651
|
"pluginType": "core",
|
|
@@ -6570,56 +6655,67 @@
|
|
|
6570
6655
|
"dist",
|
|
6571
6656
|
"commands",
|
|
6572
6657
|
"datasets",
|
|
6573
|
-
"
|
|
6574
|
-
"
|
|
6658
|
+
"alias",
|
|
6659
|
+
"delete.js"
|
|
6575
6660
|
]
|
|
6576
6661
|
},
|
|
6577
|
-
"datasets:
|
|
6662
|
+
"datasets:alias:link": {
|
|
6578
6663
|
"aliases": [],
|
|
6579
6664
|
"args": {
|
|
6580
|
-
"
|
|
6581
|
-
"description": "
|
|
6582
|
-
"name": "
|
|
6583
|
-
"required":
|
|
6665
|
+
"aliasName": {
|
|
6666
|
+
"description": "Dataset alias name to link",
|
|
6667
|
+
"name": "aliasName",
|
|
6668
|
+
"required": false
|
|
6584
6669
|
},
|
|
6585
|
-
"
|
|
6586
|
-
"description": "
|
|
6587
|
-
"name": "
|
|
6588
|
-
"
|
|
6589
|
-
"public",
|
|
6590
|
-
"private"
|
|
6591
|
-
],
|
|
6592
|
-
"required": true
|
|
6670
|
+
"targetDataset": {
|
|
6671
|
+
"description": "Target dataset name to link the alias to",
|
|
6672
|
+
"name": "targetDataset",
|
|
6673
|
+
"required": false
|
|
6593
6674
|
}
|
|
6594
6675
|
},
|
|
6595
|
-
"description": "
|
|
6676
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
6596
6677
|
"examples": [
|
|
6597
6678
|
{
|
|
6598
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6599
|
-
"description": "
|
|
6679
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6680
|
+
"description": "Link an alias with interactive prompts"
|
|
6600
6681
|
},
|
|
6601
6682
|
{
|
|
6602
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6603
|
-
"description": "
|
|
6683
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6684
|
+
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
6685
|
+
},
|
|
6686
|
+
{
|
|
6687
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
6688
|
+
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
6689
|
+
},
|
|
6690
|
+
{
|
|
6691
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
|
|
6692
|
+
"description": "Force link without confirmation (skip relink prompt)"
|
|
6604
6693
|
}
|
|
6605
6694
|
],
|
|
6606
6695
|
"flags": {
|
|
6607
6696
|
"project-id": {
|
|
6608
6697
|
"char": "p",
|
|
6609
|
-
"description": "Project ID to
|
|
6698
|
+
"description": "Project ID to link dataset alias in (overrides CLI configuration)",
|
|
6610
6699
|
"helpGroup": "OVERRIDE",
|
|
6611
6700
|
"name": "project-id",
|
|
6612
6701
|
"hasDynamicHelp": false,
|
|
6613
6702
|
"helpValue": "<id>",
|
|
6614
6703
|
"multiple": false,
|
|
6615
6704
|
"type": "option"
|
|
6705
|
+
},
|
|
6706
|
+
"force": {
|
|
6707
|
+
"description": "Skip confirmation prompt when relinking existing alias",
|
|
6708
|
+
"name": "force",
|
|
6709
|
+
"required": false,
|
|
6710
|
+
"allowNo": false,
|
|
6711
|
+
"type": "boolean"
|
|
6616
6712
|
}
|
|
6617
6713
|
},
|
|
6618
6714
|
"hasDynamicHelp": false,
|
|
6619
6715
|
"hiddenAliases": [
|
|
6620
|
-
"dataset:
|
|
6716
|
+
"dataset:alias:link"
|
|
6621
6717
|
],
|
|
6622
|
-
"id": "datasets:
|
|
6718
|
+
"id": "datasets:alias:link",
|
|
6623
6719
|
"pluginAlias": "@sanity/cli",
|
|
6624
6720
|
"pluginName": "@sanity/cli",
|
|
6625
6721
|
"pluginType": "core",
|
|
@@ -6629,225 +6725,103 @@
|
|
|
6629
6725
|
"dist",
|
|
6630
6726
|
"commands",
|
|
6631
6727
|
"datasets",
|
|
6632
|
-
"
|
|
6633
|
-
"
|
|
6728
|
+
"alias",
|
|
6729
|
+
"link.js"
|
|
6634
6730
|
]
|
|
6635
6731
|
},
|
|
6636
|
-
"
|
|
6732
|
+
"datasets:alias:unlink": {
|
|
6637
6733
|
"aliases": [],
|
|
6638
6734
|
"args": {
|
|
6639
|
-
"
|
|
6640
|
-
"description": "
|
|
6641
|
-
"name": "
|
|
6642
|
-
"required":
|
|
6735
|
+
"aliasName": {
|
|
6736
|
+
"description": "Dataset alias name to unlink",
|
|
6737
|
+
"name": "aliasName",
|
|
6738
|
+
"required": false
|
|
6643
6739
|
}
|
|
6644
6740
|
},
|
|
6645
|
-
"description": "
|
|
6741
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
6646
6742
|
"examples": [
|
|
6647
6743
|
{
|
|
6648
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6649
|
-
"description": "
|
|
6650
|
-
},
|
|
6651
|
-
{
|
|
6652
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --file ./handbook.pdf",
|
|
6653
|
-
"description": "Upload and import a local file"
|
|
6744
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6745
|
+
"description": "Unlink an alias with interactive selection"
|
|
6654
6746
|
},
|
|
6655
6747
|
{
|
|
6656
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6657
|
-
"description": "
|
|
6748
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
6749
|
+
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
6658
6750
|
},
|
|
6659
6751
|
{
|
|
6660
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6661
|
-
"description": "
|
|
6752
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
6753
|
+
"description": "Unlink alias \"conference\" without confirmation prompt"
|
|
6662
6754
|
}
|
|
6663
6755
|
],
|
|
6664
6756
|
"flags": {
|
|
6665
|
-
"
|
|
6666
|
-
"
|
|
6667
|
-
"
|
|
6668
|
-
"
|
|
6669
|
-
"
|
|
6670
|
-
"helpValue": "<mime>",
|
|
6671
|
-
"multiple": false,
|
|
6672
|
-
"type": "option"
|
|
6673
|
-
},
|
|
6674
|
-
"file": {
|
|
6675
|
-
"description": "Path to a local file to import",
|
|
6676
|
-
"exclusive": [
|
|
6677
|
-
"text",
|
|
6678
|
-
"url",
|
|
6679
|
-
"query"
|
|
6680
|
-
],
|
|
6681
|
-
"name": "file",
|
|
6682
|
-
"required": false,
|
|
6683
|
-
"hasDynamicHelp": false,
|
|
6684
|
-
"helpValue": "<path>",
|
|
6685
|
-
"multiple": false,
|
|
6686
|
-
"type": "option"
|
|
6687
|
-
},
|
|
6688
|
-
"query": {
|
|
6689
|
-
"description": "GROQ query binding a Sanity dataset as a source",
|
|
6690
|
-
"exclusive": [
|
|
6691
|
-
"text",
|
|
6692
|
-
"url",
|
|
6693
|
-
"file"
|
|
6694
|
-
],
|
|
6695
|
-
"name": "query",
|
|
6696
|
-
"required": false,
|
|
6697
|
-
"hasDynamicHelp": false,
|
|
6698
|
-
"multiple": false,
|
|
6699
|
-
"type": "option"
|
|
6700
|
-
},
|
|
6701
|
-
"sanity-dataset": {
|
|
6702
|
-
"dependsOn": [
|
|
6703
|
-
"query"
|
|
6704
|
-
],
|
|
6705
|
-
"description": "Sanity dataset for a dataset import",
|
|
6706
|
-
"name": "sanity-dataset",
|
|
6707
|
-
"required": false,
|
|
6708
|
-
"hasDynamicHelp": false,
|
|
6709
|
-
"helpValue": "<name>",
|
|
6710
|
-
"multiple": false,
|
|
6711
|
-
"type": "option"
|
|
6712
|
-
},
|
|
6713
|
-
"sanity-project": {
|
|
6714
|
-
"dependsOn": [
|
|
6715
|
-
"query"
|
|
6716
|
-
],
|
|
6717
|
-
"description": "Sanity project ID for a dataset import",
|
|
6718
|
-
"name": "sanity-project",
|
|
6719
|
-
"required": false,
|
|
6757
|
+
"project-id": {
|
|
6758
|
+
"char": "p",
|
|
6759
|
+
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
6760
|
+
"helpGroup": "OVERRIDE",
|
|
6761
|
+
"name": "project-id",
|
|
6720
6762
|
"hasDynamicHelp": false,
|
|
6721
6763
|
"helpValue": "<id>",
|
|
6722
6764
|
"multiple": false,
|
|
6723
6765
|
"type": "option"
|
|
6724
6766
|
},
|
|
6725
|
-
"
|
|
6726
|
-
"description": "
|
|
6727
|
-
"
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
"query"
|
|
6731
|
-
],
|
|
6732
|
-
"name": "text",
|
|
6733
|
-
"required": false,
|
|
6734
|
-
"hasDynamicHelp": false,
|
|
6735
|
-
"multiple": false,
|
|
6736
|
-
"type": "option"
|
|
6737
|
-
},
|
|
6738
|
-
"title": {
|
|
6739
|
-
"dependsOn": [
|
|
6740
|
-
"text"
|
|
6741
|
-
],
|
|
6742
|
-
"description": "Title for an inline text import",
|
|
6743
|
-
"name": "title",
|
|
6744
|
-
"required": false,
|
|
6745
|
-
"hasDynamicHelp": false,
|
|
6746
|
-
"multiple": false,
|
|
6747
|
-
"type": "option"
|
|
6748
|
-
},
|
|
6749
|
-
"url": {
|
|
6750
|
-
"description": "Website URL to crawl",
|
|
6751
|
-
"exclusive": [
|
|
6752
|
-
"text",
|
|
6753
|
-
"file",
|
|
6754
|
-
"query"
|
|
6755
|
-
],
|
|
6756
|
-
"name": "url",
|
|
6757
|
-
"required": false,
|
|
6758
|
-
"hasDynamicHelp": false,
|
|
6759
|
-
"helpValue": "<url>",
|
|
6760
|
-
"multiple": false,
|
|
6761
|
-
"type": "option"
|
|
6767
|
+
"force": {
|
|
6768
|
+
"description": "Skip confirmation prompt and unlink immediately",
|
|
6769
|
+
"name": "force",
|
|
6770
|
+
"allowNo": false,
|
|
6771
|
+
"type": "boolean"
|
|
6762
6772
|
}
|
|
6763
6773
|
},
|
|
6764
6774
|
"hasDynamicHelp": false,
|
|
6765
|
-
"hiddenAliases": [
|
|
6766
|
-
|
|
6775
|
+
"hiddenAliases": [
|
|
6776
|
+
"dataset:alias:unlink"
|
|
6777
|
+
],
|
|
6778
|
+
"id": "datasets:alias:unlink",
|
|
6767
6779
|
"pluginAlias": "@sanity/cli",
|
|
6768
6780
|
"pluginName": "@sanity/cli",
|
|
6769
6781
|
"pluginType": "core",
|
|
6770
6782
|
"strict": true,
|
|
6771
|
-
"telemetry": {
|
|
6772
|
-
"redactedFlags": [
|
|
6773
|
-
{
|
|
6774
|
-
"canonical": "--text",
|
|
6775
|
-
"flags": [
|
|
6776
|
-
"--text"
|
|
6777
|
-
]
|
|
6778
|
-
},
|
|
6779
|
-
{
|
|
6780
|
-
"canonical": "--file",
|
|
6781
|
-
"flags": [
|
|
6782
|
-
"--file"
|
|
6783
|
-
]
|
|
6784
|
-
},
|
|
6785
|
-
{
|
|
6786
|
-
"canonical": "--url",
|
|
6787
|
-
"flags": [
|
|
6788
|
-
"--url"
|
|
6789
|
-
]
|
|
6790
|
-
},
|
|
6791
|
-
{
|
|
6792
|
-
"canonical": "--title",
|
|
6793
|
-
"flags": [
|
|
6794
|
-
"--title"
|
|
6795
|
-
]
|
|
6796
|
-
},
|
|
6797
|
-
{
|
|
6798
|
-
"canonical": "--query",
|
|
6799
|
-
"flags": [
|
|
6800
|
-
"--query"
|
|
6801
|
-
]
|
|
6802
|
-
}
|
|
6803
|
-
]
|
|
6804
|
-
},
|
|
6805
6783
|
"isESM": true,
|
|
6806
6784
|
"relativePath": [
|
|
6807
6785
|
"dist",
|
|
6808
6786
|
"commands",
|
|
6809
|
-
"
|
|
6810
|
-
"
|
|
6811
|
-
"
|
|
6787
|
+
"datasets",
|
|
6788
|
+
"alias",
|
|
6789
|
+
"unlink.js"
|
|
6812
6790
|
]
|
|
6813
6791
|
},
|
|
6814
|
-
"
|
|
6792
|
+
"datasets:embeddings:disable": {
|
|
6815
6793
|
"aliases": [],
|
|
6816
6794
|
"args": {
|
|
6817
|
-
"
|
|
6818
|
-
"description": "
|
|
6819
|
-
"name": "
|
|
6820
|
-
"required":
|
|
6821
|
-
},
|
|
6822
|
-
"importId": {
|
|
6823
|
-
"description": "Import ID",
|
|
6824
|
-
"name": "importId",
|
|
6825
|
-
"required": true
|
|
6795
|
+
"dataset": {
|
|
6796
|
+
"description": "Dataset name to disable embeddings for",
|
|
6797
|
+
"name": "dataset",
|
|
6798
|
+
"required": false
|
|
6826
6799
|
}
|
|
6827
6800
|
},
|
|
6828
|
-
"description": "
|
|
6801
|
+
"description": "Disable embeddings for a dataset",
|
|
6829
6802
|
"examples": [
|
|
6830
6803
|
{
|
|
6831
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6832
|
-
"description": "
|
|
6833
|
-
},
|
|
6834
|
-
{
|
|
6835
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --yes",
|
|
6836
|
-
"description": "Delete an import without confirmation prompt"
|
|
6804
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6805
|
+
"description": "Disable embeddings for the production dataset"
|
|
6837
6806
|
}
|
|
6838
6807
|
],
|
|
6839
6808
|
"flags": {
|
|
6840
|
-
"
|
|
6841
|
-
"char": "
|
|
6842
|
-
"description": "
|
|
6843
|
-
"
|
|
6844
|
-
"
|
|
6845
|
-
"
|
|
6809
|
+
"project-id": {
|
|
6810
|
+
"char": "p",
|
|
6811
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
6812
|
+
"helpGroup": "OVERRIDE",
|
|
6813
|
+
"name": "project-id",
|
|
6814
|
+
"hasDynamicHelp": false,
|
|
6815
|
+
"helpValue": "<id>",
|
|
6816
|
+
"multiple": false,
|
|
6817
|
+
"type": "option"
|
|
6846
6818
|
}
|
|
6847
6819
|
},
|
|
6848
6820
|
"hasDynamicHelp": false,
|
|
6849
|
-
"hiddenAliases": [
|
|
6850
|
-
|
|
6821
|
+
"hiddenAliases": [
|
|
6822
|
+
"dataset:embeddings:disable"
|
|
6823
|
+
],
|
|
6824
|
+
"id": "datasets:embeddings:disable",
|
|
6851
6825
|
"pluginAlias": "@sanity/cli",
|
|
6852
6826
|
"pluginName": "@sanity/cli",
|
|
6853
6827
|
"pluginType": "core",
|
|
@@ -6856,43 +6830,66 @@
|
|
|
6856
6830
|
"relativePath": [
|
|
6857
6831
|
"dist",
|
|
6858
6832
|
"commands",
|
|
6859
|
-
"
|
|
6860
|
-
"
|
|
6861
|
-
"
|
|
6833
|
+
"datasets",
|
|
6834
|
+
"embeddings",
|
|
6835
|
+
"disable.js"
|
|
6862
6836
|
]
|
|
6863
6837
|
},
|
|
6864
|
-
"
|
|
6838
|
+
"datasets:embeddings:enable": {
|
|
6865
6839
|
"aliases": [],
|
|
6866
6840
|
"args": {
|
|
6867
|
-
"
|
|
6868
|
-
"description": "
|
|
6869
|
-
"name": "
|
|
6870
|
-
"required":
|
|
6871
|
-
},
|
|
6872
|
-
"importId": {
|
|
6873
|
-
"description": "Import ID",
|
|
6874
|
-
"name": "importId",
|
|
6875
|
-
"required": true
|
|
6841
|
+
"dataset": {
|
|
6842
|
+
"description": "Dataset name to enable embeddings for",
|
|
6843
|
+
"name": "dataset",
|
|
6844
|
+
"required": false
|
|
6876
6845
|
}
|
|
6877
6846
|
},
|
|
6878
|
-
"description": "
|
|
6847
|
+
"description": "Enable embeddings for a dataset",
|
|
6879
6848
|
"examples": [
|
|
6880
6849
|
{
|
|
6881
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6882
|
-
"description": "
|
|
6850
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6851
|
+
"description": "Enable embeddings for the production dataset"
|
|
6852
|
+
},
|
|
6853
|
+
{
|
|
6854
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
6855
|
+
"description": "Enable embeddings with a specific projection"
|
|
6856
|
+
},
|
|
6857
|
+
{
|
|
6858
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
6859
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
6883
6860
|
}
|
|
6884
6861
|
],
|
|
6885
6862
|
"flags": {
|
|
6886
|
-
"
|
|
6887
|
-
"
|
|
6888
|
-
"
|
|
6863
|
+
"project-id": {
|
|
6864
|
+
"char": "p",
|
|
6865
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
6866
|
+
"helpGroup": "OVERRIDE",
|
|
6867
|
+
"name": "project-id",
|
|
6868
|
+
"hasDynamicHelp": false,
|
|
6869
|
+
"helpValue": "<id>",
|
|
6870
|
+
"multiple": false,
|
|
6871
|
+
"type": "option"
|
|
6872
|
+
},
|
|
6873
|
+
"projection": {
|
|
6874
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
6875
|
+
"name": "projection",
|
|
6876
|
+
"required": false,
|
|
6877
|
+
"hasDynamicHelp": false,
|
|
6878
|
+
"multiple": false,
|
|
6879
|
+
"type": "option"
|
|
6880
|
+
},
|
|
6881
|
+
"wait": {
|
|
6882
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
6883
|
+
"name": "wait",
|
|
6889
6884
|
"allowNo": false,
|
|
6890
6885
|
"type": "boolean"
|
|
6891
6886
|
}
|
|
6892
6887
|
},
|
|
6893
6888
|
"hasDynamicHelp": false,
|
|
6894
|
-
"hiddenAliases": [
|
|
6895
|
-
|
|
6889
|
+
"hiddenAliases": [
|
|
6890
|
+
"dataset:embeddings:enable"
|
|
6891
|
+
],
|
|
6892
|
+
"id": "datasets:embeddings:enable",
|
|
6896
6893
|
"pluginAlias": "@sanity/cli",
|
|
6897
6894
|
"pluginName": "@sanity/cli",
|
|
6898
6895
|
"pluginType": "core",
|
|
@@ -6901,47 +6898,44 @@
|
|
|
6901
6898
|
"relativePath": [
|
|
6902
6899
|
"dist",
|
|
6903
6900
|
"commands",
|
|
6904
|
-
"
|
|
6905
|
-
"
|
|
6906
|
-
"
|
|
6901
|
+
"datasets",
|
|
6902
|
+
"embeddings",
|
|
6903
|
+
"enable.js"
|
|
6907
6904
|
]
|
|
6908
6905
|
},
|
|
6909
|
-
"
|
|
6906
|
+
"datasets:embeddings:status": {
|
|
6910
6907
|
"aliases": [],
|
|
6911
6908
|
"args": {
|
|
6912
|
-
"
|
|
6913
|
-
"description": "
|
|
6914
|
-
"name": "
|
|
6915
|
-
"required":
|
|
6916
|
-
},
|
|
6917
|
-
"importId": {
|
|
6918
|
-
"description": "Import ID",
|
|
6919
|
-
"name": "importId",
|
|
6920
|
-
"required": true
|
|
6909
|
+
"dataset": {
|
|
6910
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
6911
|
+
"name": "dataset",
|
|
6912
|
+
"required": false
|
|
6921
6913
|
}
|
|
6922
6914
|
},
|
|
6923
|
-
"description": "
|
|
6915
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
6924
6916
|
"examples": [
|
|
6925
6917
|
{
|
|
6926
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6927
|
-
"description": "
|
|
6928
|
-
},
|
|
6929
|
-
{
|
|
6930
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 import-def456 --json",
|
|
6931
|
-
"description": "Output the import as JSON"
|
|
6918
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
6919
|
+
"description": "Show embeddings status for the production dataset"
|
|
6932
6920
|
}
|
|
6933
6921
|
],
|
|
6934
6922
|
"flags": {
|
|
6935
|
-
"
|
|
6936
|
-
"
|
|
6937
|
-
"
|
|
6938
|
-
"
|
|
6939
|
-
"
|
|
6923
|
+
"project-id": {
|
|
6924
|
+
"char": "p",
|
|
6925
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
6926
|
+
"helpGroup": "OVERRIDE",
|
|
6927
|
+
"name": "project-id",
|
|
6928
|
+
"hasDynamicHelp": false,
|
|
6929
|
+
"helpValue": "<id>",
|
|
6930
|
+
"multiple": false,
|
|
6931
|
+
"type": "option"
|
|
6940
6932
|
}
|
|
6941
6933
|
},
|
|
6942
6934
|
"hasDynamicHelp": false,
|
|
6943
|
-
"hiddenAliases": [
|
|
6944
|
-
|
|
6935
|
+
"hiddenAliases": [
|
|
6936
|
+
"dataset:embeddings:status"
|
|
6937
|
+
],
|
|
6938
|
+
"id": "datasets:embeddings:status",
|
|
6945
6939
|
"pluginAlias": "@sanity/cli",
|
|
6946
6940
|
"pluginName": "@sanity/cli",
|
|
6947
6941
|
"pluginType": "core",
|
|
@@ -6950,42 +6944,44 @@
|
|
|
6950
6944
|
"relativePath": [
|
|
6951
6945
|
"dist",
|
|
6952
6946
|
"commands",
|
|
6953
|
-
"
|
|
6954
|
-
"
|
|
6955
|
-
"
|
|
6947
|
+
"datasets",
|
|
6948
|
+
"embeddings",
|
|
6949
|
+
"status.js"
|
|
6956
6950
|
]
|
|
6957
6951
|
},
|
|
6958
|
-
"
|
|
6952
|
+
"datasets:visibility:get": {
|
|
6959
6953
|
"aliases": [],
|
|
6960
6954
|
"args": {
|
|
6961
|
-
"
|
|
6962
|
-
"description": "
|
|
6963
|
-
"name": "
|
|
6955
|
+
"dataset": {
|
|
6956
|
+
"description": "The name of the dataset to get visibility for",
|
|
6957
|
+
"name": "dataset",
|
|
6964
6958
|
"required": true
|
|
6965
6959
|
}
|
|
6966
6960
|
},
|
|
6967
|
-
"description": "
|
|
6961
|
+
"description": "Get the visibility of a dataset",
|
|
6968
6962
|
"examples": [
|
|
6969
6963
|
{
|
|
6970
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6971
|
-
"description": "
|
|
6972
|
-
},
|
|
6973
|
-
{
|
|
6974
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
6975
|
-
"description": "Output imports as JSON"
|
|
6964
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
6965
|
+
"description": "Check the visibility of a dataset"
|
|
6976
6966
|
}
|
|
6977
6967
|
],
|
|
6978
6968
|
"flags": {
|
|
6979
|
-
"
|
|
6980
|
-
"
|
|
6981
|
-
"
|
|
6982
|
-
"
|
|
6983
|
-
"
|
|
6969
|
+
"project-id": {
|
|
6970
|
+
"char": "p",
|
|
6971
|
+
"description": "Project ID to get dataset visibility for (overrides CLI configuration)",
|
|
6972
|
+
"helpGroup": "OVERRIDE",
|
|
6973
|
+
"name": "project-id",
|
|
6974
|
+
"hasDynamicHelp": false,
|
|
6975
|
+
"helpValue": "<id>",
|
|
6976
|
+
"multiple": false,
|
|
6977
|
+
"type": "option"
|
|
6984
6978
|
}
|
|
6985
6979
|
},
|
|
6986
6980
|
"hasDynamicHelp": false,
|
|
6987
|
-
"hiddenAliases": [
|
|
6988
|
-
|
|
6981
|
+
"hiddenAliases": [
|
|
6982
|
+
"dataset:visibility:get"
|
|
6983
|
+
],
|
|
6984
|
+
"id": "datasets:visibility:get",
|
|
6989
6985
|
"pluginAlias": "@sanity/cli",
|
|
6990
6986
|
"pluginName": "@sanity/cli",
|
|
6991
6987
|
"pluginType": "core",
|
|
@@ -6994,53 +6990,57 @@
|
|
|
6994
6990
|
"relativePath": [
|
|
6995
6991
|
"dist",
|
|
6996
6992
|
"commands",
|
|
6997
|
-
"
|
|
6998
|
-
"
|
|
6999
|
-
"
|
|
6993
|
+
"datasets",
|
|
6994
|
+
"visibility",
|
|
6995
|
+
"get.js"
|
|
7000
6996
|
]
|
|
7001
6997
|
},
|
|
7002
|
-
"
|
|
6998
|
+
"datasets:visibility:set": {
|
|
7003
6999
|
"aliases": [],
|
|
7004
7000
|
"args": {
|
|
7005
|
-
"
|
|
7006
|
-
"description": "
|
|
7007
|
-
"name": "
|
|
7001
|
+
"dataset": {
|
|
7002
|
+
"description": "The name of the dataset to set visibility for",
|
|
7003
|
+
"name": "dataset",
|
|
7008
7004
|
"required": true
|
|
7009
7005
|
},
|
|
7010
|
-
"
|
|
7011
|
-
"description": "
|
|
7012
|
-
"name": "
|
|
7006
|
+
"mode": {
|
|
7007
|
+
"description": "The visibility mode to set",
|
|
7008
|
+
"name": "mode",
|
|
7009
|
+
"options": [
|
|
7010
|
+
"public",
|
|
7011
|
+
"private"
|
|
7012
|
+
],
|
|
7013
7013
|
"required": true
|
|
7014
7014
|
}
|
|
7015
7015
|
},
|
|
7016
|
-
"description": "
|
|
7016
|
+
"description": "Set the visibility of a dataset",
|
|
7017
7017
|
"examples": [
|
|
7018
7018
|
{
|
|
7019
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7020
|
-
"description": "
|
|
7019
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset private",
|
|
7020
|
+
"description": "Make a dataset private"
|
|
7021
7021
|
},
|
|
7022
7022
|
{
|
|
7023
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7024
|
-
"description": "
|
|
7023
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset public",
|
|
7024
|
+
"description": "Make a dataset public"
|
|
7025
7025
|
}
|
|
7026
7026
|
],
|
|
7027
7027
|
"flags": {
|
|
7028
|
-
"
|
|
7029
|
-
"
|
|
7030
|
-
"
|
|
7031
|
-
"
|
|
7032
|
-
"
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
"
|
|
7036
|
-
"
|
|
7037
|
-
"allowNo": false,
|
|
7038
|
-
"type": "boolean"
|
|
7028
|
+
"project-id": {
|
|
7029
|
+
"char": "p",
|
|
7030
|
+
"description": "Project ID to set dataset visibility for (overrides CLI configuration)",
|
|
7031
|
+
"helpGroup": "OVERRIDE",
|
|
7032
|
+
"name": "project-id",
|
|
7033
|
+
"hasDynamicHelp": false,
|
|
7034
|
+
"helpValue": "<id>",
|
|
7035
|
+
"multiple": false,
|
|
7036
|
+
"type": "option"
|
|
7039
7037
|
}
|
|
7040
7038
|
},
|
|
7041
7039
|
"hasDynamicHelp": false,
|
|
7042
|
-
"hiddenAliases": [
|
|
7043
|
-
|
|
7040
|
+
"hiddenAliases": [
|
|
7041
|
+
"dataset:visibility:set"
|
|
7042
|
+
],
|
|
7043
|
+
"id": "datasets:visibility:set",
|
|
7044
7044
|
"pluginAlias": "@sanity/cli",
|
|
7045
7045
|
"pluginName": "@sanity/cli",
|
|
7046
7046
|
"pluginType": "core",
|
|
@@ -7049,11 +7049,11 @@
|
|
|
7049
7049
|
"relativePath": [
|
|
7050
7050
|
"dist",
|
|
7051
7051
|
"commands",
|
|
7052
|
-
"
|
|
7053
|
-
"
|
|
7054
|
-
"
|
|
7052
|
+
"datasets",
|
|
7053
|
+
"visibility",
|
|
7054
|
+
"set.js"
|
|
7055
7055
|
]
|
|
7056
7056
|
}
|
|
7057
7057
|
},
|
|
7058
|
-
"version": "8.
|
|
7058
|
+
"version": "8.16.0"
|
|
7059
7059
|
}
|