Skip to content

A buildpack that installs the Salesforce DX CLI in Heroku

License

Notifications You must be signed in to change notification settings

heroku/salesforce-cli-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for the Salesforce CLI

This is the official Heroku buildpack for installing the Salesforce CLI into your Heroku dyno. It will also install jq, a command-line tool that is like sed for JSON data, which makes it easy to interact with JSON output from the Salesforce CLI.

Usage

To use sfdx and jq, you simply need to export the appropriate paths:

export PATH="$BUILD_DIR/vendor/sfdx/cli/bin:$PATH"
export PATH="$BUILD_DIR/vendor/sfdx/jq:$PATH"

The $BUILD_DIR is the path where your apps source is stored on the Heroku dyno.