# UiPath Install Platform

> You can use the **UiPathInstallPlatform** task when build agents don't have access to the [UiPath NuGet Feed](https://www.myget.org/F/uipath-dev/). You should execute the **UiPathInstallPlatform** task before any other tasks in the extension. This task has a prepackaged tool that all the other UiPath tasks are using.
The task is optional, but its advantage is that it reduces the time to execute other tasks.

You can use the **UiPathInstallPlatform** task when build agents don't have access to the [UiPath NuGet Feed](https://www.myget.org/F/uipath-dev/). You should execute the **UiPathInstallPlatform** task before any other tasks in the extension. This task has a prepackaged tool that all the other UiPath tasks are using.
The task is optional, but its advantage is that it reduces the time to execute other tasks.

![docs image](https://dev-assets.cms.uipath.com/assets/images/cicd-integrations/cicd-integrations-docs-image-214953-4f1e39e9.webp)

## CLI version selector

Select the version of the CLI that you want to use with your Azure DevOps Extension, from the **Choose a CLI version** (Required) dropdown.

The options in the dropdown list include:

* The latest available versions of the CLI.
* The environment requirements that you need to be compatible with the CLI version that you choose.

![docs image](https://dev-assets.cms.uipath.com/assets/images/cicd-integrations/cicd-integrations-docs-image-214957-af7e8850.webp)

## Path to CLI's nupkg

If your pipeline fails to access the UiPath Public Feed and can't download the CLI version that you chose from the dropdown
list, follow the steps below:

1. Download the desired CLI version from the [UiPath Public Feed](https://uipath.visualstudio.com/Public.Feeds/_artifacts/feed/UiPath-Official).
2. Place the downloaded NUPKG file inside the `Agent.Tools` directory of your build agent. Remember the path of the NUPKG file inside the `Agent.Tools` directory. For example, `$(Agent.ToolsDirectory)\nupkg\UiPath.CLI.xx.xx.xx.nupkg`
3. Use the **InstallPlatform** task, and input the path used at step 2 inside the Path to CLI's nupkg field.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/cicd-integrations/cicd-integrations-docs-image-214948-0bf19e44.webp)

## YAML pipeline

You can preview a fully parsed YAML document for the UiPath Install Platform, including the CLI version selector:

```
- task: UiPathInstallPlatform-preview@2
  displayName: 'UiPath Install Platform'
  inputs:
    cliVersion: 'WIN_22.10.8418.30339' or 'X_22.10.8418.30339' or '21.10.8319.10920
    cliNupkgPath:'$(Agent.ToolsDirectory)\nupkg\UiPath.CLI.X.22.10.8418.30339.nupkg'
```
