sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
28 lines (23 loc) • 594 B
text/typescript
import {
type CliCommandArguments,
type CliCommandContext,
type CliCommandDefinition,
} from '@sanity/cli'
const helpText = `
Examples
sanity undeploy
`
const undeployCommand: CliCommandDefinition = {
name: 'undeploy',
signature: '',
description: 'Removes the deployed Sanity Studio from Sanity hosting',
action: async (
args: CliCommandArguments<Record<string, unknown>>,
context: CliCommandContext,
) => {
const mod = await import('../../actions/deploy/undeployAction')
return mod.default(args, context)
},
helpText,
}
export default undeployCommand