Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created November 2, 2018 03:38
Show Gist options
  • Save msrivastav13/60e6b652e414847c16a28ddac71bf72a to your computer and use it in GitHub Desktop.
Save msrivastav13/60e6b652e414847c16a28ddac71bf72a to your computer and use it in GitHub Desktop.
deploypkg.sh
if [ $# -lt 1 ]
then
echo Usage: deploypkg.sh orgalias
exit
fi
## Create a temp directory for mdapi
mkdir ./mdapipkg
sfdx force:source:convert -r ./force-app -d ./mdapi
## Deploy to the respective org
sfdx force:mdapi:deploy -d mdapipkg/ -u $1 -w 30
rm -rf ./mdapipkg # Delete the mdapipkg source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment