Skip to content
A CLI for Force.com that you can use for prototype/testing.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
config.js
package.json
readme.md

readme.md

Force.com CLI in Node.js

A small little CLI you can use for prototype/testing. There are a couple of sample commands to get you started but feel free to make enhancements. It's also Promise-based which should make life easier when dealing with Force.com APIs.

To get started from terminal, clone this repo and run npm install to install the dependencies. You may also have to run chmod 777 ./bin/cli to make the file executable on OS X.

You'll then need to enter your connection parameters into config.js for Force.com. To test you connection, simply run bin/cli login which should return a connection object.

To see the available commands run bin/cli --help.

Note: each command initially authenticates to Force.com before running. You may want to cache the connection in redis to speed things up. I did not want to add this dependency which would have made it harder to get started.

You can’t perform that action at this time.