CRM 2011 – CRM Command Line Utility

I saw this nice and simple command line utility today for CRM 2011, which you can access using the url below

Initially I wasn’t sure what the purpose of the command utility was, why would I want to access CRM via the command line

Then I saw the commands

/C: – the command you wish to perform

  • I – performs an import operation
  • E – performs an unmanaged solution export to the file specified with the ‘F’ flag
  • EM – performs a managed solution export to the file specified with the ‘F’ flag
  • U – performs a solution uninstall to the solution specified with the ‘S’ flag


So what you could use this for is to create a bat file which exports CRM and once you have a bat file you can then setup a windows scheduled task.

The task I have in mind for the tool is to setup a regular windows task which exports the solution on a daily or weekly basis.

Also if you are doing regular imports or solution imports then this tool can make it easy for you.


3 thoughts on “CRM 2011 – CRM Command Line Utility

  1. Chris Cooke (@CRMNerd) April 26, 2013 / 1:48 pm

    I do all sorts of actions from a custom command line app, which is basically an expanded version of this tool. It lets me automate all sorts of things on our dev servers. Solution import/exports, data imports, copy/backup/restore databases, deploy/disable/delete crm orgs and create CRM users. I’ve used bat files in the past, but recently I’ve moved over to kicking off the command line tool from the TFS Build server as It has an easy interface for changing the parameters.


  2. AdrianR April 29, 2013 / 11:28 am

    If you combine this with the solution packager that comes in the CRM SDK and a continuous build server (TFS, TeamCity, CourseControl, etc.) then you can get a continuous backup of the solution exported to text/xml files so you can track the exact changes that are happening, otherwise the source control system will just see the zip file as a binary file.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.