diff --git a/packages/@sanity/cli/src/commands/index.ts b/packages/@sanity/cli/src/commands/index.ts index 39691907a0be..49bbd033c7bb 100644 --- a/packages/@sanity/cli/src/commands/index.ts +++ b/packages/@sanity/cli/src/commands/index.ts @@ -15,6 +15,7 @@ import enableTelemetryCommand from './telemetry/enableTelemetryCommand' import telemetryGroup from './telemetry/telemetryGroup' import telemetryStatusCommand from './telemetry/telemetryStatusCommand' import generateTypegenCommand from './typegen/generateTypesCommand' +import typegenGroup from './typegen/typegenGroup' import upgradeCommand from './upgrade/upgradeCommand' import versionsCommand from './versions/versionsCommand' @@ -37,4 +38,5 @@ export const baseCommands: (CliCommandDefinition | CliCommandGroupDefinition)[] enableTelemetryCommand, telemetryStatusCommand, generateTypegenCommand, + typegenGroup, ] diff --git a/packages/@sanity/cli/src/commands/typegen/typegenGroup.ts b/packages/@sanity/cli/src/commands/typegen/typegenGroup.ts new file mode 100644 index 000000000000..96ef9bae87ce --- /dev/null +++ b/packages/@sanity/cli/src/commands/typegen/typegenGroup.ts @@ -0,0 +1,10 @@ +import {type CliCommandGroupDefinition} from '../../types' + +const typegenGroup: CliCommandGroupDefinition = { + name: 'typegen', + signature: '[COMMAND]', + isGroupRoot: true, + description: 'Sanity TypeGen (Beta)', +} + +export default typegenGroup