Simply run the following in your terminal
zsh <(curl -L https://raw.githubusercontent.com/WeareJH/jhira/master/express-install.sh) && source ~/.zshrc
Alternative, manual install
jhira
is distributed as a single binary with everything packaged inside -
this means you do not need PHP or Composer installed on your machine.
-
Download the latest version from the releases page
-
Make the file executable: (assuming it downloaded to the
Downloads
folder)chmod +x ~/Downloads/jhira
-
Move the executable from your Downloads folder to /opt
sudo mv ~/Downloads/jhira /opt
-
If "opt" does not exist run the command below
sudo mkdir /opt
-
Then make sure the permissions are correct on the folder
sudo chown -R $(whoami) /opt
-
-
Add this to the bottom of your zshrc or bash_profile:
export PATH="$PATH:/opt"
-
Use the following command to refresh any already open terminals
source ~/.zshrc
-
Or for bash users
source ~/.bash_profile
-
Type the following command to check all is installed OK:
jhira
-
You should see the same output as below (in features):
For help on the commands available, run the following:
jhira --help
--help
is recipe specific. So if you're in a M2 project, you'll only see
commands that are relevant to M2 sites.
Before pushing any code, run the following to ensure you catch problems before they get to CI
bash pre-push.sh