Socket
Socket
Sign inDemoInstall

@sanity/cli

Package Overview
Dependencies
Maintainers
55
Versions
1508
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


Version published
Weekly downloads
138K
decreased by-7.7%
Maintainers
55
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

FAQs

Package last updated on 07 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc