Introduction to Sitecore for Visual Studio(SVS) and setup guide

Nilay Patel
2 min readJul 1, 2022

--

Hello Devs~
In this blog we’ll try to understand more about Sitecore for Visual Studio and and also set it up!
checkout this article to understand more about Sitecore serialization and SVS.

SVS is a visual studio extension which helps developers to sync Sitecore items.
Note: SVS requires license so get it from here.

Installation of Sitecore CLI

Before installing SVS, we have to install Sitecore CLI.

Firstly go here and download Sitecore managed services according to your Sitecore CLI version(Check compatibility from image given ),then go to control panel in Sitecore and install that package.

Open PowerShell with admin privilege and go to root of your project.

  1. dotnet new tool-manifest (It creates manifest file in .config folder, other developers can just run dotnet tool restore to install all the tools available in manifest file.)
  2. dotnet tool install Sitecore.Cli --version <cli version> --add-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json (change version for Sitecore CLI)
  3. initialize project with sitecore : sitecore init(It’ll create sitecore.json file and also .sitecore folder which contains schemas)
  4. Then we have to give authorization to Sitecore CLI so that it can read changes of Sitecore.
    dotnet sitecore login --auth <identity server url > --cm <cm site url> --allow-write true

now we’re done!

Installation of SVS

  • Download SVS from here.
  • After installation it’ll ask you for license key.
  • Now right click on solution and click on sitecore module explorer ,It’ll open window.

Now we can create modules and can define identity and rules to include and exclude items and many more things.

Note: please change modules properties in sitecore.json file to access all the modules resides in project folders.

Let’s include items and pull it from sitecore.

That’s it for this article.. we’ll dive deep in sitecore CLI and SVS in different article.

Stay tuned!

--

--

Nilay Patel

Whether it's coding or crafting a compelling narrative, I'm all about infusing creativity into the mix.