Sunday 15 December 2013

How to start using force.com CLI


Here is a small instruction to start using force.com CLI for windows. Download force.com CLI executable from https://force-cli.heroku.com/.


After downloaded the executable file. Open the force.exe program from the command line.
Lets say if you have downloaded into D drive, open the force.exe from command prompt.


Open command prompt


  • type cmd in run
  • type cd d:\
  • then enter force.exe


Now you have loaded force.com CLI in command prompt.It displays all the available commands in the command line.


Login to salesforce to start using it on your salesforce instance.


Type force login


It will open login.salesforce.com in the browser. If you want to connect to our sandbox instance, then after opening the browser window replace the login.salesforce.com to test.salesforce.com. Do not remove/change the remaining strings in the url.


Once you have logged in successfully you can start using other commands from the command line.


The command i found very exciting is the export command. It will export all your metadata from your salesforce instance just by one line of code.


force export


Hope you may enjoy using force.com CLI..!!