Created
August 23, 2019 14:51
-
-
Save sohalloran/ea65818009e5c6035ced19857975e113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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