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_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.
sf helpsf help add-connection
cd project_directorysf create ApexClass ApexClassName
cd project_directorysf add ApexClass ApexClassName
cd project_directorysf save ApexClass:ApexClassName
cd project_directorysf delete ApexClass ApexClassName
cd project_directorysf delete ApexClass ApexClassName --localOnly
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