Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

Heroku buildpack to Install Salesforce CLI

License

NotificationsYou must be signed in to change notification settings

douglascayers/heroku-salesforce-cli-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

salesforce buildpack logo

This is aHeroku Buildpack to install theSalesforce CLI.

Both thesfdx andsf executables are installed. SeeSalesforce CLI Unification for differences between them.

Usage

Using the Heroku Salesforce buildpack

heroku buildpacks:set https://github.com/douglascayers/heroku-salesforce-cli-buildpack#latest -a my-app

Locking to a buildpack version

For stability reasons, you may want to lock dependencies - including buildpacks - to a specific version.

First, find the version you want fromthe list of buildpack versions.Then, specify that version withbuildpacks:set by appending the version tag to the url:

heroku buildpacks:set https://github.com/douglascayers/heroku-salesforce-cli-buildpack#v1 -a my-app

Chain with multiple buildpacks

The buildpack automatically exports the cli binary onto the$PATH for easy use in subsequent buildpacks.

Configuration Variables

By default, the buildpack will install the latest Salesforce CLI version from thestable channel.

The buildpack automatically infers the operating system and machine architecture of the Heroku dynoto know which binary to install. However, you may set the following configuration variables to use specific values.

VariableSample ValueDefaultDescription
SALESFORCE_CLI_VERSIONv7.152.0latestWhich version to download.
SALESFORCE_CLI_OSlinux, macos(inferred)Which operating system you're installing on.
SALESFORCE_CLI_ARCHx64, arm64(inferred)Which CPU architecture you're installing on.

Salesforce recommends that you always use the latest version or release candidate of Salesforce CLI. However, you can setSALESFORCE_CLI_VERSION if you need to pin your app to aspecific version.

Example Build Log

-----> Salesforce app detected-----> Creating runtime environment       SALESFORCE_CLI_VERSION=7.152.0       SALESFORCE_CLI_OS=darwin       SALESFORCE_CLI_ARCH=x64-----> Downloading Salesforce CLI       https://developer.salesforce.com/media/salesforce-cli/sfdx/versions/7.152.0/3054818/sfdx-v7.152.0-3054818-darwin-x64.tar.gz-----> Installing Salesforce CLI       sfdx-cli/7.151.1 darwin-x64 node-v16.15.0       @salesforce/cli/1.28.0 darwin-x64 node-v16.15.0-----> Successfully installed Salesforce CLI

Development

  • Installshell-format Visual Studio Code extension
  • Add the following to yoursettings.json
    "shellformat.flag":"-i 2 -ci -bn -sr","shellformat.effectLanguages": ["shellscript","dockerfile","dotenv","hosts","ignore","gitignore","properties", ]

[8]ページ先頭

©2009-2025 Movatter.jp