salesforce source code migration in terminal
Salesforce Source Code Migration in Terminal (X11, xterm, bash, sh, shell, unix)
npm install xforce
You will need to generate a consumer key and a consumer secret. These tokens allow xforce to access your salesforce environment.
$ cd$ mkdir my-first-project; cd my-first-project$ xf init$ xf config consumer_key <your consumer key here>$ xf config consumer_secret <your consumer secret here>$ xf config username <your username here>$ xf config password <your password here>
The name of the project directory can be anything, my-first-project is just an example.
start a new project in the current directory.
set configuration parameters. config data is stored in ./.xf/config.json.
add local files to the project. content type is currently inferred by extension (.cls = class, .page = page, .trigger = trigger, and .component = component).
remove files from the project.
pull a set of files from salesforce, creating new files in the current directory if the files have not yet been added to the project or overwriting existing files in their individual directories if they have been added to the project.
push a set of files to salesforce. these files do not need to exist in salesforce beforehand.