@sanity/cli 7.8.0 → 7.9.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/deploy/deployApp.js +13 -8
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployChecks.js +9 -8
- package/dist/actions/deploy/deployChecks.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +12 -9
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/resolveDeployTarget.js +3 -2
- package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
- package/dist/actions/deploy/urlUtils.js +0 -4
- package/dist/actions/deploy/urlUtils.js.map +1 -1
- package/dist/actions/documents/types.js.map +1 -1
- package/dist/actions/documents/validate.js +2 -1
- package/dist/actions/documents/validate.js.map +1 -1
- package/dist/actions/undeploy/adapters.js +3 -3
- package/dist/actions/undeploy/adapters.js.map +1 -1
- package/dist/actions/undeploy/runUndeploy.js +20 -6
- package/dist/actions/undeploy/runUndeploy.js.map +1 -1
- package/dist/actions/undeploy/undeployPlan.js +18 -3
- package/dist/actions/undeploy/undeployPlan.js.map +1 -1
- package/dist/commands/documents/validate.js +18 -17
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/undeploy.js +13 -1
- package/dist/commands/undeploy.js.map +1 -1
- package/dist/server/devServer.js.map +1 -1
- package/oclif.manifest.json +990 -990
- package/package.json +6 -6
package/oclif.manifest.json
CHANGED
|
@@ -1500,118 +1500,156 @@
|
|
|
1500
1500
|
"list.js"
|
|
1501
1501
|
]
|
|
1502
1502
|
},
|
|
1503
|
-
"
|
|
1504
|
-
"aliases": [],
|
|
1505
|
-
"args": {},
|
|
1506
|
-
"description": "Open Sanity docs in your browser",
|
|
1507
|
-
"flags": {},
|
|
1508
|
-
"hasDynamicHelp": false,
|
|
1509
|
-
"hiddenAliases": [],
|
|
1510
|
-
"id": "docs:browse",
|
|
1511
|
-
"pluginAlias": "@sanity/cli",
|
|
1512
|
-
"pluginName": "@sanity/cli",
|
|
1513
|
-
"pluginType": "core",
|
|
1514
|
-
"strict": true,
|
|
1515
|
-
"enableJsonFlag": false,
|
|
1516
|
-
"isESM": true,
|
|
1517
|
-
"relativePath": [
|
|
1518
|
-
"dist",
|
|
1519
|
-
"commands",
|
|
1520
|
-
"docs",
|
|
1521
|
-
"browse.js"
|
|
1522
|
-
]
|
|
1523
|
-
},
|
|
1524
|
-
"docs:read": {
|
|
1503
|
+
"datasets:copy": {
|
|
1525
1504
|
"aliases": [],
|
|
1526
1505
|
"args": {
|
|
1527
|
-
"
|
|
1528
|
-
"description": "
|
|
1529
|
-
"name": "
|
|
1530
|
-
"required":
|
|
1506
|
+
"source": {
|
|
1507
|
+
"description": "Name of the dataset to copy from",
|
|
1508
|
+
"name": "source",
|
|
1509
|
+
"required": false
|
|
1510
|
+
},
|
|
1511
|
+
"target": {
|
|
1512
|
+
"description": "Name of the dataset to copy to",
|
|
1513
|
+
"name": "target",
|
|
1514
|
+
"required": false
|
|
1531
1515
|
}
|
|
1532
1516
|
},
|
|
1533
|
-
"description": "
|
|
1517
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
1534
1518
|
"examples": [
|
|
1535
1519
|
{
|
|
1536
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1537
|
-
"description": "
|
|
1520
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1521
|
+
"description": "Interactively copy a dataset"
|
|
1538
1522
|
},
|
|
1539
1523
|
{
|
|
1540
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1541
|
-
"description": "
|
|
1524
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1525
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
1542
1526
|
},
|
|
1543
1527
|
{
|
|
1544
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1545
|
-
"description": "
|
|
1528
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1529
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
1546
1530
|
},
|
|
1547
1531
|
{
|
|
1548
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1549
|
-
"description": "
|
|
1550
|
-
}
|
|
1551
|
-
],
|
|
1552
|
-
"flags": {
|
|
1553
|
-
"web": {
|
|
1554
|
-
"aliases": [
|
|
1555
|
-
"w"
|
|
1556
|
-
],
|
|
1557
|
-
"description": "Open in a web browser",
|
|
1558
|
-
"name": "web",
|
|
1559
|
-
"allowNo": false,
|
|
1560
|
-
"type": "boolean"
|
|
1561
|
-
}
|
|
1562
|
-
},
|
|
1563
|
-
"hasDynamicHelp": false,
|
|
1564
|
-
"hiddenAliases": [],
|
|
1565
|
-
"id": "docs:read",
|
|
1566
|
-
"pluginAlias": "@sanity/cli",
|
|
1567
|
-
"pluginName": "@sanity/cli",
|
|
1568
|
-
"pluginType": "core",
|
|
1569
|
-
"strict": true,
|
|
1570
|
-
"isESM": true,
|
|
1571
|
-
"relativePath": [
|
|
1572
|
-
"dist",
|
|
1573
|
-
"commands",
|
|
1574
|
-
"docs",
|
|
1575
|
-
"read.js"
|
|
1576
|
-
]
|
|
1577
|
-
},
|
|
1578
|
-
"docs:search": {
|
|
1579
|
-
"aliases": [],
|
|
1580
|
-
"args": {
|
|
1581
|
-
"query": {
|
|
1582
|
-
"description": "Search query for documentation",
|
|
1583
|
-
"name": "query",
|
|
1584
|
-
"required": true
|
|
1585
|
-
}
|
|
1586
|
-
},
|
|
1587
|
-
"description": "Search Sanity docs",
|
|
1588
|
-
"examples": [
|
|
1532
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1533
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1534
|
+
},
|
|
1589
1535
|
{
|
|
1590
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1591
|
-
"description": "
|
|
1536
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1537
|
+
"description": "Copy without content release documents"
|
|
1592
1538
|
},
|
|
1593
1539
|
{
|
|
1594
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1595
|
-
"description": "
|
|
1540
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1541
|
+
"description": "Start copy job without waiting for completion"
|
|
1596
1542
|
},
|
|
1597
1543
|
{
|
|
1598
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1599
|
-
"description": "
|
|
1544
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
1545
|
+
"description": "Attach to a running copy job to follow progress"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
1549
|
+
"description": "List all dataset copy jobs"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
1553
|
+
"description": "List copy jobs with pagination"
|
|
1600
1554
|
}
|
|
1601
1555
|
],
|
|
1602
1556
|
"flags": {
|
|
1557
|
+
"project-id": {
|
|
1558
|
+
"char": "p",
|
|
1559
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
1560
|
+
"helpGroup": "OVERRIDE",
|
|
1561
|
+
"name": "project-id",
|
|
1562
|
+
"hasDynamicHelp": false,
|
|
1563
|
+
"helpValue": "<id>",
|
|
1564
|
+
"multiple": false,
|
|
1565
|
+
"type": "option"
|
|
1566
|
+
},
|
|
1567
|
+
"attach": {
|
|
1568
|
+
"description": "Attach to the running copy process to show progress",
|
|
1569
|
+
"exclusive": [
|
|
1570
|
+
"list",
|
|
1571
|
+
"detach",
|
|
1572
|
+
"skip-history"
|
|
1573
|
+
],
|
|
1574
|
+
"name": "attach",
|
|
1575
|
+
"required": false,
|
|
1576
|
+
"hasDynamicHelp": false,
|
|
1577
|
+
"multiple": false,
|
|
1578
|
+
"type": "option"
|
|
1579
|
+
},
|
|
1580
|
+
"detach": {
|
|
1581
|
+
"description": "Start the copy without waiting for it to finish",
|
|
1582
|
+
"exclusive": [
|
|
1583
|
+
"list",
|
|
1584
|
+
"attach"
|
|
1585
|
+
],
|
|
1586
|
+
"name": "detach",
|
|
1587
|
+
"required": false,
|
|
1588
|
+
"allowNo": false,
|
|
1589
|
+
"type": "boolean"
|
|
1590
|
+
},
|
|
1603
1591
|
"limit": {
|
|
1604
|
-
"
|
|
1592
|
+
"dependsOn": [
|
|
1593
|
+
"list"
|
|
1594
|
+
],
|
|
1595
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
1605
1596
|
"name": "limit",
|
|
1606
|
-
"
|
|
1597
|
+
"required": false,
|
|
1598
|
+
"hasDynamicHelp": false,
|
|
1599
|
+
"multiple": false,
|
|
1600
|
+
"type": "option"
|
|
1601
|
+
},
|
|
1602
|
+
"list": {
|
|
1603
|
+
"description": "Lists all dataset copy jobs",
|
|
1604
|
+
"exclusive": [
|
|
1605
|
+
"attach",
|
|
1606
|
+
"detach",
|
|
1607
|
+
"skip-history"
|
|
1608
|
+
],
|
|
1609
|
+
"name": "list",
|
|
1610
|
+
"required": false,
|
|
1611
|
+
"allowNo": false,
|
|
1612
|
+
"type": "boolean"
|
|
1613
|
+
},
|
|
1614
|
+
"offset": {
|
|
1615
|
+
"dependsOn": [
|
|
1616
|
+
"list"
|
|
1617
|
+
],
|
|
1618
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
1619
|
+
"name": "offset",
|
|
1620
|
+
"required": false,
|
|
1607
1621
|
"hasDynamicHelp": false,
|
|
1608
1622
|
"multiple": false,
|
|
1609
1623
|
"type": "option"
|
|
1624
|
+
},
|
|
1625
|
+
"skip-content-releases": {
|
|
1626
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
1627
|
+
"exclusive": [
|
|
1628
|
+
"list",
|
|
1629
|
+
"attach"
|
|
1630
|
+
],
|
|
1631
|
+
"name": "skip-content-releases",
|
|
1632
|
+
"required": false,
|
|
1633
|
+
"allowNo": false,
|
|
1634
|
+
"type": "boolean"
|
|
1635
|
+
},
|
|
1636
|
+
"skip-history": {
|
|
1637
|
+
"description": "Don't preserve document history on copy",
|
|
1638
|
+
"exclusive": [
|
|
1639
|
+
"list",
|
|
1640
|
+
"attach"
|
|
1641
|
+
],
|
|
1642
|
+
"name": "skip-history",
|
|
1643
|
+
"required": false,
|
|
1644
|
+
"allowNo": false,
|
|
1645
|
+
"type": "boolean"
|
|
1610
1646
|
}
|
|
1611
1647
|
},
|
|
1612
1648
|
"hasDynamicHelp": false,
|
|
1613
|
-
"hiddenAliases": [
|
|
1614
|
-
|
|
1649
|
+
"hiddenAliases": [
|
|
1650
|
+
"dataset:copy"
|
|
1651
|
+
],
|
|
1652
|
+
"id": "datasets:copy",
|
|
1615
1653
|
"pluginAlias": "@sanity/cli",
|
|
1616
1654
|
"pluginName": "@sanity/cli",
|
|
1617
1655
|
"pluginType": "core",
|
|
@@ -1620,46 +1658,38 @@
|
|
|
1620
1658
|
"relativePath": [
|
|
1621
1659
|
"dist",
|
|
1622
1660
|
"commands",
|
|
1623
|
-
"
|
|
1624
|
-
"
|
|
1661
|
+
"datasets",
|
|
1662
|
+
"copy.js"
|
|
1625
1663
|
]
|
|
1626
1664
|
},
|
|
1627
|
-
"
|
|
1665
|
+
"datasets:create": {
|
|
1628
1666
|
"aliases": [],
|
|
1629
1667
|
"args": {
|
|
1630
|
-
"
|
|
1631
|
-
"description": "
|
|
1632
|
-
"name": "
|
|
1668
|
+
"name": {
|
|
1669
|
+
"description": "Name of the dataset to create",
|
|
1670
|
+
"name": "name",
|
|
1633
1671
|
"required": false
|
|
1634
1672
|
}
|
|
1635
1673
|
},
|
|
1636
|
-
"description": "Create
|
|
1674
|
+
"description": "Create a new dataset for the project",
|
|
1637
1675
|
"examples": [
|
|
1638
|
-
{
|
|
1639
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
1640
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
1641
|
-
},
|
|
1642
1676
|
{
|
|
1643
1677
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1644
|
-
"description": "
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
1648
|
-
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
1678
|
+
"description": "Interactively create a dataset"
|
|
1649
1679
|
},
|
|
1650
1680
|
{
|
|
1651
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1652
|
-
"description": "
|
|
1681
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
1682
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
1653
1683
|
},
|
|
1654
1684
|
{
|
|
1655
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1656
|
-
"description": "Create
|
|
1685
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
1686
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
1657
1687
|
}
|
|
1658
1688
|
],
|
|
1659
1689
|
"flags": {
|
|
1660
1690
|
"project-id": {
|
|
1661
1691
|
"char": "p",
|
|
1662
|
-
"description": "Project ID to create
|
|
1692
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
1663
1693
|
"helpGroup": "OVERRIDE",
|
|
1664
1694
|
"name": "project-id",
|
|
1665
1695
|
"hasDynamicHelp": false,
|
|
@@ -1667,53 +1697,41 @@
|
|
|
1667
1697
|
"multiple": false,
|
|
1668
1698
|
"type": "option"
|
|
1669
1699
|
},
|
|
1670
|
-
"
|
|
1671
|
-
"
|
|
1672
|
-
"
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1700
|
+
"embeddings": {
|
|
1701
|
+
"description": "Enable embeddings for this dataset",
|
|
1702
|
+
"name": "embeddings",
|
|
1703
|
+
"allowNo": false,
|
|
1704
|
+
"type": "boolean"
|
|
1705
|
+
},
|
|
1706
|
+
"embeddings-projection": {
|
|
1707
|
+
"dependsOn": [
|
|
1708
|
+
"embeddings"
|
|
1709
|
+
],
|
|
1710
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1711
|
+
"name": "embeddings-projection",
|
|
1675
1712
|
"hasDynamicHelp": false,
|
|
1676
|
-
"helpValue": "<name>",
|
|
1677
1713
|
"multiple": false,
|
|
1678
1714
|
"type": "option"
|
|
1679
1715
|
},
|
|
1680
|
-
"
|
|
1681
|
-
"description": "
|
|
1682
|
-
"name": "
|
|
1716
|
+
"visibility": {
|
|
1717
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1718
|
+
"name": "visibility",
|
|
1719
|
+
"required": false,
|
|
1683
1720
|
"hasDynamicHelp": false,
|
|
1684
1721
|
"multiple": false,
|
|
1722
|
+
"options": [
|
|
1723
|
+
"custom",
|
|
1724
|
+
"private",
|
|
1725
|
+
"public"
|
|
1726
|
+
],
|
|
1685
1727
|
"type": "option"
|
|
1686
|
-
},
|
|
1687
|
-
"json5": {
|
|
1688
|
-
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
1689
|
-
"name": "json5",
|
|
1690
|
-
"allowNo": false,
|
|
1691
|
-
"type": "boolean"
|
|
1692
|
-
},
|
|
1693
|
-
"missing": {
|
|
1694
|
-
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
1695
|
-
"name": "missing",
|
|
1696
|
-
"allowNo": false,
|
|
1697
|
-
"type": "boolean"
|
|
1698
|
-
},
|
|
1699
|
-
"replace": {
|
|
1700
|
-
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
1701
|
-
"name": "replace",
|
|
1702
|
-
"allowNo": false,
|
|
1703
|
-
"type": "boolean"
|
|
1704
|
-
},
|
|
1705
|
-
"watch": {
|
|
1706
|
-
"description": "Write the documents whenever the target file or buffer changes",
|
|
1707
|
-
"name": "watch",
|
|
1708
|
-
"allowNo": false,
|
|
1709
|
-
"type": "boolean"
|
|
1710
1728
|
}
|
|
1711
1729
|
},
|
|
1712
1730
|
"hasDynamicHelp": false,
|
|
1713
1731
|
"hiddenAliases": [
|
|
1714
|
-
"
|
|
1732
|
+
"dataset:create"
|
|
1715
1733
|
],
|
|
1716
|
-
"id": "
|
|
1734
|
+
"id": "datasets:create",
|
|
1717
1735
|
"pluginAlias": "@sanity/cli",
|
|
1718
1736
|
"pluginName": "@sanity/cli",
|
|
1719
1737
|
"pluginType": "core",
|
|
@@ -1722,51 +1740,34 @@
|
|
|
1722
1740
|
"relativePath": [
|
|
1723
1741
|
"dist",
|
|
1724
1742
|
"commands",
|
|
1725
|
-
"
|
|
1743
|
+
"datasets",
|
|
1726
1744
|
"create.js"
|
|
1727
1745
|
]
|
|
1728
1746
|
},
|
|
1729
|
-
"
|
|
1747
|
+
"datasets:delete": {
|
|
1730
1748
|
"aliases": [],
|
|
1731
1749
|
"args": {
|
|
1732
|
-
"
|
|
1733
|
-
"description": "
|
|
1734
|
-
"name": "
|
|
1750
|
+
"datasetName": {
|
|
1751
|
+
"description": "Dataset name to delete",
|
|
1752
|
+
"name": "datasetName",
|
|
1735
1753
|
"required": true
|
|
1736
|
-
},
|
|
1737
|
-
"ids": {
|
|
1738
|
-
"description": "Additional document IDs to delete",
|
|
1739
|
-
"name": "ids",
|
|
1740
|
-
"required": false
|
|
1741
1754
|
}
|
|
1742
1755
|
},
|
|
1743
|
-
"description": "Delete
|
|
1756
|
+
"description": "Delete a dataset from the project",
|
|
1744
1757
|
"examples": [
|
|
1745
1758
|
{
|
|
1746
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1747
|
-
"description": "Delete
|
|
1748
|
-
},
|
|
1749
|
-
{
|
|
1750
|
-
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
1751
|
-
"description": "ID wrapped in double or single quote works equally well"
|
|
1752
|
-
},
|
|
1753
|
-
{
|
|
1754
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
1755
|
-
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
1759
|
-
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
1759
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
1760
|
+
"description": "Delete a specific dataset"
|
|
1760
1761
|
},
|
|
1761
1762
|
{
|
|
1762
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1763
|
-
"description": "Delete a
|
|
1763
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
1764
|
+
"description": "Delete a specific dataset without confirmation"
|
|
1764
1765
|
}
|
|
1765
1766
|
],
|
|
1766
1767
|
"flags": {
|
|
1767
1768
|
"project-id": {
|
|
1768
1769
|
"char": "p",
|
|
1769
|
-
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
1770
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
1770
1771
|
"helpGroup": "OVERRIDE",
|
|
1771
1772
|
"name": "project-id",
|
|
1772
1773
|
"hasDynamicHelp": false,
|
|
@@ -1774,66 +1775,70 @@
|
|
|
1774
1775
|
"multiple": false,
|
|
1775
1776
|
"type": "option"
|
|
1776
1777
|
},
|
|
1777
|
-
"
|
|
1778
|
-
"
|
|
1779
|
-
"
|
|
1780
|
-
"
|
|
1781
|
-
"
|
|
1782
|
-
"
|
|
1783
|
-
"helpValue": "<name>",
|
|
1784
|
-
"multiple": false,
|
|
1785
|
-
"type": "option"
|
|
1778
|
+
"force": {
|
|
1779
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
1780
|
+
"name": "force",
|
|
1781
|
+
"required": false,
|
|
1782
|
+
"allowNo": false,
|
|
1783
|
+
"type": "boolean"
|
|
1786
1784
|
}
|
|
1787
1785
|
},
|
|
1788
1786
|
"hasDynamicHelp": false,
|
|
1789
1787
|
"hiddenAliases": [
|
|
1790
|
-
"
|
|
1788
|
+
"dataset:delete"
|
|
1791
1789
|
],
|
|
1792
|
-
"id": "
|
|
1790
|
+
"id": "datasets:delete",
|
|
1793
1791
|
"pluginAlias": "@sanity/cli",
|
|
1794
1792
|
"pluginName": "@sanity/cli",
|
|
1795
1793
|
"pluginType": "core",
|
|
1796
|
-
"strict":
|
|
1794
|
+
"strict": true,
|
|
1797
1795
|
"isESM": true,
|
|
1798
1796
|
"relativePath": [
|
|
1799
1797
|
"dist",
|
|
1800
1798
|
"commands",
|
|
1801
|
-
"
|
|
1799
|
+
"datasets",
|
|
1802
1800
|
"delete.js"
|
|
1803
1801
|
]
|
|
1804
1802
|
},
|
|
1805
|
-
"
|
|
1803
|
+
"datasets:export": {
|
|
1806
1804
|
"aliases": [],
|
|
1807
1805
|
"args": {
|
|
1808
|
-
"
|
|
1809
|
-
"description": "
|
|
1810
|
-
"name": "
|
|
1811
|
-
|
|
1806
|
+
"name": {
|
|
1807
|
+
"description": "Name of the dataset to export",
|
|
1808
|
+
"name": "name"
|
|
1809
|
+
},
|
|
1810
|
+
"destination": {
|
|
1811
|
+
"description": "Output destination file path",
|
|
1812
|
+
"name": "destination"
|
|
1812
1813
|
}
|
|
1813
1814
|
},
|
|
1814
|
-
"description": "
|
|
1815
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1815
1816
|
"examples": [
|
|
1816
1817
|
{
|
|
1817
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1818
|
-
"description": "
|
|
1818
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
1819
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
1819
1820
|
},
|
|
1820
1821
|
{
|
|
1821
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1822
|
-
"description": "
|
|
1822
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
1823
|
+
"description": "Export dataset without assets"
|
|
1823
1824
|
},
|
|
1824
1825
|
{
|
|
1825
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1826
|
-
"description": "
|
|
1826
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
1827
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
1827
1828
|
},
|
|
1828
1829
|
{
|
|
1829
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1830
|
-
"description": "
|
|
1830
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
1831
|
+
"description": "Export specific document types"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
1835
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
1831
1836
|
}
|
|
1832
1837
|
],
|
|
1833
1838
|
"flags": {
|
|
1834
1839
|
"project-id": {
|
|
1835
1840
|
"char": "p",
|
|
1836
|
-
"description": "Project ID to
|
|
1841
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
1837
1842
|
"helpGroup": "OVERRIDE",
|
|
1838
1843
|
"name": "project-id",
|
|
1839
1844
|
"hasDynamicHelp": false,
|
|
@@ -1841,28 +1846,75 @@
|
|
|
1841
1846
|
"multiple": false,
|
|
1842
1847
|
"type": "option"
|
|
1843
1848
|
},
|
|
1844
|
-
"
|
|
1845
|
-
"
|
|
1846
|
-
"
|
|
1847
|
-
"
|
|
1848
|
-
"
|
|
1849
|
+
"asset-concurrency": {
|
|
1850
|
+
"description": "Concurrent number of asset downloads",
|
|
1851
|
+
"name": "asset-concurrency",
|
|
1852
|
+
"default": 8,
|
|
1853
|
+
"hasDynamicHelp": false,
|
|
1854
|
+
"multiple": false,
|
|
1855
|
+
"type": "option"
|
|
1856
|
+
},
|
|
1857
|
+
"mode": {
|
|
1858
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
1859
|
+
"name": "mode",
|
|
1860
|
+
"default": "stream",
|
|
1861
|
+
"hasDynamicHelp": false,
|
|
1862
|
+
"multiple": false,
|
|
1863
|
+
"options": [
|
|
1864
|
+
"stream",
|
|
1865
|
+
"cursor"
|
|
1866
|
+
],
|
|
1867
|
+
"type": "option"
|
|
1868
|
+
},
|
|
1869
|
+
"no-assets": {
|
|
1870
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
1871
|
+
"name": "no-assets",
|
|
1872
|
+
"allowNo": false,
|
|
1873
|
+
"type": "boolean"
|
|
1874
|
+
},
|
|
1875
|
+
"no-compress": {
|
|
1876
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
1877
|
+
"name": "no-compress",
|
|
1878
|
+
"allowNo": false,
|
|
1879
|
+
"type": "boolean"
|
|
1880
|
+
},
|
|
1881
|
+
"no-drafts": {
|
|
1882
|
+
"description": "Export only published versions of documents",
|
|
1883
|
+
"name": "no-drafts",
|
|
1884
|
+
"allowNo": false,
|
|
1885
|
+
"type": "boolean"
|
|
1886
|
+
},
|
|
1887
|
+
"no-strict-asset-verification": {
|
|
1888
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
1889
|
+
"name": "no-strict-asset-verification",
|
|
1890
|
+
"allowNo": false,
|
|
1891
|
+
"type": "boolean"
|
|
1892
|
+
},
|
|
1893
|
+
"overwrite": {
|
|
1894
|
+
"description": "Overwrite any file with the same name",
|
|
1895
|
+
"name": "overwrite",
|
|
1896
|
+
"allowNo": false,
|
|
1897
|
+
"type": "boolean"
|
|
1898
|
+
},
|
|
1899
|
+
"raw": {
|
|
1900
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
1901
|
+
"name": "raw",
|
|
1902
|
+
"allowNo": false,
|
|
1903
|
+
"type": "boolean"
|
|
1904
|
+
},
|
|
1905
|
+
"types": {
|
|
1906
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
1907
|
+
"name": "types",
|
|
1849
1908
|
"hasDynamicHelp": false,
|
|
1850
|
-
"helpValue": "<name>",
|
|
1851
1909
|
"multiple": false,
|
|
1852
1910
|
"type": "option"
|
|
1853
|
-
},
|
|
1854
|
-
"pretty": {
|
|
1855
|
-
"description": "Colorize JSON output",
|
|
1856
|
-
"name": "pretty",
|
|
1857
|
-
"allowNo": false,
|
|
1858
|
-
"type": "boolean"
|
|
1859
1911
|
}
|
|
1860
1912
|
},
|
|
1861
1913
|
"hasDynamicHelp": false,
|
|
1862
1914
|
"hiddenAliases": [
|
|
1863
|
-
"
|
|
1915
|
+
"dataset:export"
|
|
1864
1916
|
],
|
|
1865
|
-
"id": "
|
|
1917
|
+
"id": "datasets:export",
|
|
1866
1918
|
"pluginAlias": "@sanity/cli",
|
|
1867
1919
|
"pluginName": "@sanity/cli",
|
|
1868
1920
|
"pluginType": "core",
|
|
@@ -1871,96 +1923,151 @@
|
|
|
1871
1923
|
"relativePath": [
|
|
1872
1924
|
"dist",
|
|
1873
1925
|
"commands",
|
|
1874
|
-
"
|
|
1875
|
-
"
|
|
1926
|
+
"datasets",
|
|
1927
|
+
"export.js"
|
|
1876
1928
|
]
|
|
1877
1929
|
},
|
|
1878
|
-
"
|
|
1930
|
+
"datasets:import": {
|
|
1879
1931
|
"aliases": [],
|
|
1880
1932
|
"args": {
|
|
1881
|
-
"
|
|
1882
|
-
"description": "
|
|
1883
|
-
"name": "
|
|
1933
|
+
"source": {
|
|
1934
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
1935
|
+
"name": "source",
|
|
1884
1936
|
"required": true
|
|
1937
|
+
},
|
|
1938
|
+
"targetDataset": {
|
|
1939
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
1940
|
+
"name": "targetDataset",
|
|
1941
|
+
"required": false
|
|
1885
1942
|
}
|
|
1886
1943
|
},
|
|
1887
|
-
"description": "
|
|
1944
|
+
"description": "Import documents to a Sanity dataset",
|
|
1888
1945
|
"examples": [
|
|
1889
1946
|
{
|
|
1890
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1891
|
-
"description": "
|
|
1947
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
1948
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
1892
1949
|
},
|
|
1893
1950
|
{
|
|
1894
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1895
|
-
"description": "
|
|
1951
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
1952
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
1896
1953
|
},
|
|
1897
1954
|
{
|
|
1898
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1899
|
-
"description": "
|
|
1955
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
1956
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
1900
1957
|
},
|
|
1901
1958
|
{
|
|
1902
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1903
|
-
"description": "
|
|
1959
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
1960
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
1904
1961
|
}
|
|
1905
1962
|
],
|
|
1906
1963
|
"flags": {
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
"
|
|
1964
|
+
"allow-assets-in-different-dataset": {
|
|
1965
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
1966
|
+
"name": "allow-assets-in-different-dataset",
|
|
1967
|
+
"allowNo": false,
|
|
1968
|
+
"type": "boolean"
|
|
1969
|
+
},
|
|
1970
|
+
"allow-failing-assets": {
|
|
1971
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
1972
|
+
"name": "allow-failing-assets",
|
|
1973
|
+
"allowNo": false,
|
|
1974
|
+
"type": "boolean"
|
|
1975
|
+
},
|
|
1976
|
+
"allow-replacement-characters": {
|
|
1977
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
1978
|
+
"name": "allow-replacement-characters",
|
|
1979
|
+
"allowNo": false,
|
|
1980
|
+
"type": "boolean"
|
|
1981
|
+
},
|
|
1982
|
+
"allow-system-documents": {
|
|
1983
|
+
"description": "Imports system documents",
|
|
1984
|
+
"name": "allow-system-documents",
|
|
1985
|
+
"allowNo": false,
|
|
1986
|
+
"type": "boolean"
|
|
1987
|
+
},
|
|
1988
|
+
"asset-concurrency": {
|
|
1989
|
+
"description": "Number of parallel asset imports",
|
|
1990
|
+
"name": "asset-concurrency",
|
|
1912
1991
|
"hasDynamicHelp": false,
|
|
1913
|
-
"helpValue": "<id>",
|
|
1914
1992
|
"multiple": false,
|
|
1915
1993
|
"type": "option"
|
|
1916
1994
|
},
|
|
1917
1995
|
"dataset": {
|
|
1918
1996
|
"char": "d",
|
|
1919
|
-
"description": "Dataset to
|
|
1920
|
-
"helpGroup": "OVERRIDE",
|
|
1997
|
+
"description": "Dataset to import to",
|
|
1921
1998
|
"name": "dataset",
|
|
1922
1999
|
"hasDynamicHelp": false,
|
|
1923
2000
|
"helpValue": "<name>",
|
|
1924
2001
|
"multiple": false,
|
|
1925
2002
|
"type": "option"
|
|
1926
2003
|
},
|
|
1927
|
-
"
|
|
1928
|
-
"description": "
|
|
1929
|
-
"
|
|
2004
|
+
"missing": {
|
|
2005
|
+
"description": "Skip documents that already exist",
|
|
2006
|
+
"exclusive": [
|
|
2007
|
+
"replace"
|
|
2008
|
+
],
|
|
2009
|
+
"name": "missing",
|
|
1930
2010
|
"allowNo": false,
|
|
1931
2011
|
"type": "boolean"
|
|
1932
2012
|
},
|
|
1933
|
-
"
|
|
1934
|
-
"
|
|
1935
|
-
"
|
|
1936
|
-
"
|
|
2013
|
+
"project-id": {
|
|
2014
|
+
"char": "p",
|
|
2015
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
2016
|
+
"helpGroup": "OVERRIDE",
|
|
2017
|
+
"name": "project-id",
|
|
1937
2018
|
"hasDynamicHelp": false,
|
|
2019
|
+
"helpValue": "<id>",
|
|
1938
2020
|
"multiple": false,
|
|
1939
2021
|
"type": "option"
|
|
1940
2022
|
},
|
|
1941
|
-
"pretty": {
|
|
1942
|
-
"description": "Colorize JSON output",
|
|
1943
|
-
"name": "pretty",
|
|
1944
|
-
"allowNo": false,
|
|
1945
|
-
"type": "boolean"
|
|
1946
|
-
},
|
|
1947
2023
|
"project": {
|
|
1948
2024
|
"deprecated": {
|
|
1949
2025
|
"to": "project-id"
|
|
1950
2026
|
},
|
|
1951
|
-
"description": "Project ID to
|
|
2027
|
+
"description": "Project ID to import to",
|
|
1952
2028
|
"hidden": true,
|
|
1953
2029
|
"name": "project",
|
|
1954
2030
|
"hasDynamicHelp": false,
|
|
1955
2031
|
"multiple": false,
|
|
1956
2032
|
"type": "option"
|
|
2033
|
+
},
|
|
2034
|
+
"replace": {
|
|
2035
|
+
"description": "Replace documents with the same IDs",
|
|
2036
|
+
"exclusive": [
|
|
2037
|
+
"missing"
|
|
2038
|
+
],
|
|
2039
|
+
"name": "replace",
|
|
2040
|
+
"allowNo": false,
|
|
2041
|
+
"type": "boolean"
|
|
2042
|
+
},
|
|
2043
|
+
"replace-assets": {
|
|
2044
|
+
"description": "Skip reuse of existing assets",
|
|
2045
|
+
"name": "replace-assets",
|
|
2046
|
+
"allowNo": false,
|
|
2047
|
+
"type": "boolean"
|
|
2048
|
+
},
|
|
2049
|
+
"skip-cross-dataset-references": {
|
|
2050
|
+
"description": "Skips references to other datasets",
|
|
2051
|
+
"name": "skip-cross-dataset-references",
|
|
2052
|
+
"allowNo": false,
|
|
2053
|
+
"type": "boolean"
|
|
2054
|
+
},
|
|
2055
|
+
"token": {
|
|
2056
|
+
"char": "t",
|
|
2057
|
+
"description": "Token to authenticate with",
|
|
2058
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
2059
|
+
"name": "token",
|
|
2060
|
+
"required": false,
|
|
2061
|
+
"hasDynamicHelp": false,
|
|
2062
|
+
"multiple": false,
|
|
2063
|
+
"type": "option"
|
|
1957
2064
|
}
|
|
1958
2065
|
},
|
|
1959
2066
|
"hasDynamicHelp": false,
|
|
1960
2067
|
"hiddenAliases": [
|
|
1961
|
-
"
|
|
2068
|
+
"dataset:import"
|
|
1962
2069
|
],
|
|
1963
|
-
"id": "
|
|
2070
|
+
"id": "datasets:import",
|
|
1964
2071
|
"pluginAlias": "@sanity/cli",
|
|
1965
2072
|
"pluginName": "@sanity/cli",
|
|
1966
2073
|
"pluginType": "core",
|
|
@@ -1969,118 +2076,41 @@
|
|
|
1969
2076
|
"relativePath": [
|
|
1970
2077
|
"dist",
|
|
1971
2078
|
"commands",
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
2079
|
+
"datasets",
|
|
2080
|
+
"import.js"
|
|
1974
2081
|
]
|
|
1975
2082
|
},
|
|
1976
|
-
"
|
|
2083
|
+
"datasets:list": {
|
|
1977
2084
|
"aliases": [],
|
|
1978
2085
|
"args": {},
|
|
1979
|
-
"description": "
|
|
2086
|
+
"description": "List datasets for the project",
|
|
1980
2087
|
"examples": [
|
|
1981
2088
|
{
|
|
1982
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1983
|
-
"description": "
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
1987
|
-
"description": "Override the dataset specified in the workspace"
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
1991
|
-
"description": "Save the results of the report into a file"
|
|
1992
|
-
},
|
|
1993
|
-
{
|
|
1994
|
-
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
1995
|
-
"description": "Report out info level validation markers too"
|
|
2089
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2090
|
+
"description": "List datasets for the project"
|
|
1996
2091
|
},
|
|
1997
2092
|
{
|
|
1998
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123
|
|
1999
|
-
"description": "
|
|
2093
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2094
|
+
"description": "List datasets for a specific project"
|
|
2000
2095
|
}
|
|
2001
2096
|
],
|
|
2002
|
-
"flags": {
|
|
2003
|
-
"project-id": {
|
|
2004
|
-
"char": "p",
|
|
2005
|
-
"description": "
|
|
2006
|
-
"
|
|
2007
|
-
"
|
|
2008
|
-
"helpValue": "<id>",
|
|
2009
|
-
"multiple": false,
|
|
2010
|
-
"type": "option"
|
|
2011
|
-
},
|
|
2012
|
-
"dataset": {
|
|
2013
|
-
"char": "d",
|
|
2014
|
-
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
2015
|
-
"name": "dataset",
|
|
2016
|
-
"hasDynamicHelp": false,
|
|
2017
|
-
"helpValue": "<name>",
|
|
2018
|
-
"multiple": false,
|
|
2019
|
-
"type": "option"
|
|
2020
|
-
},
|
|
2021
|
-
"file": {
|
|
2022
|
-
"description": "Provide a path to either an .ndjson file or a tarball containing an .ndjson file",
|
|
2023
|
-
"name": "file",
|
|
2024
|
-
"hasDynamicHelp": false,
|
|
2025
|
-
"multiple": false,
|
|
2026
|
-
"type": "option"
|
|
2027
|
-
},
|
|
2028
|
-
"format": {
|
|
2029
|
-
"description": "The output format used to print the found validation markers and report progress",
|
|
2030
|
-
"name": "format",
|
|
2031
|
-
"hasDynamicHelp": false,
|
|
2032
|
-
"multiple": false,
|
|
2033
|
-
"type": "option"
|
|
2034
|
-
},
|
|
2035
|
-
"level": {
|
|
2036
|
-
"description": "The minimum level reported. Defaults to warning",
|
|
2037
|
-
"name": "level",
|
|
2038
|
-
"default": "warning",
|
|
2039
|
-
"hasDynamicHelp": false,
|
|
2040
|
-
"multiple": false,
|
|
2041
|
-
"options": [
|
|
2042
|
-
"error",
|
|
2043
|
-
"warning",
|
|
2044
|
-
"info"
|
|
2045
|
-
],
|
|
2046
|
-
"type": "option"
|
|
2047
|
-
},
|
|
2048
|
-
"max-custom-validation-concurrency": {
|
|
2049
|
-
"description": "Specify how many custom validators can run concurrently",
|
|
2050
|
-
"name": "max-custom-validation-concurrency",
|
|
2051
|
-
"default": 5,
|
|
2052
|
-
"hasDynamicHelp": false,
|
|
2053
|
-
"multiple": false,
|
|
2054
|
-
"type": "option"
|
|
2055
|
-
},
|
|
2056
|
-
"max-fetch-concurrency": {
|
|
2057
|
-
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
2058
|
-
"name": "max-fetch-concurrency",
|
|
2059
|
-
"default": 25,
|
|
2060
|
-
"hasDynamicHelp": false,
|
|
2061
|
-
"multiple": false,
|
|
2062
|
-
"type": "option"
|
|
2063
|
-
},
|
|
2064
|
-
"workspace": {
|
|
2065
|
-
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
2066
|
-
"name": "workspace",
|
|
2097
|
+
"flags": {
|
|
2098
|
+
"project-id": {
|
|
2099
|
+
"char": "p",
|
|
2100
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
2101
|
+
"helpGroup": "OVERRIDE",
|
|
2102
|
+
"name": "project-id",
|
|
2067
2103
|
"hasDynamicHelp": false,
|
|
2104
|
+
"helpValue": "<id>",
|
|
2068
2105
|
"multiple": false,
|
|
2069
2106
|
"type": "option"
|
|
2070
|
-
},
|
|
2071
|
-
"yes": {
|
|
2072
|
-
"char": "y",
|
|
2073
|
-
"description": "Skips the first confirmation prompt",
|
|
2074
|
-
"name": "yes",
|
|
2075
|
-
"allowNo": false,
|
|
2076
|
-
"type": "boolean"
|
|
2077
2107
|
}
|
|
2078
2108
|
},
|
|
2079
2109
|
"hasDynamicHelp": false,
|
|
2080
2110
|
"hiddenAliases": [
|
|
2081
|
-
"
|
|
2111
|
+
"dataset:list"
|
|
2082
2112
|
],
|
|
2083
|
-
"id": "
|
|
2113
|
+
"id": "datasets:list",
|
|
2084
2114
|
"pluginAlias": "@sanity/cli",
|
|
2085
2115
|
"pluginName": "@sanity/cli",
|
|
2086
2116
|
"pluginType": "core",
|
|
@@ -2089,102 +2119,73 @@
|
|
|
2089
2119
|
"relativePath": [
|
|
2090
2120
|
"dist",
|
|
2091
2121
|
"commands",
|
|
2092
|
-
"
|
|
2093
|
-
"
|
|
2122
|
+
"datasets",
|
|
2123
|
+
"list.js"
|
|
2094
2124
|
]
|
|
2095
2125
|
},
|
|
2096
|
-
"
|
|
2126
|
+
"docs:browse": {
|
|
2097
2127
|
"aliases": [],
|
|
2098
2128
|
"args": {},
|
|
2099
|
-
"description": "
|
|
2129
|
+
"description": "Open Sanity docs in your browser",
|
|
2130
|
+
"flags": {},
|
|
2131
|
+
"hasDynamicHelp": false,
|
|
2132
|
+
"hiddenAliases": [],
|
|
2133
|
+
"id": "docs:browse",
|
|
2134
|
+
"pluginAlias": "@sanity/cli",
|
|
2135
|
+
"pluginName": "@sanity/cli",
|
|
2136
|
+
"pluginType": "core",
|
|
2137
|
+
"strict": true,
|
|
2138
|
+
"enableJsonFlag": false,
|
|
2139
|
+
"isESM": true,
|
|
2140
|
+
"relativePath": [
|
|
2141
|
+
"dist",
|
|
2142
|
+
"commands",
|
|
2143
|
+
"docs",
|
|
2144
|
+
"browse.js"
|
|
2145
|
+
]
|
|
2146
|
+
},
|
|
2147
|
+
"docs:read": {
|
|
2148
|
+
"aliases": [],
|
|
2149
|
+
"args": {
|
|
2150
|
+
"path": {
|
|
2151
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
2152
|
+
"name": "path",
|
|
2153
|
+
"required": true
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
"description": "Read an article in terminal",
|
|
2100
2157
|
"examples": [
|
|
2101
2158
|
{
|
|
2102
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2103
|
-
"description": "
|
|
2159
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
2160
|
+
"description": "Read as markdown in terminal"
|
|
2104
2161
|
},
|
|
2105
2162
|
{
|
|
2106
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2107
|
-
"description": "
|
|
2163
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2164
|
+
"description": "Read using full URL"
|
|
2108
2165
|
},
|
|
2109
2166
|
{
|
|
2110
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2111
|
-
"description": "
|
|
2167
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
2168
|
+
"description": "Open in web browser"
|
|
2112
2169
|
},
|
|
2113
2170
|
{
|
|
2114
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2115
|
-
"description": "
|
|
2171
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
2172
|
+
"description": "Open using full URL in web browser"
|
|
2116
2173
|
}
|
|
2117
2174
|
],
|
|
2118
2175
|
"flags": {
|
|
2119
|
-
"
|
|
2120
|
-
"
|
|
2121
|
-
|
|
2122
|
-
"hasDynamicHelp": false,
|
|
2123
|
-
"multiple": true,
|
|
2124
|
-
"type": "option"
|
|
2125
|
-
},
|
|
2126
|
-
"dataset": {
|
|
2127
|
-
"char": "d",
|
|
2128
|
-
"description": "Deploy API for the given dataset",
|
|
2129
|
-
"name": "dataset",
|
|
2130
|
-
"hasDynamicHelp": false,
|
|
2131
|
-
"helpValue": "<name>",
|
|
2132
|
-
"multiple": false,
|
|
2133
|
-
"type": "option"
|
|
2134
|
-
},
|
|
2135
|
-
"dry-run": {
|
|
2136
|
-
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
2137
|
-
"name": "dry-run",
|
|
2138
|
-
"allowNo": false,
|
|
2139
|
-
"type": "boolean"
|
|
2140
|
-
},
|
|
2141
|
-
"force": {
|
|
2142
|
-
"description": "Deploy API without confirming breaking changes",
|
|
2143
|
-
"name": "force",
|
|
2144
|
-
"allowNo": false,
|
|
2145
|
-
"type": "boolean"
|
|
2146
|
-
},
|
|
2147
|
-
"generation": {
|
|
2148
|
-
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
2149
|
-
"name": "generation",
|
|
2150
|
-
"hasDynamicHelp": false,
|
|
2151
|
-
"multiple": false,
|
|
2152
|
-
"options": [
|
|
2153
|
-
"gen1",
|
|
2154
|
-
"gen2",
|
|
2155
|
-
"gen3"
|
|
2176
|
+
"web": {
|
|
2177
|
+
"aliases": [
|
|
2178
|
+
"w"
|
|
2156
2179
|
],
|
|
2157
|
-
"
|
|
2158
|
-
|
|
2159
|
-
"non-null-document-fields": {
|
|
2160
|
-
"description": "Use non-null document fields (_id, _type etc)",
|
|
2161
|
-
"name": "non-null-document-fields",
|
|
2162
|
-
"allowNo": false,
|
|
2163
|
-
"type": "boolean"
|
|
2164
|
-
},
|
|
2165
|
-
"playground": {
|
|
2166
|
-
"description": "Enable GraphQL playground for easier debugging",
|
|
2167
|
-
"name": "playground",
|
|
2168
|
-
"allowNo": true,
|
|
2169
|
-
"type": "boolean"
|
|
2170
|
-
},
|
|
2171
|
-
"tag": {
|
|
2172
|
-
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
2173
|
-
"name": "tag",
|
|
2174
|
-
"hasDynamicHelp": false,
|
|
2175
|
-
"multiple": false,
|
|
2176
|
-
"type": "option"
|
|
2177
|
-
},
|
|
2178
|
-
"with-union-cache": {
|
|
2179
|
-
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2180
|
-
"name": "with-union-cache",
|
|
2180
|
+
"description": "Open in a web browser",
|
|
2181
|
+
"name": "web",
|
|
2181
2182
|
"allowNo": false,
|
|
2182
2183
|
"type": "boolean"
|
|
2183
2184
|
}
|
|
2184
2185
|
},
|
|
2185
2186
|
"hasDynamicHelp": false,
|
|
2186
2187
|
"hiddenAliases": [],
|
|
2187
|
-
"id": "
|
|
2188
|
+
"id": "docs:read",
|
|
2188
2189
|
"pluginAlias": "@sanity/cli",
|
|
2189
2190
|
"pluginName": "@sanity/cli",
|
|
2190
2191
|
"pluginType": "core",
|
|
@@ -2193,39 +2194,47 @@
|
|
|
2193
2194
|
"relativePath": [
|
|
2194
2195
|
"dist",
|
|
2195
2196
|
"commands",
|
|
2196
|
-
"
|
|
2197
|
-
"
|
|
2197
|
+
"docs",
|
|
2198
|
+
"read.js"
|
|
2198
2199
|
]
|
|
2199
2200
|
},
|
|
2200
|
-
"
|
|
2201
|
+
"docs:search": {
|
|
2201
2202
|
"aliases": [],
|
|
2202
|
-
"args": {
|
|
2203
|
-
|
|
2203
|
+
"args": {
|
|
2204
|
+
"query": {
|
|
2205
|
+
"description": "Search query for documentation",
|
|
2206
|
+
"name": "query",
|
|
2207
|
+
"required": true
|
|
2208
|
+
}
|
|
2209
|
+
},
|
|
2210
|
+
"description": "Search Sanity docs",
|
|
2204
2211
|
"examples": [
|
|
2205
2212
|
{
|
|
2206
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2207
|
-
"description": "
|
|
2213
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2214
|
+
"description": "Search for documentation about schemas"
|
|
2208
2215
|
},
|
|
2209
2216
|
{
|
|
2210
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2211
|
-
"description": "
|
|
2217
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2218
|
+
"description": "Search with phrase"
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2222
|
+
"description": "Limit search results"
|
|
2212
2223
|
}
|
|
2213
2224
|
],
|
|
2214
2225
|
"flags": {
|
|
2215
|
-
"
|
|
2216
|
-
"
|
|
2217
|
-
"
|
|
2218
|
-
"
|
|
2219
|
-
"name": "project-id",
|
|
2226
|
+
"limit": {
|
|
2227
|
+
"description": "Maximum number of results to return",
|
|
2228
|
+
"name": "limit",
|
|
2229
|
+
"default": 10,
|
|
2220
2230
|
"hasDynamicHelp": false,
|
|
2221
|
-
"helpValue": "<id>",
|
|
2222
2231
|
"multiple": false,
|
|
2223
2232
|
"type": "option"
|
|
2224
2233
|
}
|
|
2225
2234
|
},
|
|
2226
2235
|
"hasDynamicHelp": false,
|
|
2227
2236
|
"hiddenAliases": [],
|
|
2228
|
-
"id": "
|
|
2237
|
+
"id": "docs:search",
|
|
2229
2238
|
"pluginAlias": "@sanity/cli",
|
|
2230
2239
|
"pluginName": "@sanity/cli",
|
|
2231
2240
|
"pluginType": "core",
|
|
@@ -2234,44 +2243,46 @@
|
|
|
2234
2243
|
"relativePath": [
|
|
2235
2244
|
"dist",
|
|
2236
2245
|
"commands",
|
|
2237
|
-
"
|
|
2238
|
-
"
|
|
2246
|
+
"docs",
|
|
2247
|
+
"search.js"
|
|
2239
2248
|
]
|
|
2240
2249
|
},
|
|
2241
|
-
"
|
|
2250
|
+
"documents:create": {
|
|
2242
2251
|
"aliases": [],
|
|
2243
|
-
"args": {
|
|
2244
|
-
|
|
2252
|
+
"args": {
|
|
2253
|
+
"file": {
|
|
2254
|
+
"description": "JSON file to create document(s) from",
|
|
2255
|
+
"name": "file",
|
|
2256
|
+
"required": false
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
"description": "Create one or more documents",
|
|
2245
2260
|
"examples": [
|
|
2246
2261
|
{
|
|
2247
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2248
|
-
"description": "
|
|
2249
|
-
},
|
|
2250
|
-
{
|
|
2251
|
-
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
2252
|
-
"description": "Undeploy API with ID \"ios\""
|
|
2262
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
2263
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
2253
2264
|
},
|
|
2254
2265
|
{
|
|
2255
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2256
|
-
"description": "
|
|
2266
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2267
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
2257
2268
|
},
|
|
2258
2269
|
{
|
|
2259
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2260
|
-
"description": "
|
|
2270
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
2271
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
2261
2272
|
},
|
|
2262
2273
|
{
|
|
2263
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2264
|
-
"description": "
|
|
2274
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
2275
|
+
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
2265
2276
|
},
|
|
2266
2277
|
{
|
|
2267
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123
|
|
2268
|
-
"description": "
|
|
2278
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
2279
|
+
"description": "Create documents in a specific project"
|
|
2269
2280
|
}
|
|
2270
2281
|
],
|
|
2271
2282
|
"flags": {
|
|
2272
2283
|
"project-id": {
|
|
2273
2284
|
"char": "p",
|
|
2274
|
-
"description": "Project ID to
|
|
2285
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
2275
2286
|
"helpGroup": "OVERRIDE",
|
|
2276
2287
|
"name": "project-id",
|
|
2277
2288
|
"hasDynamicHelp": false,
|
|
@@ -2279,60 +2290,53 @@
|
|
|
2279
2290
|
"multiple": false,
|
|
2280
2291
|
"type": "option"
|
|
2281
2292
|
},
|
|
2282
|
-
"
|
|
2283
|
-
"
|
|
2284
|
-
"
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
],
|
|
2288
|
-
"name": "api",
|
|
2289
|
-
"required": false,
|
|
2290
|
-
"hasDynamicHelp": false,
|
|
2291
|
-
"multiple": false,
|
|
2292
|
-
"type": "option"
|
|
2293
|
-
},
|
|
2294
|
-
"dataset": {
|
|
2295
|
-
"char": "d",
|
|
2296
|
-
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2297
|
-
"helpGroup": "OVERRIDE",
|
|
2298
|
-
"name": "dataset",
|
|
2299
|
-
"hasDynamicHelp": false,
|
|
2300
|
-
"helpValue": "<name>",
|
|
2301
|
-
"multiple": false,
|
|
2302
|
-
"type": "option"
|
|
2303
|
-
},
|
|
2304
|
-
"force": {
|
|
2305
|
-
"description": "Skip confirmation prompt",
|
|
2306
|
-
"name": "force",
|
|
2307
|
-
"required": false,
|
|
2308
|
-
"allowNo": false,
|
|
2309
|
-
"type": "boolean"
|
|
2310
|
-
},
|
|
2311
|
-
"project": {
|
|
2312
|
-
"deprecated": {
|
|
2313
|
-
"to": "project-id"
|
|
2314
|
-
},
|
|
2315
|
-
"description": "Project ID to delete GraphQL API for",
|
|
2316
|
-
"hidden": true,
|
|
2317
|
-
"name": "project",
|
|
2318
|
-
"required": false,
|
|
2293
|
+
"dataset": {
|
|
2294
|
+
"char": "d",
|
|
2295
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
2296
|
+
"helpGroup": "OVERRIDE",
|
|
2297
|
+
"name": "dataset",
|
|
2319
2298
|
"hasDynamicHelp": false,
|
|
2299
|
+
"helpValue": "<name>",
|
|
2320
2300
|
"multiple": false,
|
|
2321
2301
|
"type": "option"
|
|
2322
2302
|
},
|
|
2323
|
-
"
|
|
2324
|
-
"description": "
|
|
2325
|
-
"name": "
|
|
2326
|
-
"required": false,
|
|
2327
|
-
"default": "default",
|
|
2303
|
+
"id": {
|
|
2304
|
+
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
2305
|
+
"name": "id",
|
|
2328
2306
|
"hasDynamicHelp": false,
|
|
2329
2307
|
"multiple": false,
|
|
2330
2308
|
"type": "option"
|
|
2309
|
+
},
|
|
2310
|
+
"json5": {
|
|
2311
|
+
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
2312
|
+
"name": "json5",
|
|
2313
|
+
"allowNo": false,
|
|
2314
|
+
"type": "boolean"
|
|
2315
|
+
},
|
|
2316
|
+
"missing": {
|
|
2317
|
+
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
2318
|
+
"name": "missing",
|
|
2319
|
+
"allowNo": false,
|
|
2320
|
+
"type": "boolean"
|
|
2321
|
+
},
|
|
2322
|
+
"replace": {
|
|
2323
|
+
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
2324
|
+
"name": "replace",
|
|
2325
|
+
"allowNo": false,
|
|
2326
|
+
"type": "boolean"
|
|
2327
|
+
},
|
|
2328
|
+
"watch": {
|
|
2329
|
+
"description": "Write the documents whenever the target file or buffer changes",
|
|
2330
|
+
"name": "watch",
|
|
2331
|
+
"allowNo": false,
|
|
2332
|
+
"type": "boolean"
|
|
2331
2333
|
}
|
|
2332
2334
|
},
|
|
2333
2335
|
"hasDynamicHelp": false,
|
|
2334
|
-
"hiddenAliases": [
|
|
2335
|
-
|
|
2336
|
+
"hiddenAliases": [
|
|
2337
|
+
"document:create"
|
|
2338
|
+
],
|
|
2339
|
+
"id": "documents:create",
|
|
2336
2340
|
"pluginAlias": "@sanity/cli",
|
|
2337
2341
|
"pluginName": "@sanity/cli",
|
|
2338
2342
|
"pluginType": "core",
|
|
@@ -2341,90 +2345,147 @@
|
|
|
2341
2345
|
"relativePath": [
|
|
2342
2346
|
"dist",
|
|
2343
2347
|
"commands",
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2348
|
+
"documents",
|
|
2349
|
+
"create.js"
|
|
2346
2350
|
]
|
|
2347
2351
|
},
|
|
2348
|
-
"
|
|
2352
|
+
"documents:delete": {
|
|
2349
2353
|
"aliases": [],
|
|
2350
2354
|
"args": {
|
|
2351
|
-
"
|
|
2352
|
-
"description": "
|
|
2353
|
-
"name": "
|
|
2355
|
+
"id": {
|
|
2356
|
+
"description": "Document ID to delete",
|
|
2357
|
+
"name": "id",
|
|
2354
2358
|
"required": true
|
|
2359
|
+
},
|
|
2360
|
+
"ids": {
|
|
2361
|
+
"description": "Additional document IDs to delete",
|
|
2362
|
+
"name": "ids",
|
|
2363
|
+
"required": false
|
|
2355
2364
|
}
|
|
2356
2365
|
},
|
|
2357
|
-
"description": "
|
|
2366
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
2358
2367
|
"examples": [
|
|
2359
2368
|
{
|
|
2360
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2361
|
-
"description": "
|
|
2369
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
2370
|
+
"description": "Delete the document with the ID \"myDocId\""
|
|
2362
2371
|
},
|
|
2363
2372
|
{
|
|
2364
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2365
|
-
"description": "
|
|
2373
|
+
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
2374
|
+
"description": "ID wrapped in double or single quote works equally well"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
2378
|
+
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
2382
|
+
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
2386
|
+
"description": "Delete a document from a specific project"
|
|
2366
2387
|
}
|
|
2367
2388
|
],
|
|
2368
2389
|
"flags": {
|
|
2369
2390
|
"project-id": {
|
|
2370
2391
|
"char": "p",
|
|
2371
|
-
"description": "Project ID to
|
|
2392
|
+
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
2372
2393
|
"helpGroup": "OVERRIDE",
|
|
2373
2394
|
"name": "project-id",
|
|
2374
2395
|
"hasDynamicHelp": false,
|
|
2375
2396
|
"helpValue": "<id>",
|
|
2376
2397
|
"multiple": false,
|
|
2377
2398
|
"type": "option"
|
|
2399
|
+
},
|
|
2400
|
+
"dataset": {
|
|
2401
|
+
"char": "d",
|
|
2402
|
+
"description": "Dataset to delete from (overrides CLI configuration)",
|
|
2403
|
+
"helpGroup": "OVERRIDE",
|
|
2404
|
+
"name": "dataset",
|
|
2405
|
+
"hasDynamicHelp": false,
|
|
2406
|
+
"helpValue": "<name>",
|
|
2407
|
+
"multiple": false,
|
|
2408
|
+
"type": "option"
|
|
2378
2409
|
}
|
|
2379
2410
|
},
|
|
2380
2411
|
"hasDynamicHelp": false,
|
|
2381
2412
|
"hiddenAliases": [
|
|
2382
|
-
"
|
|
2413
|
+
"document:delete"
|
|
2383
2414
|
],
|
|
2384
|
-
"id": "
|
|
2415
|
+
"id": "documents:delete",
|
|
2385
2416
|
"pluginAlias": "@sanity/cli",
|
|
2386
2417
|
"pluginName": "@sanity/cli",
|
|
2387
2418
|
"pluginType": "core",
|
|
2388
|
-
"strict":
|
|
2419
|
+
"strict": false,
|
|
2389
2420
|
"isESM": true,
|
|
2390
2421
|
"relativePath": [
|
|
2391
2422
|
"dist",
|
|
2392
2423
|
"commands",
|
|
2393
|
-
"
|
|
2394
|
-
"
|
|
2424
|
+
"documents",
|
|
2425
|
+
"delete.js"
|
|
2395
2426
|
]
|
|
2396
2427
|
},
|
|
2397
|
-
"
|
|
2428
|
+
"documents:get": {
|
|
2398
2429
|
"aliases": [],
|
|
2399
|
-
"args": {
|
|
2400
|
-
|
|
2430
|
+
"args": {
|
|
2431
|
+
"documentId": {
|
|
2432
|
+
"description": "Document ID to retrieve",
|
|
2433
|
+
"name": "documentId",
|
|
2434
|
+
"required": true
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
"description": "Get and print a document by ID",
|
|
2401
2438
|
"examples": [
|
|
2402
2439
|
{
|
|
2403
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2404
|
-
"description": "
|
|
2440
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
2441
|
+
"description": "Get the document with ID \"myDocId\""
|
|
2405
2442
|
},
|
|
2406
2443
|
{
|
|
2407
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2408
|
-
"description": "
|
|
2444
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
|
|
2445
|
+
"description": "Get document with colorized JSON output"
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
2449
|
+
"description": "Get document from a specific dataset"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
2453
|
+
"description": "Get a document from a specific project"
|
|
2409
2454
|
}
|
|
2410
2455
|
],
|
|
2411
2456
|
"flags": {
|
|
2412
2457
|
"project-id": {
|
|
2413
2458
|
"char": "p",
|
|
2414
|
-
"description": "Project ID to
|
|
2459
|
+
"description": "Project ID to get document from (overrides CLI configuration)",
|
|
2415
2460
|
"helpGroup": "OVERRIDE",
|
|
2416
2461
|
"name": "project-id",
|
|
2417
2462
|
"hasDynamicHelp": false,
|
|
2418
2463
|
"helpValue": "<id>",
|
|
2419
2464
|
"multiple": false,
|
|
2420
2465
|
"type": "option"
|
|
2466
|
+
},
|
|
2467
|
+
"dataset": {
|
|
2468
|
+
"char": "d",
|
|
2469
|
+
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
2470
|
+
"helpGroup": "OVERRIDE",
|
|
2471
|
+
"name": "dataset",
|
|
2472
|
+
"hasDynamicHelp": false,
|
|
2473
|
+
"helpValue": "<name>",
|
|
2474
|
+
"multiple": false,
|
|
2475
|
+
"type": "option"
|
|
2476
|
+
},
|
|
2477
|
+
"pretty": {
|
|
2478
|
+
"description": "Colorize JSON output",
|
|
2479
|
+
"name": "pretty",
|
|
2480
|
+
"allowNo": false,
|
|
2481
|
+
"type": "boolean"
|
|
2421
2482
|
}
|
|
2422
2483
|
},
|
|
2423
2484
|
"hasDynamicHelp": false,
|
|
2424
2485
|
"hiddenAliases": [
|
|
2425
|
-
"
|
|
2486
|
+
"document:get"
|
|
2426
2487
|
],
|
|
2427
|
-
"id": "
|
|
2488
|
+
"id": "documents:get",
|
|
2428
2489
|
"pluginAlias": "@sanity/cli",
|
|
2429
2490
|
"pluginName": "@sanity/cli",
|
|
2430
2491
|
"pluginType": "core",
|
|
@@ -2433,51 +2494,96 @@
|
|
|
2433
2494
|
"relativePath": [
|
|
2434
2495
|
"dist",
|
|
2435
2496
|
"commands",
|
|
2436
|
-
"
|
|
2437
|
-
"
|
|
2497
|
+
"documents",
|
|
2498
|
+
"get.js"
|
|
2438
2499
|
]
|
|
2439
2500
|
},
|
|
2440
|
-
"
|
|
2501
|
+
"documents:query": {
|
|
2441
2502
|
"aliases": [],
|
|
2442
2503
|
"args": {
|
|
2443
|
-
"
|
|
2444
|
-
"description": "
|
|
2445
|
-
"name": "
|
|
2446
|
-
"required":
|
|
2504
|
+
"query": {
|
|
2505
|
+
"description": "GROQ query to run against the dataset",
|
|
2506
|
+
"name": "query",
|
|
2507
|
+
"required": true
|
|
2447
2508
|
}
|
|
2448
2509
|
},
|
|
2449
|
-
"description": "
|
|
2510
|
+
"description": "Query for documents",
|
|
2450
2511
|
"examples": [
|
|
2451
2512
|
{
|
|
2452
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2453
|
-
"description": "
|
|
2513
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
|
|
2514
|
+
"description": "Fetch 5 documents of type \"movie\""
|
|
2454
2515
|
},
|
|
2455
2516
|
{
|
|
2456
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2457
|
-
"description": "
|
|
2517
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
|
|
2518
|
+
"description": "Fetch title of the oldest movie in the dataset named \"staging\""
|
|
2458
2519
|
},
|
|
2459
2520
|
{
|
|
2460
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2461
|
-
"description": "
|
|
2521
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
|
|
2522
|
+
"description": "Use API version v2021-06-07 and do a query"
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project-id abc123 --dataset production",
|
|
2526
|
+
"description": "Query documents in a specific project and dataset"
|
|
2462
2527
|
}
|
|
2463
2528
|
],
|
|
2464
2529
|
"flags": {
|
|
2465
2530
|
"project-id": {
|
|
2466
2531
|
"char": "p",
|
|
2467
|
-
"description": "Project ID to
|
|
2532
|
+
"description": "Project ID to query (overrides CLI configuration)",
|
|
2468
2533
|
"helpGroup": "OVERRIDE",
|
|
2469
2534
|
"name": "project-id",
|
|
2470
2535
|
"hasDynamicHelp": false,
|
|
2471
2536
|
"helpValue": "<id>",
|
|
2472
2537
|
"multiple": false,
|
|
2473
2538
|
"type": "option"
|
|
2539
|
+
},
|
|
2540
|
+
"dataset": {
|
|
2541
|
+
"char": "d",
|
|
2542
|
+
"description": "Dataset to query (overrides CLI configuration)",
|
|
2543
|
+
"helpGroup": "OVERRIDE",
|
|
2544
|
+
"name": "dataset",
|
|
2545
|
+
"hasDynamicHelp": false,
|
|
2546
|
+
"helpValue": "<name>",
|
|
2547
|
+
"multiple": false,
|
|
2548
|
+
"type": "option"
|
|
2549
|
+
},
|
|
2550
|
+
"anonymous": {
|
|
2551
|
+
"description": "Send the query without any authorization token",
|
|
2552
|
+
"name": "anonymous",
|
|
2553
|
+
"allowNo": false,
|
|
2554
|
+
"type": "boolean"
|
|
2555
|
+
},
|
|
2556
|
+
"api-version": {
|
|
2557
|
+
"description": "API version to use (defaults to 2025-08-15)",
|
|
2558
|
+
"env": "SANITY_CLI_QUERY_API_VERSION",
|
|
2559
|
+
"name": "api-version",
|
|
2560
|
+
"hasDynamicHelp": false,
|
|
2561
|
+
"multiple": false,
|
|
2562
|
+
"type": "option"
|
|
2563
|
+
},
|
|
2564
|
+
"pretty": {
|
|
2565
|
+
"description": "Colorize JSON output",
|
|
2566
|
+
"name": "pretty",
|
|
2567
|
+
"allowNo": false,
|
|
2568
|
+
"type": "boolean"
|
|
2569
|
+
},
|
|
2570
|
+
"project": {
|
|
2571
|
+
"deprecated": {
|
|
2572
|
+
"to": "project-id"
|
|
2573
|
+
},
|
|
2574
|
+
"description": "Project ID to query",
|
|
2575
|
+
"hidden": true,
|
|
2576
|
+
"name": "project",
|
|
2577
|
+
"hasDynamicHelp": false,
|
|
2578
|
+
"multiple": false,
|
|
2579
|
+
"type": "option"
|
|
2474
2580
|
}
|
|
2475
2581
|
},
|
|
2476
2582
|
"hasDynamicHelp": false,
|
|
2477
2583
|
"hiddenAliases": [
|
|
2478
|
-
"
|
|
2584
|
+
"document:query"
|
|
2479
2585
|
],
|
|
2480
|
-
"id": "
|
|
2586
|
+
"id": "documents:query",
|
|
2481
2587
|
"pluginAlias": "@sanity/cli",
|
|
2482
2588
|
"pluginName": "@sanity/cli",
|
|
2483
2589
|
"pluginType": "core",
|
|
@@ -2486,41 +2592,118 @@
|
|
|
2486
2592
|
"relativePath": [
|
|
2487
2593
|
"dist",
|
|
2488
2594
|
"commands",
|
|
2489
|
-
"
|
|
2490
|
-
"
|
|
2595
|
+
"documents",
|
|
2596
|
+
"query.js"
|
|
2491
2597
|
]
|
|
2492
2598
|
},
|
|
2493
|
-
"
|
|
2599
|
+
"documents:validate": {
|
|
2494
2600
|
"aliases": [],
|
|
2495
2601
|
"args": {},
|
|
2496
|
-
"description": "
|
|
2602
|
+
"description": "Validate documents in a dataset against the studio schema",
|
|
2497
2603
|
"examples": [
|
|
2498
2604
|
{
|
|
2499
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2500
|
-
"description": "
|
|
2605
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
2606
|
+
"description": "Validates all documents in a Sanity project with more than one workspace"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
2610
|
+
"description": "Override the dataset specified in the workspace"
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
2614
|
+
"description": "Save the results of the report into a file"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
2618
|
+
"description": "Report out info level validation markers too"
|
|
2501
2619
|
},
|
|
2502
2620
|
{
|
|
2503
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2504
|
-
"description": "
|
|
2621
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2622
|
+
"description": "Validate documents in a specific project and dataset"
|
|
2505
2623
|
}
|
|
2506
2624
|
],
|
|
2507
2625
|
"flags": {
|
|
2508
2626
|
"project-id": {
|
|
2509
2627
|
"char": "p",
|
|
2510
|
-
"description": "
|
|
2511
|
-
"helpGroup": "OVERRIDE",
|
|
2628
|
+
"description": "Override the project ID used. By default, this is derived from the given workspace",
|
|
2512
2629
|
"name": "project-id",
|
|
2513
2630
|
"hasDynamicHelp": false,
|
|
2514
2631
|
"helpValue": "<id>",
|
|
2515
2632
|
"multiple": false,
|
|
2516
2633
|
"type": "option"
|
|
2634
|
+
},
|
|
2635
|
+
"dataset": {
|
|
2636
|
+
"char": "d",
|
|
2637
|
+
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
2638
|
+
"name": "dataset",
|
|
2639
|
+
"hasDynamicHelp": false,
|
|
2640
|
+
"helpValue": "<name>",
|
|
2641
|
+
"multiple": false,
|
|
2642
|
+
"type": "option"
|
|
2643
|
+
},
|
|
2644
|
+
"file": {
|
|
2645
|
+
"description": "Provide a path to either an .ndjson file or a tarball containing an .ndjson file",
|
|
2646
|
+
"name": "file",
|
|
2647
|
+
"hasDynamicHelp": false,
|
|
2648
|
+
"multiple": false,
|
|
2649
|
+
"type": "option"
|
|
2650
|
+
},
|
|
2651
|
+
"format": {
|
|
2652
|
+
"description": "The output format used to print the found validation markers and report progress",
|
|
2653
|
+
"name": "format",
|
|
2654
|
+
"hasDynamicHelp": false,
|
|
2655
|
+
"multiple": false,
|
|
2656
|
+
"type": "option"
|
|
2657
|
+
},
|
|
2658
|
+
"level": {
|
|
2659
|
+
"description": "The minimum level reported. Defaults to warning",
|
|
2660
|
+
"name": "level",
|
|
2661
|
+
"default": "warning",
|
|
2662
|
+
"hasDynamicHelp": false,
|
|
2663
|
+
"multiple": false,
|
|
2664
|
+
"options": [
|
|
2665
|
+
"error",
|
|
2666
|
+
"warning",
|
|
2667
|
+
"info"
|
|
2668
|
+
],
|
|
2669
|
+
"type": "option"
|
|
2670
|
+
},
|
|
2671
|
+
"max-custom-validation-concurrency": {
|
|
2672
|
+
"description": "Specify how many custom validators can run concurrently",
|
|
2673
|
+
"name": "max-custom-validation-concurrency",
|
|
2674
|
+
"default": 5,
|
|
2675
|
+
"hasDynamicHelp": false,
|
|
2676
|
+
"multiple": false,
|
|
2677
|
+
"type": "option"
|
|
2678
|
+
},
|
|
2679
|
+
"max-fetch-concurrency": {
|
|
2680
|
+
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
2681
|
+
"name": "max-fetch-concurrency",
|
|
2682
|
+
"default": 25,
|
|
2683
|
+
"hasDynamicHelp": false,
|
|
2684
|
+
"multiple": false,
|
|
2685
|
+
"type": "option"
|
|
2686
|
+
},
|
|
2687
|
+
"workspace": {
|
|
2688
|
+
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
2689
|
+
"name": "workspace",
|
|
2690
|
+
"hasDynamicHelp": false,
|
|
2691
|
+
"multiple": false,
|
|
2692
|
+
"type": "option"
|
|
2693
|
+
},
|
|
2694
|
+
"yes": {
|
|
2695
|
+
"char": "y",
|
|
2696
|
+
"description": "Skips the first confirmation prompt",
|
|
2697
|
+
"name": "yes",
|
|
2698
|
+
"allowNo": false,
|
|
2699
|
+
"type": "boolean"
|
|
2517
2700
|
}
|
|
2518
2701
|
},
|
|
2519
2702
|
"hasDynamicHelp": false,
|
|
2520
2703
|
"hiddenAliases": [
|
|
2521
|
-
"
|
|
2704
|
+
"document:validate"
|
|
2522
2705
|
],
|
|
2523
|
-
"id": "
|
|
2706
|
+
"id": "documents:validate",
|
|
2524
2707
|
"pluginAlias": "@sanity/cli",
|
|
2525
2708
|
"pluginName": "@sanity/cli",
|
|
2526
2709
|
"pluginType": "core",
|
|
@@ -2529,58 +2712,102 @@
|
|
|
2529
2712
|
"relativePath": [
|
|
2530
2713
|
"dist",
|
|
2531
2714
|
"commands",
|
|
2532
|
-
"
|
|
2533
|
-
"
|
|
2715
|
+
"documents",
|
|
2716
|
+
"validate.js"
|
|
2534
2717
|
]
|
|
2535
2718
|
},
|
|
2536
|
-
"
|
|
2719
|
+
"graphql:deploy": {
|
|
2537
2720
|
"aliases": [],
|
|
2538
|
-
"args": {
|
|
2539
|
-
|
|
2540
|
-
"description": "Name of the webhook to show logs for",
|
|
2541
|
-
"name": "name",
|
|
2542
|
-
"required": false
|
|
2543
|
-
}
|
|
2544
|
-
},
|
|
2545
|
-
"description": "Show log entries for project webhooks",
|
|
2721
|
+
"args": {},
|
|
2722
|
+
"description": "Deploy a GraphQL API from the current Sanity schema",
|
|
2546
2723
|
"examples": [
|
|
2547
2724
|
{
|
|
2548
2725
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2549
|
-
"description": "
|
|
2726
|
+
"description": "Deploy all defined GraphQL APIs"
|
|
2550
2727
|
},
|
|
2551
2728
|
{
|
|
2552
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2553
|
-
"description": "
|
|
2729
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
2730
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
|
|
2554
2731
|
},
|
|
2555
2732
|
{
|
|
2556
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2557
|
-
"description": "
|
|
2733
|
+
"command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
|
|
2734
|
+
"description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"command": "<%= config.bin %> <%= command.id %> --playground",
|
|
2738
|
+
"description": "Deploy all defined GraphQL APIs, overriding any playground setting"
|
|
2558
2739
|
}
|
|
2559
2740
|
],
|
|
2560
2741
|
"flags": {
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2564
|
-
"helpGroup": "OVERRIDE",
|
|
2565
|
-
"name": "project-id",
|
|
2742
|
+
"api": {
|
|
2743
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
2744
|
+
"name": "api",
|
|
2566
2745
|
"hasDynamicHelp": false,
|
|
2567
|
-
"
|
|
2746
|
+
"multiple": true,
|
|
2747
|
+
"type": "option"
|
|
2748
|
+
},
|
|
2749
|
+
"dataset": {
|
|
2750
|
+
"char": "d",
|
|
2751
|
+
"description": "Deploy API for the given dataset",
|
|
2752
|
+
"name": "dataset",
|
|
2753
|
+
"hasDynamicHelp": false,
|
|
2754
|
+
"helpValue": "<name>",
|
|
2568
2755
|
"multiple": false,
|
|
2569
2756
|
"type": "option"
|
|
2570
2757
|
},
|
|
2571
|
-
"
|
|
2572
|
-
"description": "
|
|
2573
|
-
"name": "
|
|
2574
|
-
"
|
|
2758
|
+
"dry-run": {
|
|
2759
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
2760
|
+
"name": "dry-run",
|
|
2761
|
+
"allowNo": false,
|
|
2762
|
+
"type": "boolean"
|
|
2763
|
+
},
|
|
2764
|
+
"force": {
|
|
2765
|
+
"description": "Deploy API without confirming breaking changes",
|
|
2766
|
+
"name": "force",
|
|
2767
|
+
"allowNo": false,
|
|
2768
|
+
"type": "boolean"
|
|
2769
|
+
},
|
|
2770
|
+
"generation": {
|
|
2771
|
+
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
2772
|
+
"name": "generation",
|
|
2773
|
+
"hasDynamicHelp": false,
|
|
2774
|
+
"multiple": false,
|
|
2775
|
+
"options": [
|
|
2776
|
+
"gen1",
|
|
2777
|
+
"gen2",
|
|
2778
|
+
"gen3"
|
|
2779
|
+
],
|
|
2780
|
+
"type": "option"
|
|
2781
|
+
},
|
|
2782
|
+
"non-null-document-fields": {
|
|
2783
|
+
"description": "Use non-null document fields (_id, _type etc)",
|
|
2784
|
+
"name": "non-null-document-fields",
|
|
2785
|
+
"allowNo": false,
|
|
2786
|
+
"type": "boolean"
|
|
2787
|
+
},
|
|
2788
|
+
"playground": {
|
|
2789
|
+
"description": "Enable GraphQL playground for easier debugging",
|
|
2790
|
+
"name": "playground",
|
|
2791
|
+
"allowNo": true,
|
|
2792
|
+
"type": "boolean"
|
|
2793
|
+
},
|
|
2794
|
+
"tag": {
|
|
2795
|
+
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
2796
|
+
"name": "tag",
|
|
2797
|
+
"hasDynamicHelp": false,
|
|
2798
|
+
"multiple": false,
|
|
2799
|
+
"type": "option"
|
|
2800
|
+
},
|
|
2801
|
+
"with-union-cache": {
|
|
2802
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2803
|
+
"name": "with-union-cache",
|
|
2575
2804
|
"allowNo": false,
|
|
2576
2805
|
"type": "boolean"
|
|
2577
2806
|
}
|
|
2578
2807
|
},
|
|
2579
2808
|
"hasDynamicHelp": false,
|
|
2580
|
-
"hiddenAliases": [
|
|
2581
|
-
|
|
2582
|
-
],
|
|
2583
|
-
"id": "hooks:logs",
|
|
2809
|
+
"hiddenAliases": [],
|
|
2810
|
+
"id": "graphql:deploy",
|
|
2584
2811
|
"pluginAlias": "@sanity/cli",
|
|
2585
2812
|
"pluginName": "@sanity/cli",
|
|
2586
2813
|
"pluginType": "core",
|
|
@@ -2589,37 +2816,39 @@
|
|
|
2589
2816
|
"relativePath": [
|
|
2590
2817
|
"dist",
|
|
2591
2818
|
"commands",
|
|
2592
|
-
"
|
|
2593
|
-
"
|
|
2819
|
+
"graphql",
|
|
2820
|
+
"deploy.js"
|
|
2594
2821
|
]
|
|
2595
2822
|
},
|
|
2596
|
-
"
|
|
2823
|
+
"graphql:list": {
|
|
2597
2824
|
"aliases": [],
|
|
2598
2825
|
"args": {},
|
|
2599
|
-
"description": "
|
|
2826
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
2600
2827
|
"examples": [
|
|
2601
2828
|
{
|
|
2602
2829
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2603
|
-
"description": "
|
|
2830
|
+
"description": "List GraphQL endpoints for the project"
|
|
2604
2831
|
},
|
|
2605
2832
|
{
|
|
2606
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2607
|
-
"description": "
|
|
2833
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2834
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
2608
2835
|
}
|
|
2609
2836
|
],
|
|
2610
2837
|
"flags": {
|
|
2611
|
-
"
|
|
2612
|
-
"
|
|
2613
|
-
"
|
|
2614
|
-
"
|
|
2838
|
+
"project-id": {
|
|
2839
|
+
"char": "p",
|
|
2840
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
2841
|
+
"helpGroup": "OVERRIDE",
|
|
2842
|
+
"name": "project-id",
|
|
2615
2843
|
"hasDynamicHelp": false,
|
|
2844
|
+
"helpValue": "<id>",
|
|
2616
2845
|
"multiple": false,
|
|
2617
2846
|
"type": "option"
|
|
2618
2847
|
}
|
|
2619
2848
|
},
|
|
2620
2849
|
"hasDynamicHelp": false,
|
|
2621
2850
|
"hiddenAliases": [],
|
|
2622
|
-
"id": "
|
|
2851
|
+
"id": "graphql:list",
|
|
2623
2852
|
"pluginAlias": "@sanity/cli",
|
|
2624
2853
|
"pluginName": "@sanity/cli",
|
|
2625
2854
|
"pluginType": "core",
|
|
@@ -2628,67 +2857,44 @@
|
|
|
2628
2857
|
"relativePath": [
|
|
2629
2858
|
"dist",
|
|
2630
2859
|
"commands",
|
|
2631
|
-
"
|
|
2632
|
-
"
|
|
2860
|
+
"graphql",
|
|
2861
|
+
"list.js"
|
|
2633
2862
|
]
|
|
2634
2863
|
},
|
|
2635
|
-
"
|
|
2864
|
+
"graphql:undeploy": {
|
|
2636
2865
|
"aliases": [],
|
|
2637
|
-
"args": {
|
|
2638
|
-
|
|
2639
|
-
"description": "Name of the dataset to copy from",
|
|
2640
|
-
"name": "source",
|
|
2641
|
-
"required": false
|
|
2642
|
-
},
|
|
2643
|
-
"target": {
|
|
2644
|
-
"description": "Name of the dataset to copy to",
|
|
2645
|
-
"name": "target",
|
|
2646
|
-
"required": false
|
|
2647
|
-
}
|
|
2648
|
-
},
|
|
2649
|
-
"description": "Copy a dataset or manage copy jobs",
|
|
2866
|
+
"args": {},
|
|
2867
|
+
"description": "Remove a deployed GraphQL API",
|
|
2650
2868
|
"examples": [
|
|
2651
2869
|
{
|
|
2652
2870
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2653
|
-
"description": "
|
|
2654
|
-
},
|
|
2655
|
-
{
|
|
2656
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2657
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2661
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2665
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2871
|
+
"description": "Undeploy GraphQL API for current project and dataset"
|
|
2666
2872
|
},
|
|
2667
2873
|
{
|
|
2668
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2669
|
-
"description": "
|
|
2874
|
+
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
2875
|
+
"description": "Undeploy API with ID \"ios\""
|
|
2670
2876
|
},
|
|
2671
2877
|
{
|
|
2672
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2673
|
-
"description": "
|
|
2878
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
2879
|
+
"description": "Undeploy GraphQL API for staging dataset"
|
|
2674
2880
|
},
|
|
2675
2881
|
{
|
|
2676
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2677
|
-
"description": "
|
|
2882
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
2883
|
+
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
2678
2884
|
},
|
|
2679
2885
|
{
|
|
2680
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2681
|
-
"description": "
|
|
2886
|
+
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
2887
|
+
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
2682
2888
|
},
|
|
2683
2889
|
{
|
|
2684
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2685
|
-
"description": "
|
|
2890
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2891
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
2686
2892
|
}
|
|
2687
2893
|
],
|
|
2688
2894
|
"flags": {
|
|
2689
2895
|
"project-id": {
|
|
2690
2896
|
"char": "p",
|
|
2691
|
-
"description": "Project ID to
|
|
2897
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2692
2898
|
"helpGroup": "OVERRIDE",
|
|
2693
2899
|
"name": "project-id",
|
|
2694
2900
|
"hasDynamicHelp": false,
|
|
@@ -2696,92 +2902,60 @@
|
|
|
2696
2902
|
"multiple": false,
|
|
2697
2903
|
"type": "option"
|
|
2698
2904
|
},
|
|
2699
|
-
"
|
|
2700
|
-
"description": "
|
|
2905
|
+
"api": {
|
|
2906
|
+
"description": "Undeploy API with this ID",
|
|
2701
2907
|
"exclusive": [
|
|
2702
|
-
"
|
|
2703
|
-
"
|
|
2704
|
-
"skip-history"
|
|
2908
|
+
"project-id",
|
|
2909
|
+
"project"
|
|
2705
2910
|
],
|
|
2706
|
-
"name": "
|
|
2911
|
+
"name": "api",
|
|
2707
2912
|
"required": false,
|
|
2708
2913
|
"hasDynamicHelp": false,
|
|
2709
2914
|
"multiple": false,
|
|
2710
2915
|
"type": "option"
|
|
2711
2916
|
},
|
|
2712
|
-
"
|
|
2713
|
-
"
|
|
2714
|
-
"
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
],
|
|
2718
|
-
"name": "detach",
|
|
2719
|
-
"required": false,
|
|
2720
|
-
"allowNo": false,
|
|
2721
|
-
"type": "boolean"
|
|
2722
|
-
},
|
|
2723
|
-
"limit": {
|
|
2724
|
-
"dependsOn": [
|
|
2725
|
-
"list"
|
|
2726
|
-
],
|
|
2727
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2728
|
-
"name": "limit",
|
|
2729
|
-
"required": false,
|
|
2917
|
+
"dataset": {
|
|
2918
|
+
"char": "d",
|
|
2919
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2920
|
+
"helpGroup": "OVERRIDE",
|
|
2921
|
+
"name": "dataset",
|
|
2730
2922
|
"hasDynamicHelp": false,
|
|
2923
|
+
"helpValue": "<name>",
|
|
2731
2924
|
"multiple": false,
|
|
2732
2925
|
"type": "option"
|
|
2733
2926
|
},
|
|
2734
|
-
"
|
|
2735
|
-
"description": "
|
|
2736
|
-
"
|
|
2737
|
-
"attach",
|
|
2738
|
-
"detach",
|
|
2739
|
-
"skip-history"
|
|
2740
|
-
],
|
|
2741
|
-
"name": "list",
|
|
2927
|
+
"force": {
|
|
2928
|
+
"description": "Skip confirmation prompt",
|
|
2929
|
+
"name": "force",
|
|
2742
2930
|
"required": false,
|
|
2743
2931
|
"allowNo": false,
|
|
2744
2932
|
"type": "boolean"
|
|
2745
2933
|
},
|
|
2746
|
-
"
|
|
2747
|
-
"
|
|
2748
|
-
"
|
|
2749
|
-
|
|
2750
|
-
"description": "
|
|
2751
|
-
"
|
|
2934
|
+
"project": {
|
|
2935
|
+
"deprecated": {
|
|
2936
|
+
"to": "project-id"
|
|
2937
|
+
},
|
|
2938
|
+
"description": "Project ID to delete GraphQL API for",
|
|
2939
|
+
"hidden": true,
|
|
2940
|
+
"name": "project",
|
|
2752
2941
|
"required": false,
|
|
2753
2942
|
"hasDynamicHelp": false,
|
|
2754
2943
|
"multiple": false,
|
|
2755
2944
|
"type": "option"
|
|
2756
2945
|
},
|
|
2757
|
-
"
|
|
2758
|
-
"description": "
|
|
2759
|
-
"
|
|
2760
|
-
"list",
|
|
2761
|
-
"attach"
|
|
2762
|
-
],
|
|
2763
|
-
"name": "skip-content-releases",
|
|
2764
|
-
"required": false,
|
|
2765
|
-
"allowNo": false,
|
|
2766
|
-
"type": "boolean"
|
|
2767
|
-
},
|
|
2768
|
-
"skip-history": {
|
|
2769
|
-
"description": "Don't preserve document history on copy",
|
|
2770
|
-
"exclusive": [
|
|
2771
|
-
"list",
|
|
2772
|
-
"attach"
|
|
2773
|
-
],
|
|
2774
|
-
"name": "skip-history",
|
|
2946
|
+
"tag": {
|
|
2947
|
+
"description": "Tag to undeploy GraphQL API from",
|
|
2948
|
+
"name": "tag",
|
|
2775
2949
|
"required": false,
|
|
2776
|
-
"
|
|
2777
|
-
"
|
|
2950
|
+
"default": "default",
|
|
2951
|
+
"hasDynamicHelp": false,
|
|
2952
|
+
"multiple": false,
|
|
2953
|
+
"type": "option"
|
|
2778
2954
|
}
|
|
2779
2955
|
},
|
|
2780
2956
|
"hasDynamicHelp": false,
|
|
2781
|
-
"hiddenAliases": [
|
|
2782
|
-
|
|
2783
|
-
],
|
|
2784
|
-
"id": "datasets:copy",
|
|
2957
|
+
"hiddenAliases": [],
|
|
2958
|
+
"id": "graphql:undeploy",
|
|
2785
2959
|
"pluginAlias": "@sanity/cli",
|
|
2786
2960
|
"pluginName": "@sanity/cli",
|
|
2787
2961
|
"pluginType": "core",
|
|
@@ -2790,80 +2964,90 @@
|
|
|
2790
2964
|
"relativePath": [
|
|
2791
2965
|
"dist",
|
|
2792
2966
|
"commands",
|
|
2793
|
-
"
|
|
2794
|
-
"
|
|
2967
|
+
"graphql",
|
|
2968
|
+
"undeploy.js"
|
|
2795
2969
|
]
|
|
2796
2970
|
},
|
|
2797
|
-
"
|
|
2971
|
+
"hooks:attempt": {
|
|
2798
2972
|
"aliases": [],
|
|
2799
2973
|
"args": {
|
|
2800
|
-
"
|
|
2801
|
-
"description": "
|
|
2802
|
-
"name": "
|
|
2803
|
-
"required":
|
|
2974
|
+
"attemptId": {
|
|
2975
|
+
"description": "The delivery attempt ID to get details for",
|
|
2976
|
+
"name": "attemptId",
|
|
2977
|
+
"required": true
|
|
2804
2978
|
}
|
|
2805
2979
|
},
|
|
2806
|
-
"description": "
|
|
2980
|
+
"description": "Print details of a given webhook delivery attempt",
|
|
2807
2981
|
"examples": [
|
|
2808
2982
|
{
|
|
2809
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2810
|
-
"description": "
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2814
|
-
"description": "Create a dataset named \"my-dataset\""
|
|
2983
|
+
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2984
|
+
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2815
2985
|
},
|
|
2816
2986
|
{
|
|
2817
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2818
|
-
"description": "
|
|
2987
|
+
"command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
|
|
2988
|
+
"description": "Get attempt details for a specific project"
|
|
2819
2989
|
}
|
|
2820
2990
|
],
|
|
2821
2991
|
"flags": {
|
|
2822
2992
|
"project-id": {
|
|
2823
2993
|
"char": "p",
|
|
2824
|
-
"description": "Project ID to
|
|
2994
|
+
"description": "Project ID to view webhook attempt for (overrides CLI configuration)",
|
|
2825
2995
|
"helpGroup": "OVERRIDE",
|
|
2826
2996
|
"name": "project-id",
|
|
2827
2997
|
"hasDynamicHelp": false,
|
|
2828
2998
|
"helpValue": "<id>",
|
|
2829
2999
|
"multiple": false,
|
|
2830
3000
|
"type": "option"
|
|
3001
|
+
}
|
|
3002
|
+
},
|
|
3003
|
+
"hasDynamicHelp": false,
|
|
3004
|
+
"hiddenAliases": [
|
|
3005
|
+
"hook:attempt"
|
|
3006
|
+
],
|
|
3007
|
+
"id": "hooks:attempt",
|
|
3008
|
+
"pluginAlias": "@sanity/cli",
|
|
3009
|
+
"pluginName": "@sanity/cli",
|
|
3010
|
+
"pluginType": "core",
|
|
3011
|
+
"strict": true,
|
|
3012
|
+
"isESM": true,
|
|
3013
|
+
"relativePath": [
|
|
3014
|
+
"dist",
|
|
3015
|
+
"commands",
|
|
3016
|
+
"hooks",
|
|
3017
|
+
"attempt.js"
|
|
3018
|
+
]
|
|
3019
|
+
},
|
|
3020
|
+
"hooks:create": {
|
|
3021
|
+
"aliases": [],
|
|
3022
|
+
"args": {},
|
|
3023
|
+
"description": "Create a new webhook for the project",
|
|
3024
|
+
"examples": [
|
|
3025
|
+
{
|
|
3026
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3027
|
+
"description": "Create a new webhook for the project"
|
|
2831
3028
|
},
|
|
2832
|
-
|
|
2833
|
-
"
|
|
2834
|
-
"
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
"
|
|
2839
|
-
"
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
"
|
|
2843
|
-
"name": "embeddings-projection",
|
|
2844
|
-
"hasDynamicHelp": false,
|
|
2845
|
-
"multiple": false,
|
|
2846
|
-
"type": "option"
|
|
2847
|
-
},
|
|
2848
|
-
"visibility": {
|
|
2849
|
-
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2850
|
-
"name": "visibility",
|
|
2851
|
-
"required": false,
|
|
3029
|
+
{
|
|
3030
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3031
|
+
"description": "Create a webhook for a specific project"
|
|
3032
|
+
}
|
|
3033
|
+
],
|
|
3034
|
+
"flags": {
|
|
3035
|
+
"project-id": {
|
|
3036
|
+
"char": "p",
|
|
3037
|
+
"description": "Project ID to create webhook for (overrides CLI configuration)",
|
|
3038
|
+
"helpGroup": "OVERRIDE",
|
|
3039
|
+
"name": "project-id",
|
|
2852
3040
|
"hasDynamicHelp": false,
|
|
3041
|
+
"helpValue": "<id>",
|
|
2853
3042
|
"multiple": false,
|
|
2854
|
-
"options": [
|
|
2855
|
-
"custom",
|
|
2856
|
-
"private",
|
|
2857
|
-
"public"
|
|
2858
|
-
],
|
|
2859
3043
|
"type": "option"
|
|
2860
3044
|
}
|
|
2861
3045
|
},
|
|
2862
3046
|
"hasDynamicHelp": false,
|
|
2863
3047
|
"hiddenAliases": [
|
|
2864
|
-
"
|
|
3048
|
+
"hook:create"
|
|
2865
3049
|
],
|
|
2866
|
-
"id": "
|
|
3050
|
+
"id": "hooks:create",
|
|
2867
3051
|
"pluginAlias": "@sanity/cli",
|
|
2868
3052
|
"pluginName": "@sanity/cli",
|
|
2869
3053
|
"pluginType": "core",
|
|
@@ -2872,54 +3056,51 @@
|
|
|
2872
3056
|
"relativePath": [
|
|
2873
3057
|
"dist",
|
|
2874
3058
|
"commands",
|
|
2875
|
-
"
|
|
3059
|
+
"hooks",
|
|
2876
3060
|
"create.js"
|
|
2877
3061
|
]
|
|
2878
3062
|
},
|
|
2879
|
-
"
|
|
3063
|
+
"hooks:delete": {
|
|
2880
3064
|
"aliases": [],
|
|
2881
3065
|
"args": {
|
|
2882
|
-
"
|
|
2883
|
-
"description": "
|
|
2884
|
-
"name": "
|
|
2885
|
-
"required":
|
|
3066
|
+
"name": {
|
|
3067
|
+
"description": "Name of webhook to delete (will prompt if not provided)",
|
|
3068
|
+
"name": "name",
|
|
3069
|
+
"required": false
|
|
2886
3070
|
}
|
|
2887
3071
|
},
|
|
2888
|
-
"description": "Delete a
|
|
3072
|
+
"description": "Delete a webhook from the project",
|
|
2889
3073
|
"examples": [
|
|
2890
3074
|
{
|
|
2891
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2892
|
-
"description": "
|
|
3075
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3076
|
+
"description": "Interactively select and delete a webhook"
|
|
2893
3077
|
},
|
|
2894
3078
|
{
|
|
2895
|
-
"command": "<%= config.bin %> <%= command.id %> my-
|
|
2896
|
-
"description": "Delete a specific
|
|
3079
|
+
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
3080
|
+
"description": "Delete a specific webhook by name"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3084
|
+
"description": "Delete a webhook from a specific project"
|
|
2897
3085
|
}
|
|
2898
3086
|
],
|
|
2899
3087
|
"flags": {
|
|
2900
3088
|
"project-id": {
|
|
2901
3089
|
"char": "p",
|
|
2902
|
-
"description": "Project ID to delete
|
|
3090
|
+
"description": "Project ID to delete webhook from (overrides CLI configuration)",
|
|
2903
3091
|
"helpGroup": "OVERRIDE",
|
|
2904
3092
|
"name": "project-id",
|
|
2905
3093
|
"hasDynamicHelp": false,
|
|
2906
3094
|
"helpValue": "<id>",
|
|
2907
3095
|
"multiple": false,
|
|
2908
3096
|
"type": "option"
|
|
2909
|
-
},
|
|
2910
|
-
"force": {
|
|
2911
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2912
|
-
"name": "force",
|
|
2913
|
-
"required": false,
|
|
2914
|
-
"allowNo": false,
|
|
2915
|
-
"type": "boolean"
|
|
2916
3097
|
}
|
|
2917
3098
|
},
|
|
2918
3099
|
"hasDynamicHelp": false,
|
|
2919
3100
|
"hiddenAliases": [
|
|
2920
|
-
"
|
|
3101
|
+
"hook:delete"
|
|
2921
3102
|
],
|
|
2922
|
-
"id": "
|
|
3103
|
+
"id": "hooks:delete",
|
|
2923
3104
|
"pluginAlias": "@sanity/cli",
|
|
2924
3105
|
"pluginName": "@sanity/cli",
|
|
2925
3106
|
"pluginType": "core",
|
|
@@ -2928,125 +3109,41 @@
|
|
|
2928
3109
|
"relativePath": [
|
|
2929
3110
|
"dist",
|
|
2930
3111
|
"commands",
|
|
2931
|
-
"
|
|
3112
|
+
"hooks",
|
|
2932
3113
|
"delete.js"
|
|
2933
3114
|
]
|
|
2934
3115
|
},
|
|
2935
|
-
"
|
|
3116
|
+
"hooks:list": {
|
|
2936
3117
|
"aliases": [],
|
|
2937
|
-
"args": {
|
|
2938
|
-
|
|
2939
|
-
"description": "Name of the dataset to export",
|
|
2940
|
-
"name": "name"
|
|
2941
|
-
},
|
|
2942
|
-
"destination": {
|
|
2943
|
-
"description": "Output destination file path",
|
|
2944
|
-
"name": "destination"
|
|
2945
|
-
}
|
|
2946
|
-
},
|
|
2947
|
-
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
3118
|
+
"args": {},
|
|
3119
|
+
"description": "List webhooks for the project",
|
|
2948
3120
|
"examples": [
|
|
2949
3121
|
{
|
|
2950
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2951
|
-
"description": "
|
|
2952
|
-
},
|
|
2953
|
-
{
|
|
2954
|
-
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
2955
|
-
"description": "Export dataset without assets"
|
|
2956
|
-
},
|
|
2957
|
-
{
|
|
2958
|
-
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
2959
|
-
"description": "Export raw documents without asset reference rewriting"
|
|
2960
|
-
},
|
|
2961
|
-
{
|
|
2962
|
-
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
2963
|
-
"description": "Export specific document types"
|
|
3122
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3123
|
+
"description": "List webhooks for the project"
|
|
2964
3124
|
},
|
|
2965
3125
|
{
|
|
2966
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2967
|
-
"description": "
|
|
3126
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3127
|
+
"description": "List webhooks for a specific project"
|
|
2968
3128
|
}
|
|
2969
3129
|
],
|
|
2970
3130
|
"flags": {
|
|
2971
3131
|
"project-id": {
|
|
2972
3132
|
"char": "p",
|
|
2973
|
-
"description": "Project ID to
|
|
3133
|
+
"description": "Project ID to list webhooks for (overrides CLI configuration)",
|
|
2974
3134
|
"helpGroup": "OVERRIDE",
|
|
2975
3135
|
"name": "project-id",
|
|
2976
3136
|
"hasDynamicHelp": false,
|
|
2977
3137
|
"helpValue": "<id>",
|
|
2978
3138
|
"multiple": false,
|
|
2979
3139
|
"type": "option"
|
|
2980
|
-
},
|
|
2981
|
-
"asset-concurrency": {
|
|
2982
|
-
"description": "Concurrent number of asset downloads",
|
|
2983
|
-
"name": "asset-concurrency",
|
|
2984
|
-
"default": 8,
|
|
2985
|
-
"hasDynamicHelp": false,
|
|
2986
|
-
"multiple": false,
|
|
2987
|
-
"type": "option"
|
|
2988
|
-
},
|
|
2989
|
-
"mode": {
|
|
2990
|
-
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
2991
|
-
"name": "mode",
|
|
2992
|
-
"default": "stream",
|
|
2993
|
-
"hasDynamicHelp": false,
|
|
2994
|
-
"multiple": false,
|
|
2995
|
-
"options": [
|
|
2996
|
-
"stream",
|
|
2997
|
-
"cursor"
|
|
2998
|
-
],
|
|
2999
|
-
"type": "option"
|
|
3000
|
-
},
|
|
3001
|
-
"no-assets": {
|
|
3002
|
-
"description": "Export only non-asset documents and remove references to image assets",
|
|
3003
|
-
"name": "no-assets",
|
|
3004
|
-
"allowNo": false,
|
|
3005
|
-
"type": "boolean"
|
|
3006
|
-
},
|
|
3007
|
-
"no-compress": {
|
|
3008
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
3009
|
-
"name": "no-compress",
|
|
3010
|
-
"allowNo": false,
|
|
3011
|
-
"type": "boolean"
|
|
3012
|
-
},
|
|
3013
|
-
"no-drafts": {
|
|
3014
|
-
"description": "Export only published versions of documents",
|
|
3015
|
-
"name": "no-drafts",
|
|
3016
|
-
"allowNo": false,
|
|
3017
|
-
"type": "boolean"
|
|
3018
|
-
},
|
|
3019
|
-
"no-strict-asset-verification": {
|
|
3020
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
3021
|
-
"name": "no-strict-asset-verification",
|
|
3022
|
-
"allowNo": false,
|
|
3023
|
-
"type": "boolean"
|
|
3024
|
-
},
|
|
3025
|
-
"overwrite": {
|
|
3026
|
-
"description": "Overwrite any file with the same name",
|
|
3027
|
-
"name": "overwrite",
|
|
3028
|
-
"allowNo": false,
|
|
3029
|
-
"type": "boolean"
|
|
3030
|
-
},
|
|
3031
|
-
"raw": {
|
|
3032
|
-
"description": "Extract only documents, without rewriting asset references",
|
|
3033
|
-
"name": "raw",
|
|
3034
|
-
"allowNo": false,
|
|
3035
|
-
"type": "boolean"
|
|
3036
|
-
},
|
|
3037
|
-
"types": {
|
|
3038
|
-
"description": "Defines which document types to export (comma-separated)",
|
|
3039
|
-
"name": "types",
|
|
3040
|
-
"hasDynamicHelp": false,
|
|
3041
|
-
"multiple": false,
|
|
3042
|
-
"type": "option"
|
|
3043
3140
|
}
|
|
3044
3141
|
},
|
|
3045
3142
|
"hasDynamicHelp": false,
|
|
3046
3143
|
"hiddenAliases": [
|
|
3047
|
-
"
|
|
3144
|
+
"hook:list"
|
|
3048
3145
|
],
|
|
3049
|
-
"id": "
|
|
3146
|
+
"id": "hooks:list",
|
|
3050
3147
|
"pluginAlias": "@sanity/cli",
|
|
3051
3148
|
"pluginName": "@sanity/cli",
|
|
3052
3149
|
"pluginType": "core",
|
|
@@ -3055,96 +3152,38 @@
|
|
|
3055
3152
|
"relativePath": [
|
|
3056
3153
|
"dist",
|
|
3057
3154
|
"commands",
|
|
3058
|
-
"
|
|
3059
|
-
"
|
|
3155
|
+
"hooks",
|
|
3156
|
+
"list.js"
|
|
3060
3157
|
]
|
|
3061
3158
|
},
|
|
3062
|
-
"
|
|
3159
|
+
"hooks:logs": {
|
|
3063
3160
|
"aliases": [],
|
|
3064
3161
|
"args": {
|
|
3065
|
-
"
|
|
3066
|
-
"description": "
|
|
3067
|
-
"name": "
|
|
3068
|
-
"required": true
|
|
3069
|
-
},
|
|
3070
|
-
"targetDataset": {
|
|
3071
|
-
"description": "Target dataset (prefer --dataset flag instead)",
|
|
3072
|
-
"name": "targetDataset",
|
|
3162
|
+
"name": {
|
|
3163
|
+
"description": "Name of the webhook to show logs for",
|
|
3164
|
+
"name": "name",
|
|
3073
3165
|
"required": false
|
|
3074
3166
|
}
|
|
3075
3167
|
},
|
|
3076
|
-
"description": "
|
|
3168
|
+
"description": "Show log entries for project webhooks",
|
|
3077
3169
|
"examples": [
|
|
3078
3170
|
{
|
|
3079
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3080
|
-
"description": "
|
|
3081
|
-
},
|
|
3082
|
-
{
|
|
3083
|
-
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
3084
|
-
"description": "Import into dataset \"test\" from stdin"
|
|
3171
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3172
|
+
"description": "Show log entries for project webhooks"
|
|
3085
3173
|
},
|
|
3086
3174
|
{
|
|
3087
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3088
|
-
"description": "
|
|
3175
|
+
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
3176
|
+
"description": "Show log entries for a specific webhook by name"
|
|
3089
3177
|
},
|
|
3090
3178
|
{
|
|
3091
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
3092
|
-
"description": "
|
|
3179
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3180
|
+
"description": "Show log entries for a specific project"
|
|
3093
3181
|
}
|
|
3094
3182
|
],
|
|
3095
3183
|
"flags": {
|
|
3096
|
-
"allow-assets-in-different-dataset": {
|
|
3097
|
-
"description": "Allow asset documents to reference different project/dataset",
|
|
3098
|
-
"name": "allow-assets-in-different-dataset",
|
|
3099
|
-
"allowNo": false,
|
|
3100
|
-
"type": "boolean"
|
|
3101
|
-
},
|
|
3102
|
-
"allow-failing-assets": {
|
|
3103
|
-
"description": "Skip assets that cannot be fetched/uploaded",
|
|
3104
|
-
"name": "allow-failing-assets",
|
|
3105
|
-
"allowNo": false,
|
|
3106
|
-
"type": "boolean"
|
|
3107
|
-
},
|
|
3108
|
-
"allow-replacement-characters": {
|
|
3109
|
-
"description": "Allow unicode replacement characters in imported documents",
|
|
3110
|
-
"name": "allow-replacement-characters",
|
|
3111
|
-
"allowNo": false,
|
|
3112
|
-
"type": "boolean"
|
|
3113
|
-
},
|
|
3114
|
-
"allow-system-documents": {
|
|
3115
|
-
"description": "Imports system documents",
|
|
3116
|
-
"name": "allow-system-documents",
|
|
3117
|
-
"allowNo": false,
|
|
3118
|
-
"type": "boolean"
|
|
3119
|
-
},
|
|
3120
|
-
"asset-concurrency": {
|
|
3121
|
-
"description": "Number of parallel asset imports",
|
|
3122
|
-
"name": "asset-concurrency",
|
|
3123
|
-
"hasDynamicHelp": false,
|
|
3124
|
-
"multiple": false,
|
|
3125
|
-
"type": "option"
|
|
3126
|
-
},
|
|
3127
|
-
"dataset": {
|
|
3128
|
-
"char": "d",
|
|
3129
|
-
"description": "Dataset to import to",
|
|
3130
|
-
"name": "dataset",
|
|
3131
|
-
"hasDynamicHelp": false,
|
|
3132
|
-
"helpValue": "<name>",
|
|
3133
|
-
"multiple": false,
|
|
3134
|
-
"type": "option"
|
|
3135
|
-
},
|
|
3136
|
-
"missing": {
|
|
3137
|
-
"description": "Skip documents that already exist",
|
|
3138
|
-
"exclusive": [
|
|
3139
|
-
"replace"
|
|
3140
|
-
],
|
|
3141
|
-
"name": "missing",
|
|
3142
|
-
"allowNo": false,
|
|
3143
|
-
"type": "boolean"
|
|
3144
|
-
},
|
|
3145
3184
|
"project-id": {
|
|
3146
3185
|
"char": "p",
|
|
3147
|
-
"description": "Project ID to
|
|
3186
|
+
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
3148
3187
|
"helpGroup": "OVERRIDE",
|
|
3149
3188
|
"name": "project-id",
|
|
3150
3189
|
"hasDynamicHelp": false,
|
|
@@ -3152,54 +3191,19 @@
|
|
|
3152
3191
|
"multiple": false,
|
|
3153
3192
|
"type": "option"
|
|
3154
3193
|
},
|
|
3155
|
-
"
|
|
3156
|
-
"
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
"description": "Project ID to import to",
|
|
3160
|
-
"hidden": true,
|
|
3161
|
-
"name": "project",
|
|
3162
|
-
"hasDynamicHelp": false,
|
|
3163
|
-
"multiple": false,
|
|
3164
|
-
"type": "option"
|
|
3165
|
-
},
|
|
3166
|
-
"replace": {
|
|
3167
|
-
"description": "Replace documents with the same IDs",
|
|
3168
|
-
"exclusive": [
|
|
3169
|
-
"missing"
|
|
3170
|
-
],
|
|
3171
|
-
"name": "replace",
|
|
3172
|
-
"allowNo": false,
|
|
3173
|
-
"type": "boolean"
|
|
3174
|
-
},
|
|
3175
|
-
"replace-assets": {
|
|
3176
|
-
"description": "Skip reuse of existing assets",
|
|
3177
|
-
"name": "replace-assets",
|
|
3178
|
-
"allowNo": false,
|
|
3179
|
-
"type": "boolean"
|
|
3180
|
-
},
|
|
3181
|
-
"skip-cross-dataset-references": {
|
|
3182
|
-
"description": "Skips references to other datasets",
|
|
3183
|
-
"name": "skip-cross-dataset-references",
|
|
3194
|
+
"detailed": {
|
|
3195
|
+
"description": "Include detailed payload and attempts",
|
|
3196
|
+
"name": "detailed",
|
|
3197
|
+
"required": false,
|
|
3184
3198
|
"allowNo": false,
|
|
3185
3199
|
"type": "boolean"
|
|
3186
|
-
},
|
|
3187
|
-
"token": {
|
|
3188
|
-
"char": "t",
|
|
3189
|
-
"description": "Token to authenticate with",
|
|
3190
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
3191
|
-
"name": "token",
|
|
3192
|
-
"required": false,
|
|
3193
|
-
"hasDynamicHelp": false,
|
|
3194
|
-
"multiple": false,
|
|
3195
|
-
"type": "option"
|
|
3196
3200
|
}
|
|
3197
3201
|
},
|
|
3198
3202
|
"hasDynamicHelp": false,
|
|
3199
3203
|
"hiddenAliases": [
|
|
3200
|
-
"
|
|
3204
|
+
"hook:logs"
|
|
3201
3205
|
],
|
|
3202
|
-
"id": "
|
|
3206
|
+
"id": "hooks:logs",
|
|
3203
3207
|
"pluginAlias": "@sanity/cli",
|
|
3204
3208
|
"pluginName": "@sanity/cli",
|
|
3205
3209
|
"pluginType": "core",
|
|
@@ -3208,41 +3212,37 @@
|
|
|
3208
3212
|
"relativePath": [
|
|
3209
3213
|
"dist",
|
|
3210
3214
|
"commands",
|
|
3211
|
-
"
|
|
3212
|
-
"
|
|
3215
|
+
"hooks",
|
|
3216
|
+
"logs.js"
|
|
3213
3217
|
]
|
|
3214
3218
|
},
|
|
3215
|
-
"
|
|
3219
|
+
"manifest:extract": {
|
|
3216
3220
|
"aliases": [],
|
|
3217
3221
|
"args": {},
|
|
3218
|
-
"description": "
|
|
3222
|
+
"description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
|
|
3219
3223
|
"examples": [
|
|
3220
3224
|
{
|
|
3221
3225
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3222
|
-
"description": "
|
|
3226
|
+
"description": "Extracts manifests"
|
|
3223
3227
|
},
|
|
3224
3228
|
{
|
|
3225
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3226
|
-
"description": "
|
|
3229
|
+
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
3230
|
+
"description": "Extracts manifests into /public/static"
|
|
3227
3231
|
}
|
|
3228
3232
|
],
|
|
3229
3233
|
"flags": {
|
|
3230
|
-
"
|
|
3231
|
-
"
|
|
3232
|
-
"
|
|
3233
|
-
"
|
|
3234
|
-
"name": "project-id",
|
|
3234
|
+
"path": {
|
|
3235
|
+
"description": "Optional path to specify destination directory of the manifest files",
|
|
3236
|
+
"name": "path",
|
|
3237
|
+
"default": "dist/static",
|
|
3235
3238
|
"hasDynamicHelp": false,
|
|
3236
|
-
"helpValue": "<id>",
|
|
3237
3239
|
"multiple": false,
|
|
3238
3240
|
"type": "option"
|
|
3239
3241
|
}
|
|
3240
3242
|
},
|
|
3241
3243
|
"hasDynamicHelp": false,
|
|
3242
|
-
"hiddenAliases": [
|
|
3243
|
-
|
|
3244
|
-
],
|
|
3245
|
-
"id": "datasets:list",
|
|
3244
|
+
"hiddenAliases": [],
|
|
3245
|
+
"id": "manifest:extract",
|
|
3246
3246
|
"pluginAlias": "@sanity/cli",
|
|
3247
3247
|
"pluginName": "@sanity/cli",
|
|
3248
3248
|
"pluginType": "core",
|
|
@@ -3251,8 +3251,8 @@
|
|
|
3251
3251
|
"relativePath": [
|
|
3252
3252
|
"dist",
|
|
3253
3253
|
"commands",
|
|
3254
|
-
"
|
|
3255
|
-
"
|
|
3254
|
+
"manifest",
|
|
3255
|
+
"extract.js"
|
|
3256
3256
|
]
|
|
3257
3257
|
},
|
|
3258
3258
|
"mcp:configure": {
|
|
@@ -5196,5 +5196,5 @@
|
|
|
5196
5196
|
]
|
|
5197
5197
|
}
|
|
5198
5198
|
},
|
|
5199
|
-
"version": "7.
|
|
5199
|
+
"version": "7.9.0"
|
|
5200
5200
|
}
|