Skip to content

Commit e11fa95

Browse files
Merge pull request #7524 from Shopify/05-remove-app-generate-schema-command
Remove deprecated `shopify app generate schema` command
2 parents 9208483 + f23fe6c commit e11fa95

4 files changed

Lines changed: 5 additions & 100 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/app': major
3+
---
4+
5+
Remove the deprecated `shopify app generate schema` command. Use `shopify app function schema` instead.

packages/app/src/cli/commands/app/generate/schema.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/app/src/cli/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import FunctionRun from './commands/app/function/run.js'
1919
import FetchSchema from './commands/app/function/schema.js'
2020
import FunctionTypegen from './commands/app/function/typegen.js'
2121
import AppGenerateExtension from './commands/app/generate/extension.js'
22-
import GenerateSchema from './commands/app/generate/schema.js'
2322
import ImportExtensions from './commands/app/import-extensions.js'
2423
import AppInfo from './commands/app/info.js'
2524
import Init from './commands/app/init.js'
@@ -65,7 +64,6 @@ export const commands: {[key: string]: typeof AppLinkedCommand | typeof AppUnlin
6564
'app:env:show': EnvShow,
6665
'app:execute': Execute,
6766
'app:bulk:execute': BulkExecute,
68-
'app:generate:schema': GenerateSchema,
6967
'app:function:build': FunctionBuild,
7068
'app:function:replay': FunctionReplay,
7169
'app:function:run': FunctionRun,

packages/cli/oclif.manifest.json

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,93 +2143,6 @@
21432143
"strict": true,
21442144
"summary": "Generate a new app Extension."
21452145
},
2146-
"app:generate:schema": {
2147-
"aliases": [
2148-
],
2149-
"args": {
2150-
},
2151-
"customPluginName": "@shopify/app",
2152-
"description": "\"DEPRECATED, use `app function schema`] Generates the latest [GraphQL schema\" (https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.",
2153-
"descriptionWithMarkdown": "[DEPRECATED, use `app function schema`] Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.",
2154-
"flags": {
2155-
"client-id": {
2156-
"description": "The Client ID of your app.",
2157-
"env": "SHOPIFY_FLAG_CLIENT_ID",
2158-
"exclusive": [
2159-
"config"
2160-
],
2161-
"hasDynamicHelp": false,
2162-
"hidden": false,
2163-
"multiple": false,
2164-
"name": "client-id",
2165-
"type": "option"
2166-
},
2167-
"config": {
2168-
"char": "c",
2169-
"description": "The name of the app configuration.",
2170-
"env": "SHOPIFY_FLAG_APP_CONFIG",
2171-
"hasDynamicHelp": false,
2172-
"hidden": false,
2173-
"multiple": false,
2174-
"name": "config",
2175-
"type": "option"
2176-
},
2177-
"no-color": {
2178-
"allowNo": false,
2179-
"description": "Disable color output.",
2180-
"env": "SHOPIFY_FLAG_NO_COLOR",
2181-
"hidden": false,
2182-
"name": "no-color",
2183-
"type": "boolean"
2184-
},
2185-
"path": {
2186-
"description": "The path to your function directory.",
2187-
"env": "SHOPIFY_FLAG_PATH",
2188-
"hasDynamicHelp": false,
2189-
"hidden": false,
2190-
"multiple": false,
2191-
"name": "path",
2192-
"noCacheDefault": true,
2193-
"type": "option"
2194-
},
2195-
"reset": {
2196-
"allowNo": false,
2197-
"description": "Reset all your settings.",
2198-
"env": "SHOPIFY_FLAG_RESET",
2199-
"exclusive": [
2200-
"config"
2201-
],
2202-
"hidden": false,
2203-
"name": "reset",
2204-
"type": "boolean"
2205-
},
2206-
"stdout": {
2207-
"allowNo": false,
2208-
"description": "Output the schema to stdout instead of writing to a file.",
2209-
"env": "SHOPIFY_FLAG_STDOUT",
2210-
"name": "stdout",
2211-
"required": false,
2212-
"type": "boolean"
2213-
},
2214-
"verbose": {
2215-
"allowNo": false,
2216-
"description": "Increase the verbosity of the output.",
2217-
"env": "SHOPIFY_FLAG_VERBOSE",
2218-
"hidden": false,
2219-
"name": "verbose",
2220-
"type": "boolean"
2221-
}
2222-
},
2223-
"hasDynamicHelp": false,
2224-
"hidden": true,
2225-
"hiddenAliases": [
2226-
],
2227-
"id": "app:generate:schema",
2228-
"pluginAlias": "@shopify/cli",
2229-
"pluginName": "@shopify/cli",
2230-
"pluginType": "core",
2231-
"summary": "Fetch the latest GraphQL schema for a function."
2232-
},
22332146
"app:import-custom-data-definitions": {
22342147
"aliases": [
22352148
],

0 commit comments

Comments
 (0)