# How to setup Optimizely CMS 12 on local dev?

### Check your prerequisites

* Microsoft Windows 10/Server 2019 or later
    
* Microsoft Visual Studio 2022 [https://visualstudio.microsoft.com/vs/community/](https://visualstudio.microsoft.com/vs/community/)
    
    * 2022 is needed for .NET 6 framework
        
    * Make sure you have .NET Desktop development and ASP.NET Web Dev is checked
        

### Installing Optimizely Project Templates

* Open Command Prompt OR Windows Terminal
    
* Install Optimizely dotnet project templates
    
* `dotnet new --install EPiServer.Templates`
    

### Installing Optimizely dotnet CLI database tool

* This helps to run some helpful commands against CMS database
    
* `dotnet tool install` [`EPiServer.Net`](http://EPiServer.Net)`.Cli --global --add-source` [`https://nuget.optimizely.com/feed/packages.svc/`](https://nuget.optimizely.com/feed/packages.svc/)
    

### Configure Nuget Feed

* Open Visual Studio 2022
    
* Navigate to Tools &gt; Nuget Package Manager &gt; Package Manager Settings
    
* Click Package sources from the Options dialog
    
* Add new source with path [https://api.nuget.optimizely.com/v3/index.json](https://api.nuget.optimizely.com/v3/index.json), you can name it whatever you want, for example - Optimizely Nuget Feed
    

### Fun Part - Installing CMS Alloy Website

* Create a folder in your system and navigate to that folder using the Terminal
    
    * For example C:\\Projects\\CMS12Alloy
        
* Run below command
    
* `dotnet new epi-alloy-mvc`
    
* `dotnet run`
    
* It takes some time, but once it is ready and you see `"Now listening on https://localhost:5000"` in the terminal, navigate to https://localhost:5000
    
* For the first time, it will navigate to the Register page.
    
* Setup your username and password and you are good to go!
