dotnet graphql not found

Jai Holloway 60 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

Developer technologies Visual Studio Other
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    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.


0 additional answers

Sort by: Most helpful

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.