--- title: app function typegen description: >- Creates GraphQL types based on your [input query](/docs/apps/functions/input-output#input) for a function written in JavaScript. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/app/app-function-typegen' md: 'https://shopify.dev/docs/api/shopify-cli/app/app-function-typegen.md' --- # app function typegencommand Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function written in JavaScript. ## Flags The following flags are available for the `app function typegen` command: * \--client-id \ string env: SHOPIFY\_FLAG\_CLIENT\_ID The Client ID of your app. * \--no-color env: SHOPIFY\_FLAG\_NO\_COLOR Disable color output. * \--path \ string env: SHOPIFY\_FLAG\_PATH The path to your function directory. * \--reset env: SHOPIFY\_FLAG\_RESET Reset all your settings. * \--verbose env: SHOPIFY\_FLAG\_VERBOSE Increase the verbosity of the output. * -c, --config \ string env: SHOPIFY\_FLAG\_APP\_CONFIG The name of the app configuration. ### Examples * #### app function typegen ##### app function typegen ```bash shopify app function typegen [flags] ```