dotnet graphql not found

Jai Holloway 40 Reputation points
2025-02-09T12:55:07.3533333+00:00

I am trying to update a graphql schema, but when I run dotnet graphql update in the command line it says that graphql is not recognised. I am trying to run a command that doesn't exist.

This used to work, but has since stopped. I haven't touched it in months because there hasn't been a need, but we have recently started having problems with our graphql client and searching suggested that the schema has changed. I need to be able to update the graphql schema to get past my problem

Any help would be appreciated

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,424 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 33,101 Reputation points Microsoft Vendor
    2025-02-11T06:17:03.24+00:00

    Hi @Jai Holloway ,

    Does the "dotnet-tools.json" file exist in the C:\Users\username\.config folder?

    If it doesn’t exist, please try to run dotnet new tool-manifest command in the CMD to create it.

    If it exists, please right-click it => select Open With => open it with Notepad. Make sure that the strawberryshake.tools has been installed. For example:

    User's image

    If it isn’t listed in the dotnet-tools.json file by some reasons, try to run dotnet tool install StrawberryShake.Tools command to reinstall it.

    After you have confirmed that it has been installed. Try to open CMD as administrator, and run command dotnet graphql update -h see if the command can be run correctly, like

    User's image

    Best regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.