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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Precompilation log