Skip to content

Instantly share code, notes, and snippets.

View oriolete's full-sized avatar

Oriol Farras Romero oriolete

View GitHub Profile
| | Salesforce CLI | ANT Migration tool |
|--------------------|------------------------------------|-----------------------------------|
| Security | Authorization credentials need not | Authorization credentials need to |
| | be saved to file | be saved on file |
| Team Collaboration | Easier collaboration via scratch | Prevents collaboration on related |
| | orgs and artifacts | metadata items |
| Commands | Wide range of commands and finer | Limited set of commands |
| | control | |
| Version Updates | Automatic/click of button | Needs some manual steps |
@oriolete
oriolete / GenerateFullPackageXML.sh
Last active March 12, 2021 10:41 — forked from benahm/GenerateFullPackageXML.sh
Generate a full Package.xml using the Salesforce CLI
#!/bin/sh
#
# Generate a full package xml using the Salesforce CLI
# Requirements :
# * Salesforce CLI
# * jq
Description Git Command
Clone an existing repository git clone "your URL"
Create a new local repository git init
Changed files in your working directory git status
Changes to tracked files git diff
Add all current changes to the next commit git add
Add some chang
@oriolete
oriolete / deployDestructiveChange.sh
Last active November 28, 2019 13:15 — forked from benahm/deployDestructiveChange.sh
Deploy a destructive change using the Salesforce CLI
#!/bin/sh
#
# author : benahm
# description : deploy a destructive change
#function to exit after input validations
die () {
echo >&2 "$@"
exit 1
}

This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.

When code is no longer used, but can not be deleted from your org, add the @deprecated annotation to the File or Method Header.