you'll need to install google's zx command line tool and be running node 16 or later
npm i -g zxSave this script in its own directory somewhere like
mb-jars/
mb-jars.mjsThen add an alias to your .zshrc or .bashrc or whatever
alias mb-jar="cd ~/projects/mb-jars && zx mb-jars.mjs"Simply give it the version you want to run and it will download and run that jar
mb-jar 47.2Will download and run the enterprise 47.2 jar on port 3472, and create a database for metabase v47
mb-jar 46.8 ossWill download and run the oss 46.8 jar on port 3468, and create a database for metabase v46