Socket
Book a DemoInstallSign in
Socket

sf-tool

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sf-tool

A CLI to speed up SalesForce development. Syncs and saves files via Metadata API

1.11.0
latest
Source
npmnpm
Version published
Weekly downloads
44
2100%
Maintainers
1
Weekly downloads
 
Created
Source

SalesForce Development Tool

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.

Installation

These are one time instructions for installing the tool.

  • Install Node.js
  • Run the following command
npm install -g sf-tool

Updating

Updating is simple just run the following command.

npm update -g sf-tool

Documentation

All documentation is stored in the docs folder. The API reference can be found in the reference folder.

Example Usage

Create a SalesForce Tool Project

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.

Access Command Help

sf help
sf help add-connection

Create New ApexClass

cd project_directory
sf create ApexClass ApexClassName

Retrieve Existing ApexClass From SalesForce for Editing

cd project_directory
sf add ApexClass ApexClassName

Save ApexClass Changes to SalesForce

cd project_directory
sf save ApexClass:ApexClassName

Delete ApexClass From Project and SalesForce

cd project_directory
sf delete ApexClass ApexClassName

Delete ApexClass From Project

cd project_directory
sf delete ApexClass ApexClassName --localOnly

Deploy to Production Instance

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

Keywords

sf

FAQs

Package last updated on 07 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.