Created
November 2, 2018 03:38
-
-
Save msrivastav13/60e6b652e414847c16a28ddac71bf72a to your computer and use it in GitHub Desktop.
deploypkg.sh
This file contains hidden or 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
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