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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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