-
Notifications
You must be signed in to change notification settings - Fork 46
Set OctopusToolPath
dalmiro grañas edited this page Apr 1, 2017
·
3 revisions
This cmdlet sets a version of Octo.exe as default. To get the value of the current default Octo.exe version run Get-OctopusToolPath or simply use $env:OctoExe
In the background [Get-OctopusToolPath] and [Set-OctopusToolPath] simply Get/Set the value of the environment variable $env:OctoExe
Name | DataType | Description |
---|---|---|
Version | System.String | Sets the value of the default Octo.exe based on the version of it found by Get-OctopustoolsVersion |
Path | System.String | Sets the value of the default Octo.exe using a literal path. The cmdlet won't validate if the path leads to an existing octo.exe file |
Set-OctopusToolPath -Version <string> [<CommonParameters>]
Set-OctopusToolPath [-Path] <string> [<CommonParameters>]
EXAMPLE 1
Sets C:\Tools\1.0.0\Octo.exe as the current default Octo.exe version
PS C:\>PS C:\> Set-OctopusToolPath -path C:\tools\1.0.0\Octo.exe
EXAMPLE 2
Uses Get-OctopusToolVersion to look for Octo.exe version 1.0.0 and then sets its path as the current default version
PS C:\>PS C:\> Set-OctopusToolPath -version 1.0.0
EXAMPLE 3
Gets the latest version of Octo.exe installed on the machine using Get-OctopusToolsVersion and sets $env:OctoExe with its path
PS C:\>PS C:\>Get-OctopusToolsVersion -latest | Set-OctopusToolPath
Getting Started
Cmdlets & Examples
- Get-OctopusChannel
- Get-OctopusConnectionInfo
- Get-OctopusDashboard
- Get-OctopusDeployment
- Get-OctopusEnvironment
- Get-OctopusFeed
- Get-OctopusLifecycle
- Get-OctopusMachine
- Get-OctopusProject
- Get-OctopusProjectGroup
- Get-OctopusRelease
- Get-OctopusResourceModel
- Get-OctopusServerThumbprint
- Get-OctopusTagSet
- Get-OctopusTeam
- Get-OctopusTenant
- Get-OctopusToolPath
- Get-OctopusToolsFolder
- Get-OctopusToolVersion
- Get-OctopusUser
- Get-OctopusVariableSet
- Install-OctopusTool
- New-OctopusConnection
- New-OctopusResource
- Remove-OctopusResource
- Set-OctopusConnectionInfo
- Set-OctopusReleaseStatus
- Set-OctopusToolPath
- Set-OctopusToolsFolder
- Update-OctopusResource
Advanced Examples
Real Life Scenarios
Release Notes