AM
amtrack/sfdx-plugin-auth-url
sfdx plugin for conventiently importing/exporting orgs using a Sfdx Auth Url
sfdx-plugin-auth-url
sfdx plugin for importing/exporting orgs using a Sfdx Auth Url
This is a convenient wrapper for sfdx force:org:display and sfdx force:auth:sfdxurl:store.
Use cases
Note: pbcopy/pbpaste is available on MacOS only. However you can copy/paste manually of course.
-
Authorizing a DevHub in CI environments
Locally export the Sfdx Auth Url and save the content of your clipboard as an environment variable named
SFDX_AUTH_URL_DEVHUBon your CI service.npx sfdx-plugin-auth-url auth-url:export -u devhub | pbcopyAdd the following to your build script
npx sfdx-plugin-auth-url auth-url:import -d -a devhub "${SFDX_AUTH_URL_DEVHUB}" -
Quickly sharing orgs with colleagues
npx sfdx-plugin-auth-url auth-url:export -u myorg | pbcopySend your colleague the content of your clipboard.
Then your colleague can import it usingnpx sfdx-plugin-auth-url auth-url:import -a myorg "$(pbpaste)"
On this page
Languages
TypeScript91.4%JavaScript7.8%Batchfile0.8%
Created September 24, 2019
Updated October 24, 2024