Skip to content

Instantly share code, notes, and snippets.

@sohalloran
Created August 23, 2019 14:51
Show Gist options
  • Save sohalloran/ea65818009e5c6035ced19857975e113 to your computer and use it in GitHub Desktop.
Save sohalloran/ea65818009e5c6035ced19857975e113 to your computer and use it in GitHub Desktop.
while getopts m:b:d:n: option
do
case "${option}"
in
m) MESSAGE=${OPTARG};;
b) BRANCH=${OPTARG};;
d) DEFAULTORG=${OPTARG};;
n) SCRATCHORGNAME=${OPTARG};;
esac
done
git add .
git commit -m "${MESSAGE}"
git push -u origin ${BRANCH}
sfdx force:org:create -v ${DEFAULTORG} -f config/project-scratch-def.json -a ${SCRATCHORGNAME} --wait 3
sfdx force:org:display -u ${SCRATCHORGNAME}
sfdx force:source:push -u ${SCRATCHORGNAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment