8

I want to use SIM in my local deployment scripts but I cannot figure out where to find the tool. I expected it to be here, but the Apps folder is empty:

%appdata%\Sitecore\Sitecore Instance manager\Apps\SIMCMD\sim.exe

I found SIM.Tool.exeunder the following (quite strange) path, but that is just a UI tool launcher:

%AppData%\Local\Apps\2.0\3THNC6J1.QKG\1JZ9G8ZG.8MR\sim...tion_abafaebf7cc9a2b2_0001.0005_f7e46463611ea296 

Any idea if the command line tool is still supported?
My version: SIM 1.5.0.2

4

It is very simple to run SIMCMD (Command Line version of SIM):

  1. Open SIM
  2. Click Bundled Tools - Command Line
  3. Voilà

enter image description here

N.B. Step 2 here simply downloads latest version from dl.sitecore.net

Note even though it is available in Release version, this feature is still kind of experimental and does not support all functions of full version. So I highly recommend to check the source code of the commands before using them in (pre-)production environment.

  • That's what I was looking for, thanks. For now the only limitation I noticed is that I cannot specify the host name and the default value is differ from the one suggested by UI tool. I described this behavior here. – Serhii Shushliapin Jun 9 '17 at 5:55
  • I don't see this option in bundled tools – Chaitanya Gadkari Apr 30 '18 at 11:31
3

SIM is a click-once application

You can launch it from command line, but it's not so obvious how. There are a couple of ways to launch it. One would be to invoke something like iexplore.exe, pointing it to the URL of the SIM installation.

My preferred method is launching it via the local .appref-ms file. You find it like this:

Open up "Start", find SIM.

enter image description here

Right click and Open File Location.

enter image description here

In this folder, you will find your .appref-ms file. This is what you need to launch from your command line.

enter image description here

Automated installation from the command line

Is planned for SIM 2.0. Reference: https://github.com/Sitecore/Sitecore-Instance-Manager/issues/18

But there is another way.

Using the Hedgehog.Tds.Build.Sim.Console, which is a tool meant specifically to handle this current shortcoming.

Also blogged about by Jeremy Davis here: HOW DID I MISS THIS BIT OF SIM AUTOMATION?

Example use:

Hedgehog.Tds.Build.Sim.Console.exe install
  "InstanceName:demo.tds"
  "InstanceDirectory:c:\sitecore"
  "RepoDirectory:c:\sitecorerepo"
  "RepoFile:Sitecore 7.1 rev. 130926.zip"
  "ConnectionString:Data Source=.;User ID=sitecore;Password=sitecore123"
  "AppPoolIdentity:NetworkService"
  "LicencePath:C:\Sitecore\license.xml" 
  • Yep, but that just launches the UI app... I'd like to use the tool to install instances from the scripts. – Serhii Shushliapin Jun 8 '17 at 13:09
  • Answer updated. – Mark Cassidy Jun 8 '17 at 13:16
  • Looks like the Hedgehog tool is quite outdated... no commits since 2014.. It fails trying to locate SIM.Kernel.Instances.dll, probably the obsolete one; I can find only SIM.Instances.dll in the SIM directory. – Serhii Shushliapin Jun 8 '17 at 14:06
  • It appeared that the SIM CLI needs to be downloaded independently. It was a surprise to me but it does exactly what I need. – Serhii Shushliapin Jun 9 '17 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.