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
cd project_directory sf 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.
sf help sf help add-connection
cd project_directory sf create ApexClass ApexClassName
cd project_directory sf add ApexClass ApexClassName
cd project_directory sf save ApexClass:ApexClassName
cd project_directory sf delete ApexClass ApexClassName
cd project_directory sf delete ApexClass ApexClassName --localOnly
Add the production environment connection:
cd project_directory sf add-connection production --server=login.salesforce.com
Sign in with credentials, then deploy the changes
sf save ApexClass:ApexClassName --conn=production