# Command line arguments

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

 <table>
<colgroup><col><col><col><col></colgroup>
<tbody>
<tr>
<td width="180">

<strong>Argument</strong>

</td>
<td>

<strong>Description</strong>

</td>
<td>

<strong>Required</strong>

</td>
</tr>
<tr>
<td>

`Url`

</td>
<td>

The URL of the site from where the compiler retrieves the page markup.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`AppDir`

</td>
<td>

The application directory of the Sitefinity CMS web application from where to copy all the files needed during compilation.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`AuthKey`

</td>
<td>

The authentication key with which to authenticate to Sitefinity.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`Username`

</td>
<td>

The username that you use to authenticate in Sitefinity.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`Password`

</td>
<td>

The password that you use to authenticate in Sitefinity.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`MembershipProvider`

</td>
<td>

The membership provider for the user that you use to authenticate in Sitefinity.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`Strategy`

</td>
<td>

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

<ul>
<li><code>Backend</code></li>
<li><code>Frontend</code></li>
</ul>

> info **NOTE:** This argument is case sensitive.

</td>
<td>

Yes

</td>
</tr>
<tr>
<td>

`Version`

</td>
<td>

The assembly version with which the compiler compiles the resulting assemblies.<br>
By default, the version is <code>1.0.0.0</code>

</td>
<td>

No

</td>
</tr>
<tr>
<td>

`OutputPath`

</td>
<td>

The folder where the compiler places the generated assemblies.<br>
By default, this is the application’s <code>bin</code> folder.

</td>
<td>

No

</td>
</tr>
<tr>
<td>

`PagesPerAssembly`

</td>
<td>

The number of pages generated per assembly.<br>
The default value is <code>1000</code>.

</td>
<td>

No

</td>
</tr>
<tr>
<td>

`Verbose`

</td>
<td>

Displays a verbose log of all actions the tool performed.<br>
You can also use <code>-v</code> and <code>/verbose=true</code> arguments to turn on the verbose mode.

</td>
<td>

No

</td>
</tr>
</tbody>
</table>

> success **EXAMPLE**: The following command lines are an example of using Sitefinity CMS precompiler tool:
>
> ```Text
> Telerik.Sitefinity.Compiler.exe /url="http://localhost:8080" /appdir="D:\Projects\SitefinityWebApp" /username="sfadmin" /password="admin@2" /strategy="Frontend" /membershipprovider="Default"
> ```

> success **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**:
>
> ```Text
> Telerik.Sitefinity.Compiler.exe /url="http://localhost:8080" /appdir="D:\Projects\SitefinityWebApp" /authKey="8u3#u{9u~]k3M3Q" /strategy="Frontend"
> ```

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.
