Skip to content

Instantly share code, notes, and snippets.

@ChuckJonas
Last active July 11, 2019 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChuckJonas/fd90469b209c2b81101e382c8b8d16fb to your computer and use it in GitHub Desktop.
Save ChuckJonas/fd90469b209c2b81101e382c8b8d16fb to your computer and use it in GitHub Desktop.
salesforce vscode setup
{
"version": "2.0.0",
"tasks": [
{
"label": "retrieve",
"type": "shell",
"command": "sfdx force:mdapi:retrieve -k deploy/package.xml -r deploy/",
"problemMatcher": []
},
{
"label": "deploy",
"type": "shell",
"command": " if [ \"${input:confirm}\" != \"yes\" ]; then exit 1; fi && sfdx force:mdapi:deploy --zipfile deploy/unpackaged.zip -w 10000 -u your-production-alias",
"problemMatcher": []
},
{
"label": "deploy-select-test",
"type": "shell",
"command": " if [ \"${input:confirm}\" != \"yes\" ]; then exit 1; fi && sfdx force:mdapi:deploy --zipfile deploy/unpackaged.zip -w 10000 -u your-production-alias --testlevel RunSpecifiedTests -r ${input:tests}",
"problemMatcher": []
}
],
"inputs": [
{
"type": "pickString",
"id": "confirm",
"description": "Are you sure you want to deploy? (enter y to continue)",
"options": ["yes", "no"],
"default": "no"
},
{
"type": "promptString",
"id": "tests",
"description": "Enter Tests to run, seperated by `,`",
"default": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment