Couldn't find shopify.app.toml

Topic summary

Error running npm run shopify app function typegen from a delivery customization extension folder: the CLI reports it “Couldn’t find shopify.app.toml.” Screenshots show the file exists, but only in the app’s root directory, while the command was executed in the extension directory.

One suggested fix is to run shopify app config link to create/link the necessary config so the command can proceed.

No confirmation that this resolves the issue. The thread remains open, with the key question being why the CLI did not detect the existing shopify.app.toml when run from the extension subdirectory. Images are central to understanding the error message and file locations.

Summarized with AI on December 25. AI used: gpt-5.

Hi,

i am trying to create a delivery customization function. When running “npm run shopify app function typegen” in the delivery extension directory, i am getting the following error:

I am in the right directory when running the command and i have the shopify.app.toml in the app directory:

Why am i getting this error? Thanks in advance!

Best Regards,

Yodit

you can create file with this command
shopify app config link

1 Like