Kentico CMS 7.0 Developer's Guide

Import Toolkit from command line

Import Toolkit from command line

Previous topic Next topic Mail us feedback on this topic!  

Import Toolkit from command line

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Apart from using the wizard described in the Initial steps chapter, you can also run the Import Toolkit utility from the command line.

To perform the actual import, you need to have an import profile file. You can run the utility by executing the ImportToolkit.exe file located in <Kentico CMS installation folder>\Bin (typically C:\Program Files (x86)\KenticoCMS\<version number>\Bin) using a special syntax.

 

 

InfoBox_Exclamation

 

Important!

 

The profile file used in the command line needs to be created in the last step of the wizard—once the import has finished. This way the file will contain all the required data for a successful import.

 

 

You can launch the utility with an optional -i parameter, which ignores errors during the import:

 

ImportToolkit <path to your i.profile file> -i

 

You can specify either a relative or an absolute path to the .iprofile file. Make sure you use proper quotation when entering an absolute path containing special characters ,e.g., blank spaces:

 

ImportToolkit my_profile.xml

ImportToolkit "C:\Temp\AD Import\my_profile.xml"

 

After executing the command, data will be imported to your Kentico CMS instance based on settings contained in the specified import profile.