I'm following the documentation on how to set up Sitecore CLI: https://doc.sitecore.com/xp/en/developers/102/developer-tools/install-sitecore-command-line-interface.html
After doing all the steps I've come to step 5 where you can do a dotnet sitecore plugin list
to list the installed plugins. When I do this I get the following message:
>> Begin installing NuGet packages: [email protected]
>>> Skipping NuGet package [email protected] because it is already installed.
Could not locate plugin [email protected]. Some CLI commands may not function correctly.
This message then appears in all CLI commands, even when doing something simple as dotnet sitecore -h
.
The message says that it should install a package, then it says the package is already installed, finally it says the plugin couldn't be found. The package should obviously be able to be found as it is already installed. I've also checked the .sitecore\package-cache\nuget\Sitecore.DevEx.Extensibility.Database.5.0.16
folder, which exists, and it has a the corresponding .nupkg
and .nuspec
files.
I can remove the plugin with the following command: dotnet sitecore plugin remove -n Sitecore.DevEx.Extensibility.Database
. Running dotnet sitecore plugin list
no longer has the errors. When I readd the plugin using dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Database
the error reappears.
So why does Sitecore CLI keep complaining that a plugin can't be located when it is in fact installed?