-
The tool installer task seems to make the Power Platform CLI available under these paths: On Linux: This isn't the most convenient, but very very useful! Is it possible to have the tool installer (possibly optionally) add this directory to I'd also suggest a "Power Platform CLI Task" for easier access to functionality that doesn't yet have a dedicated task. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@fowl2 (and 👀 @rpothin)
- pwsh: |
$pac = Join-Path $env:POWERPLATFORMTOOLS_PACCLIPATH pac tools
echo "##vso[task.prependpath]$pac"
displayName: 'Add PAC to Path'
- pwsh: |
$pac = Join-Path $env:POWERPLATFORMTOOLS_PACCLIPATH pac_linux tools
echo "##vso[task.prependpath]$pac"
displayName: 'Add PAC to Path' It will add the directory to I haven't tested GitHub Actions yet. But the same should be achieved by adding to GITHUB_PATH environment variable.
- name: Add pac to PATH
shell: pwsh
run: |
$pac = (Get-Item "$env:POWERPLATFORMTOOLS_PACPATH").Directory.FullName;
"$pac" | Out-File -FilePath $env:GITHUB_PATH -Append
|
Beta Was this translation helpful? Give feedback.
@fowl2 (and 👀 @rpothin)
In Azure DevOps you can use the Prepend Path logging action. Examples:
It will add the directory to
PATH
for all the subsequent tasks, and you can easily use pac in a script.I haven't tested GitHub Actions yet. But the same should be achieved by adding to GITHUB_PATH environment variable.
UPDATE 2023-12-31
:In GitHub Actions you can u…