AnswerBun.com

Can not install Sitecore.CLI for Sitecore 10

Sitecore Asked by Nikola Kramaric on February 21, 2021

I am following the guide specified here. I can successfully run the command dotnet new tool-manifest however I get an error when I run

dotnet tool install Sitecore.CLI --add-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json

Error:

C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error : Failed to retrieve information about 'sitecore.cli' from remote source 'https://sitecore.myget.org/gallery/FindPackagesById()?id='sitecore.cli'&semVerLevel=2.0.0'. [***]
C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error :   The content at 'https://sitecore.myget.org/gallery/FindPackagesById()?id='sitecore.cli'&semVerLevel=2.0.0' is not valid XML. [**]
C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error :   For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. [***]
The tool package could not be restored.
Tool 'sitecore.cli' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Any ideas?

One Answer

I found the fix to this. In Visual Studio 2017 or 2019:

Navigate to Tools > NuGet Package Manager > Package Manager Settings > Package Sources and remove the reference to Sitecore NuGet. This was there from a previous setup of Sitecore. My theory is that it conflicted with this installation.

Packages Sources after removing the Sitecore Source:

enter image description here

Answered by Nikola Kramaric on February 21, 2021

Add your own answers!

Related Questions

How to get General Link Field in RenderFieldArgs?

0  Asked on August 23, 2021 by gautam-aneja

 

Setting site default language in SXA

1  Asked on August 23, 2021 by mohamed-mosa

   

Sitecore domain and sub domain authentication

1  Asked on August 23, 2021 by suresh-r

   

No data recorded in Experience Analytics

3  Asked on August 23, 2021 by breno-diniz-pelosi

   

GraphQL query to search for pages based on template

2  Asked on August 23, 2021 by serhii-shushliapin

   

Sitecore SxA Composite Layout not adding custom css and js

1  Asked on August 23, 2021 by nadine-lendzian

 

Sitecore Item URL with Custom Domain in Azure PaaS

2  Asked on August 23, 2021 by alok-kumar

   

Updated field in rendering variant not working

2  Asked on August 23, 2021 by barada-behura

   

Creating multi site using Sitecore JSS

1  Asked on August 23, 2021 by haappyy02

 

Scale Out Content Management AppService

1  Asked on August 23, 2021 by pirate-briggs

     

Use SXA rendering variant for dynamic object

1  Asked on August 23, 2021 by user2980

   

Custom Item Url Builder

1  Asked on August 23, 2021 by ethan-schofer

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP