@hysh/sff

0.0.5 • Public • Published

sff

Simple command line tool to download Attachments from Salesforce Case.

Intallation

$ npm install -g @hysh/sff

User / Pass +Token

USERNAME and PASSWORD+TOKEN hash to be set as Environment Variable to download files. TOKEN is available from here. (https://help.salesforce.com/articleView?id=user_security_token.htm&type=5)

Note: This tool uses REST API to Salesforce. Please refere here for the limits.

- Mac/Unix
$ export SFF_USERNAME=yourname@company.com
$ export SFF_PASSROKEN=passwordtoken

- Windows powershell
> set $env:SFF_USERNMAE="username"
> set $env:SFF_PASSTOKEN="passwordtoken"

- Windows CMD
> set SFF_USERNMAE="username"
> set SFF_PASSTOKEN="passwordtoken"
$ sff
 sff .. Downloads attachments from SalesForce to current directory
 == USAGE ==
 # sff <CaseNumber> [-a] [file1 file2 file3...]
 # sff 00001234                 ........  List Attachment
 # sff 00001234 file1 file2     ........  Download Attachments
 # sff 00001234 -a              ........  Download All Attachments

Package Sidebar

Install

npm i @hysh/sff

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

12.3 kB

Total Files

7

Last publish

Collaborators

  • hysh