Answers from the community about CLI

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
zsh: command not found: sanity after reinstalling CLI17Jan 29, 2022
How to batch delete all documents of a certain type in Sanity?5Jan 29, 2021
Best way to convert HTML to a PortableText object?6Dec 3, 2020
Sanity CLI login fails in GitHub Codespaces due to localhost callback4Nov 30, 2024
sanity schema extract" command not found in Sanity CLI v3.45.07Jun 11, 2024
Which quotas are affected by sanity dataset export/import CLI commands?3Jun 3, 2024
How to duplicate an entire dataset in Sanity admin dashboard?6May 21, 2024
How to back up entire Sanity dataset?3Apr 20, 2024
Error after updating sanity/cli 3.35.1 to 3.35.2: Cannot read properties of undefined (reading 'div')13Mar 26, 2024
Query Sanity documents and output as NDJSON instead of JSON4Feb 14, 2024
Can I restore a deleted dataset or revert data to a previous point in time?3Dec 12, 2023
Internal server error when importing NDJSON data via Sanity CLI15Nov 7, 2023
How to backup Sanity Studio CMS content?5Oct 2, 2023
Sanity files stuck in upload state with uploadState.file.name error9Jul 26, 2023
Does removing a schema delete its related documents in Sanity?10Jul 10, 2023
Error importing dataset in Sanity v3: "@sanity/core" not available8Jun 23, 2023
Draft document showing in Desk Tool after CLI deletion but not in Vision12Jun 16, 2023
CLI Error: "unable to verify the first certificate" when creating project12Jun 14, 2023