Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Create a new site using the API In a console application View modes: 
User avatar
Member
Member
pwakeman-sedonatek - 7/27/2009 11:13:50 AM
   
Create a new site using the API In a console application
Hello,
We are looking to find a way to create a new Kentico CMS site using just the API in order to automate the deployment of Kentico sites for our developers. We have the files and database all completely automated to deploy, just need to figure out how to connect to the database using the CMS API in a console application if it is possible.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 8/3/2009 1:45:57 PM
   
RE:Create a new site using the API In a console application
Hello,

You can find sample code for new site creation in 'Creating a new web site' article. You can execute query to DB used by Kentico CMS using 'ExecuteQuery' method. Please see 'Code examples' article for more details.

Best Regards,

Martin Dobsicek