A CLI to speed up SalesForce development. Syncs and saves files via Metadata API
This is a command line development tool that allows for the editing and saving of SalesForce source code or other metadata types such as objects, layouts and fields. This tool also allows Ember Applications to easily be built into VisualForce pages. It works under Windows, OS X, or Linux.
These are one time instructions for installing the tool.
npm install -g sf-tool
Updating is simple just run the following command.
npm update -g sf-tool
All documentation is stored in the docs folder.
cd project_directorysf init
Then sign in with your salesforce credentials. A refresh token is stored in the project settings so sign in is not required every time.
cd project_directorysf add ApexClass ApexClassName
cd project_directorysf save ApexClass:ApexClassName
Add the production environment connection:
cd project_directorysf add-connection production --server=login.salesforce.com
Sign in with credentials, then deploy the changes
sf save ApexClass:ApexClassName --conn=production
sf helpsf help add-connection