Install OpenLegacy CLI

 

 

Install OpenLegacy CLI

hub-support.openlegacy.com

 

--

PS C:\WINDOWS\system32> java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> choco source add --source=https://openlegacy.jfrog.io/artifactory/api/nuget/nuget-chocolatey --name=openlegacy
Chocolatey v0.10.15
Added openlegacy - https://openlegacy.jfrog.io/artifactory/api/nuget/nuget-chocolatey (Priority 0)
PS C:\WINDOWS\system32> choco install openlegacy-cli
Chocolatey v0.10.15
Installing the following packages:
openlegacy-cli
By installing you accept licenses for the packages.
Progress: Downloading openlegacy-cli 1.21.1... 100%

openlegacy-cli v1.21.1
openlegacy-cli package files install completed. Performing other installation steps.
The package openlegacy-cli wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y

Downloading openlegacy-cli
from 'https://ol-public-artifacts.s3.amazonaws.com/openlegacy-cli/1.21.1/windows/openlegacy-cli.zip'
Progress: 100% - Completed download of C:\Users\Yasu\AppData\Local\Temp\chocolatey\openlegacy-cli\1.21.1\openlegacy-cli.zip (113.27 MB).
Download of openlegacy-cli.zip (113.27 MB) completed.
Hashes match.
Extracting C:\Users\Yasu\AppData\Local\Temp\chocolatey\openlegacy-cli\1.21.1\openlegacy-cli.zip to C:\ProgramData\chocolatey\lib\openlegacy-cli\tools...
C:\ProgramData\chocolatey\lib\openlegacy-cli\tools
PATH environment variable does not have C:\ProgramData\chocolatey\lib\openlegacy-cli\tools/ol/bin in it. Adding...
*********************************************************************************************
Note that the CLI require java 11, please make sure its installed and JAVA_HOME is configured
*********************************************************************************************
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of openlegacy-cli was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\openlegacy-cli\tools'

Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\WINDOWS\system32>

 

 

PS C:\WINDOWS\system32> refreshenv
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..

 

 

PS C:\WINDOWS\system32> C:\ProgramData\chocolatey\lib\openlegacy-cli\tools\ol\bin\ol --version

OL-HUB CLI version 1.21.1
OL Hub Repository version 1.21.1
OL Hub Core version 4.6.48
PS C:\WINDOWS\system32>