Command line arguments

The Telerik.Sitefinity.Compiler.exe too has the following command-line arguments, prefixed by a slash:

Argument Description Required
Url The URL of the site from where the compiler retrieves the page markup. Yes
AppDir The application directory of the Sitefinity CMS web application from where to copy all the files needed during compilation.
Yes
AuthKey The authentication key with which to authenticate to Sitefinity.
Yes
Username The username that you use to authenticate in Sitefinity. Yes
Password The password that you use to authenticate in Sitefinity. Yes
MembershipProvider The membership provider for the user that you use to authenticate in Sitefinity. Yes
Strategy

The strategy that defines which pages must be precompiled.
You can enter one of the following:

  • Backend
  • Frontend

NOTE: This argument is case sensitive.

Yes
Version The assembly version with which the compiler compiles the resulting assemblies.
By default, the version is 1.0.0.0
No
OutputPath The folder where the compiler places the generated assemblies.
By default, this is the application’s bin folder.
No
PagesPerAssembly The number of pages generated per assembly.
The default value is 1000.
No
EXAMPLE: The following command lines are an example of using Sitefinity CMS precompiler tool:
EXAMPLE: Use the following example to authenticate using an authentication key. You must always use authentication key, if your authentication mode is set to Windows authentication:

If the execution was successful, the tool returns an exit code of 0; if not - exit code of 4. Use the exit code to track whether and when the tool has finished its execution and possibly integrate it in the MSBuild script of your project.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Precompilation log