This would allow developers to automate updating their local docker pagebuilder instances with the latest configurations with a bash script or an npm script. This is my current script, but i still have to manually click and download the gzip before i can run it:
function pbload() {
local fn=$1;
if [ $# -eq 1 ]; then local fn=$1; else local fn=`ls -t1 ~/Downloads/pb_advancelocal_*.tar.gz | head -n 1`; fi
local pb_dir=~/Documents/Advance-Local-PageBuilder-Features;
echo "using tarfile: " $fn
rm -rf /tmp/pb;
mkdir /tmp/pb;
tar -xvzf "$fn" --directory /tmp/pb;
pushd $PROJECT_REPO/docker;
rm mongo/data/*;
mv /tmp/pb/pb_advancelocal_sandbox/* mongo/data/;
npm run local-import;
popd;
}