The Command-Line Tool

When you run ac.exe, you supply a set of command-line parameters where each parameter must be presented in the following form.

-parameter:"parameter value"

Use the following syntax.


ac.exe [-f|-file:"path to configuration file"] [-cm|-configmode:"main scenario"] 
[-s|-dbsrvname:"server name"] [-sw|-dbsrvwinauth:"True|False"] 
[-u|-dbsrvuser:"user name"] [-p|-dbsrvpass:"user password"] 
[-d|-dbname:"database name"] [-n|-dbnew:"True|False"] 
[-b|-dbupdate:"True|False"] [-dm|-dbmode:"Regular|Template|Demo"] 
[-dz|-dbsize:"database size in GB"] [-ds|-dbskip:"skip database setup"] 
[-dc|-dbshrink:"shrink database"] [-i|-iname:"instance name"] 
[-io|-ioldname:"old instance name"] [-h|-ipath:"instance directory"] 
[-is|-vmsize:"Small|Medium|Large|ExtraLarge"] 
[-it|-trumbprint:"X.509 thumbprint"] [-ip|-project:"VS project name"] 
[-w|-swebsite:"Web site name"] [-v|-svirtdir:"virtual directory"] 
[-po|-spool:"application pool"] [-a|-sactions:"AnonymousUser|SelectedUser"] 
[-k|-suser:"user name"] [-m|-spass:"user password"] 
[-dw|-dbwinauth:"True or False"] [-dn|-dbnewuser:"True|False"] 
[-du|-dbuser:"user name"] [-dp|-dbpass:"user password"] 
[-wc|-wscompany:"company ID"] [-wu|-wsuser:"user account"] 
[-ww|-wswiki:"portal Wiki"] [-cs|-securemode:"True|False"] 
[-sp|-split:"[t|Table=table name]; [o|Option=Separate|Split|Shared]"] 
[-c|-company:"[ci|CompanyID=company ID]; [cp|ParentID=parent company ID] 
[cv|Visible=True];[ct|CompanyType=True]; [cn|LoginName:user name]; 
[cd|Delete:True]"] [-vst|-vstemplates:"True|False"] 
[-vsc|-vscontrols:"True|False"] [-op|-output:"Normal|Quiet|Forced"]

All parameter values are case-sensitive and must be enclosed in quotation marks. Each parameter for the command line also has a short form that you can use instead of the full parameter name. If you have specified a parameter more than once in a command line, the last parameter value will be used.

You can run ac.exe in one of three modes:

  • Command-line: Parameters are passed to ac.exe from the command line.
  • Batch: The path to the configuration file with parameters is passed to ac.exe from the command line.
  • Mixed: Some parameters are passed to ac.exe through the configuration file, while other parameters are passed from the command line. In this mode, command-line parameters have a priority over those specified in the configuration file.