cliferay
Daily scripts to work with Liferay
The scripts can be run from any folder:
- If the folder is outside the repo it will use LIFERAY_HOME.
- If the folder is inside the repo it will use that repo.
For example every day I open my terminal and type:
> cliferay morning
and it will just work no matter which folder I am in.
Usage:
cliferay COMMAND
cliferay [COMMAND] --help | -h
cliferay --version | -v
cliferay Commands:
update Update cliferay to the latest version
Git Commands:
sync Sync fork and local copy with upstream
brian Forward an existing PR to Brian and close it
set-ticket Set the Jira ticket on your local commits
owner Output the owner of a path based on CODEOWNERS
tickets Get all Jira tickets from the output of git log
stats Calculate different Git stats
Build Commands:
build Run ant all
ij Run liferay-intellij
gw Run gradlew
ant Run ant
Module Commands:
changed-modules List changed modules
super-deploy Deploy changed modules
format-source Run SF globally
deploy Deploy the current folder
baseline Run baseline in the current folder
poshi Run a Poshi test
build-rest Run buildREST globally
Server Commands:
run Start the server
gogo Open the Gogo Shell
kill Kill the server
nuke Delete all persisted data
tomcat-folder Print the current tomcat folder
elastic-search Query the Elastic Search index
db-name Print the database name (lportal)
Commands:
morning Sync, build, ij, nuke and run
folder Print the source folder
curl Send predefined HTTP requests to a running portal
backport Backport commits to other branches
jira Open a Jira ticket
init Initialize cliferay
Options:
--help, -h
Show this help
--version, -v
Show version number
Environment Variables:
LIFERAY_HOME (required)
Location of your main liferay-portal clone
DEBUG
Set to true to enable echoing of all the commands being run
- Clone this repo.
- Add it to your path:
export PATH=/path/to/cliferay:$PATH
- Run it!
cliferay --help
- If you want to enable bash completions add this to your
.bash_profile
,.zshrc
or similar:eval "$(cliferay completions)"
- If you want to enable aliases (like gw) add this to your
.bash_profile
,.zshrc
or similar:eval "$(cliferay aliases)"
cliferay
has been created with https://bashly.dannyb.co. To be able to contribute you'll need to get familiar with it first.
- Make the change inside
src/commands
. - Run
./generate.sh
. - Test it
cliferay [COMMAND] ...
- Submit a pull request!
- Modify
src/bashly.yml
with your new command. - Run
./generate.sh
. - Implement your command inside
src/commands
. - Run
./generate.sh
again. - Test it
cliferay [COMMAND] ...
- Submit a pull request!