* Orchard CMS Command Line Workflows

Last tested on 15 May 2014

First Steps

Setup Orchard for First Time Use

Quick and Dirty

setup /SiteName:SITE /AdminUsername:USER /AdminPassword:PASS /DatabaseProvider:SQLCE

Complete Syntax

setup 
  /SiteName:<siteName> 
  /AdminUsername:<username> 
  /AdminPassword:<password> 
  /DatabaseProvider:<SqlCe|SQLServer> 
  /DatabaseConnectionString:<connectionstring> 
  /DatabaseTablePrefix:<tableprefix> 
  /EnabledFeatures:<feature1,feature2,...> 
  /Recipe:<recipe>

Notes

Create and Activate a New Theme & Turn on Shape Tracing

feature enable Orchard.CodeGeneration
codegen theme My.FirstTheme /CreateProject:true /IncludeInSolution:true /BasedOn:TheThemeMachine
theme activate My.FirstTheme
feature enable Orchard.DesignerTools

If you want to add C# to the theme, be sure to use the CreateProject:true flag.

Package a Theme

package create My_FirstTheme C:\Temp

The theme name is the name of the folder that contains your theme.

Package a Module

package create My_FirstModule C:\Temp

Create and Enable a New Module

feature enable Orchard.CodeGeneration 
codegen module My.FirstModule /IncludeInSolution:true
feature enable My.FirstModule

Add a Data Migration to a Module

codegen datamigration My.FirstModuleTurn on Shape Tracing
feature enable Orchard.DesignerTools