Skip to content

Commit

Permalink
chore(cli): add schema command to help list (#5676)
Browse files Browse the repository at this point in the history
* chore(cli): add schema command to help list

* chore(migration): update desription copy for schema group
  • Loading branch information
binoy14 authored Feb 6, 2024
1 parent 5ec6a22 commit 3d0f7ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@sanity/cli/src/util/noSuchCommandText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const coreCommands = [
'hook',
'preview',
'migrate',
'schema',
'start',
'undeploy',
'uninstall',
Expand Down
2 changes: 2 additions & 0 deletions packages/sanity/src/_internal/cli/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import migrationGroup from './migration/migrationGroup'
import createMigrationCommand from './migration/createMigrationCommand'
import runMigrationCommand from './migration/runMigrationCommand'
import listMigrationsCommand from './migration/listMigrationsCommand'
import schemaGroup from './schema/schemaGroup'

const commands: (CliCommandDefinition | CliCommandGroupDefinition)[] = [
buildCommand,
Expand Down Expand Up @@ -91,6 +92,7 @@ const commands: (CliCommandDefinition | CliCommandGroupDefinition)[] = [
deleteGraphQLAPICommand,
devCommand,
startCommand,
schemaGroup,
validateSchemaCommand,
previewCommand,
uninstallCommand,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
name: 'schema',
signature: '[COMMAND]',
isGroupRoot: true,
description: 'Interacts with schema(s) in your Sanity Studio project',
}

0 comments on commit 3d0f7ee

Please sign in to comment.