liferay
- Liferay Client Extension Control CLITool for performing Liferay Client Extension related operations from the command line.
curl
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/liferay-darwin-arm64 -O
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/liferay-darwin-amd64 -O
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/checksums.txt -o checksum.txt
Validate the binary against the checksum file
shasum -c <(grep liferay-darwin-arm64 checksum.txt)
shasum -c <(grep liferay-darwin-amd64 checksum.txt)
If valid, the output is:
<binary>: OK
If the check fails, shasum
exits with nonzero status and prints output similar to:
<binary>: FAILED
shasum: WARNING: 1 computed checksum did NOT match
chmod +x ./liferay-darwin-*
PATH
and rename it to liferay
for convenience.
sudo mv ./liferay-darwin-* /usr/local/bin/liferay
sudo chown root: /usr/local/bin/liferay
Make sure /usr/local/bin
is in your PATH
environment variable.
liferay --version
curl
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/liferay-linux-amd64 -O
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/checksums.txt -o checksum.txt
Validate the binary against the checksum file
shasum -c <(grep liferay-linux-amd64 checksum.txt)
If valid, the output is:
<binary>: OK
If the check fails, shasum
exits with nonzero status and prints output similar to:
<binary>: FAILED
shasum: WARNING: 1 computed checksum did NOT match
chmod +x ./liferay-linux-amd64
PATH
and rename it to liferay
for convenience.
sudo mv ./liferay-linux-amd64 /usr/local/bin/liferay
sudo chown root: /usr/local/bin/liferay
Make sure /usr/local/bin
is in your PATH
environment variable.
liferay --version
curl
curl.exe -fsSL "https://github.com/liferay/liferay-cli/releases/latest/download/liferay-windows-arm64.exe" -O
curl.exe -fsSL "https://github.com/liferay/liferay-cli/releases/latest/download/liferay-windows-amd64.exe" -O
curl -fsSL https://github.com/liferay/liferay-cli/releases/latest/download/checksums.txt -o checksum.txt
Validate the binary against the checksum file
CertUtil
's output to the checksum file downloaded:
CertUtil -hashfile liferay-windows-arm64.exe SHA256
findstr liferay-windows-arm64.exe checksum.txt
CertUtil -hashfile liferay-windows-amd64.exe SHA256
findstr liferay-windows-amd64.exe checksum.txt
liferay
for convenience and move the binary to a location which can be added to your system PATH
.
ren "liferay-windows-arm64.exe" "liferay.exe" & move /Y "liferay.exe" "%USERPROFILE%\AppData\Local\Programs\Common"
ren "liferay-windows-amd64.exe" "liferay.exe" & move /Y "liferay.exe" "%USERPROFILE%\AppData\Local\Programs\Common"
%USERPROFILE%\AppData\Local\Programs\Common
to your PATH
system variable.
env
.%user%
click the Path
entry and select |Edit|.%USERPROFILE%\AppData\Local\Programs\Common
liferay --version
install.sh
scriptSee Known Issues above for some issues with Linux.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/liferay/liferay-cli/HEAD/install.sh)"
liferay --version
liferay
platform specific binaryWe have a new Getting Started
guide available here.
LOCALDEV_RESOURCES_DIR=$(liferay config get localdev.resources.dir)
to obtain the path where localdev resources are synced${LOCALDEV_RESOURCES_DIR}/docker/images/localdev-server/workspace/gradle.properties
file to set the the docker image or product key.liferay ext refresh
liferay ext start
rm -rf ~/.lcect*
del /q /s %USERPROFILE%\.liferay/cli.yaml
rd /q /s %USERPROFILE%\.liferay/cli