Sitecore 10 CLI Issues

Login

Whilst attempting to login to the CLI for the first time I came across an issue where I received the following message.

Couldn't resolve a root configuration file (sitecore.json) in the current or any parent directory. Looks like the command may have been executed outside a Sitecore project?

To solve this you simply needs to initialise the properties using the following command. Once this has been created it will create the file in the base directory and contains serialisation properties

sitecore init

Module Json Format

Error converting value "items" to type 'Sitecore.DevEx.Serialization.Client.Configuration.SerializationModuleConfiguration'. Path '', line 1, position 7.
  in C:\inetpub\wwwroot\sc10sc.dev.local\test/test.module.json

Invalid Format


	"items": {
	  "includes": [
		{
		  "name": "content",
		  "path": "/sitecore/content/home"
		}
	  ]
	}


Correct Format

{
	"namespace": "Project.Test",
	"items": {
	  "includes": [
		{
		  "name": "content",
		  "path": "/sitecore/content/home"
		}
	  ]
	}
}

Leave a Reply

Your email address will not be published. Required fields are marked *