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
125 lines (121 loc) • 4.89 kB
text/typescript
import {type CliCommandDefinition, type CliCommandGroupDefinition} from '@sanity/cli'
import backupGroup from './backup/backupGroup'
import disableBackupCommand from './backup/disableBackupCommand'
import downloadBackupCommand from './backup/downloadBackupCommand'
import enableBackupCommand from './backup/enableBackupCommand'
import listBackupCommand from './backup/listBackupCommand'
import buildCommand from './build/buildCommand'
import checkCommand from './check/checkCommand'
import configCheckCommand from './config/configCheckCommand'
import addCorsOriginCommand from './cors/addCorsOriginCommand'
import corsGroup from './cors/corsGroup'
import deleteCorsOriginCommand from './cors/deleteCorsOriginCommand'
import listCorsOriginsCommand from './cors/listCorsOriginsCommand'
import aliasDatasetCommand from './dataset/alias/aliasCommands'
import copyDatasetCommand from './dataset/copyDatasetCommand'
import createDatasetCommand from './dataset/createDatasetCommand'
import datasetGroup from './dataset/datasetGroup'
import datasetVisibilityCommand from './dataset/datasetVisibilityCommand'
import deleteDatasetCommand from './dataset/deleteDatasetCommand'
import exportDatasetCommand from './dataset/exportDatasetCommand'
import importDatasetCommand from './dataset/importDatasetCommand'
import listDatasetsCommand from './dataset/listDatasetsCommand'
import deployCommand from './deploy/deployCommand'
import undeployCommand from './deploy/undeployCommand'
import devCommand from './dev/devCommand'
import createDocumentsCommand from './documents/createDocumentsCommand'
import deleteDocumentsCommand from './documents/deleteDocumentsCommand'
import documentsGroup from './documents/documentsGroup'
import getDocumentsCommand from './documents/getDocumentsCommand'
import queryDocumentsCommand from './documents/queryDocumentsCommand'
import validateDocumentsCommand from './documents/validateDocumentsCommand'
import execCommand from './exec/execCommand'
import deleteGraphQLAPICommand from './graphql/deleteGraphQLAPICommand'
import deployGraphQLAPICommand from './graphql/deployGraphQLAPICommand'
import graphqlGroup from './graphql/graphqlGroup'
import listGraphQLAPIsCommand from './graphql/listGraphQLAPIsCommand'
import createHookCommand from './hook/createHookCommand'
import deleteHookCommand from './hook/deleteHookCommand'
import hookGroup from './hook/hookGroup'
import listHookLogsCommand from './hook/listHookLogsCommand'
import listHooksCommand from './hook/listHooksCommand'
import printHookAttemptCommand from './hook/printHookAttemptCommand'
import createMigrationCommand from './migration/createMigrationCommand'
import listMigrationsCommand from './migration/listMigrationsCommand'
import migrationGroup from './migration/migrationGroup'
import runMigrationCommand from './migration/runMigrationCommand'
import previewCommand from './preview/previewCommand'
import extractSchemaCommand from './schema/extractSchemaCommand'
import schemaGroup from './schema/schemaGroup'
import validateSchemaCommand from './schema/validateSchemaCommand'
import startCommand from './start/startCommand'
import generateTypegenCommand from './typegen/generateTypesCommand'
import uninstallCommand from './uninstall/uninstallCommand'
import inviteUserCommand from './users/inviteUserCommand'
import listUsersCommand from './users/listUsersCommand'
import usersGroup from './users/usersGroup'
const commands: (CliCommandDefinition | CliCommandGroupDefinition)[] = [
buildCommand,
checkCommand,
configCheckCommand,
datasetGroup,
deployCommand,
undeployCommand,
listDatasetsCommand,
createDatasetCommand,
datasetVisibilityCommand,
exportDatasetCommand,
importDatasetCommand,
deleteDatasetCommand,
copyDatasetCommand,
aliasDatasetCommand,
backupGroup,
listBackupCommand,
downloadBackupCommand,
disableBackupCommand,
enableBackupCommand,
corsGroup,
listCorsOriginsCommand,
addCorsOriginCommand,
deleteCorsOriginCommand,
usersGroup,
inviteUserCommand,
listUsersCommand,
hookGroup,
listHooksCommand,
createHookCommand,
migrationGroup,
createMigrationCommand,
runMigrationCommand,
listMigrationsCommand,
deleteHookCommand,
listHookLogsCommand,
printHookAttemptCommand,
documentsGroup,
getDocumentsCommand,
queryDocumentsCommand,
deleteDocumentsCommand,
createDocumentsCommand,
generateTypegenCommand,
validateDocumentsCommand,
graphqlGroup,
listGraphQLAPIsCommand,
deployGraphQLAPICommand,
deleteGraphQLAPICommand,
devCommand,
startCommand,
schemaGroup,
validateSchemaCommand,
extractSchemaCommand,
previewCommand,
uninstallCommand,
execCommand,
]
/**
* @deprecated Not actually deprecated, but these are internals and should not be relied upon outside of the Sanity team
* @internal
*/
export const cliProjectCommands = {
requiredCliVersionRange: '^3.0.0',
commands,
}