Continue my investigation journey on Data API Builder
By Rob Litjens
After my install yesterday, I could easily read what to do. But, Microsoft Learn is telling you something else. Where MS Learn tells you to do
> dab --version
I found that returned an error message:
dab : The term 'dab' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ dab --version
+ ~~~
+ CategoryInfo : ObjectNotFound: (dab:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"
Reading the message from the dotnet tool install --global Microsoft.DataApiBuilder
it tells you what to do:
You can invoke the tool from this directory using the following commands: 'dotnet tool run dab' or 'dotnet dab'. Tool 'microsoft.dataapibuilder' (version '0.7.6') was successfully installed. Entry is added to the manifest file C:\Program Files\dotnet.config\dotnet-tools.json."
So, instead of running dab --version
, you need to run dotnet tool run dab
instead. If you have run it, you will get the next message:
"Microsoft.DataApiBuilder 0.7.6+61de247acf65280d93783072226f695536591ffb
© Microsoft Corporation. All rights reserved.
ERROR(S):
No verb selected.
init Initialize configuration file.<br></br>add Add a new entity to the configuration file.
update Update an existing entity in the configuration file.
start Start Data Api Builder Engine
export Export the GraphQL schema as a file and save to disk
help Display more information on a specific command.<br></br>version Display version information.
This looks like an error, but it means your installation is working. You can reverify it by running dab --version
. This returns
"Microsoft.DataApiBuilder 0.7.6+61de247acf65280d93783072226f695536591ffb"
So.. jUst a small update today, but we need to make progress. See you next time for probably a follow up story when i will be talking about different connections to setup.