Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sanity/cli

Package Overview
Dependencies
Maintainers
98
Versions
2680
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/cli

Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets

Source
npmnpm
Version
4.10.2-next.14
Version published
Weekly downloads
265K
9.31%
Maintainers
98
Weekly downloads
 
Created

What is @sanity/cli?

@sanity/cli is a command-line interface tool for managing Sanity.io projects. It allows developers to perform various tasks such as creating new projects, deploying them, managing datasets, and more.

What are @sanity/cli's main functionalities?

Create a new Sanity project

This command initializes a new Sanity project. It guides you through the setup process, including selecting a project template and configuring your project settings.

sanity init

Deploy a Sanity project

This command deploys your Sanity project to the Sanity.io hosting service. It ensures that your project is live and accessible.

sanity deploy

Manage datasets

This command creates a new dataset within your Sanity project. Datasets are used to organize and manage different sets of content.

sanity dataset create <dataset-name>

Import data

This command imports data from a specified file into a specified dataset. It is useful for migrating data or setting up initial content.

sanity dataset import <file> <dataset-name>

Export data

This command exports data from a specified dataset to a specified file. It is useful for creating backups or migrating data.

sanity dataset export <dataset-name> <file>

Other packages similar to @sanity/cli

Keywords

sanity

FAQs

Package last updated on 30 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts