UNPKG

@sanity/cli

Version:

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

27 lines (20 loc) 670 B
import {type CliCommandDefinition} from '../../types' import {printDebugInfo} from './printDebugInfo' const help = ` Used to find information about the Sanity environment, and to debug Sanity-related issues. Options --secrets Include API keys in output Examples # Show information about the user, project, and local/global Sanity environment sanity debug # Include API keys in the output sanity debug --secrets ` const debugCommand: CliCommandDefinition = { name: 'debug', signature: '[--secrets]', description: 'Provides diagnostic info for Sanity Studio troubleshooting', helpText: help, action: printDebugInfo, } export default debugCommand