Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

sfdx plugin for conventiently importing/exporting orgs using a Sfdx Auth Url

Notifications You must be signed in to change notification settings

amtrack/sfdx-plugin-auth-url

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Mar 9, 2024
Oct 23, 2022
Oct 21, 2023
Oct 3, 2019
Oct 23, 2022
Nov 10, 2023
Sep 30, 2020
Nov 29, 2020
Aug 18, 2024
Oct 21, 2023
Oct 23, 2022
Oct 21, 2023
Aug 18, 2024

Repository files navigation

sfdx-plugin-auth-url

sfdx plugin for importing/exporting orgs using a Sfdx Auth Url

Actions Status

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.

  1. 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_DEVHUB on your CI service.

    npx sfdx-plugin-auth-url auth-url:export -u devhub | pbcopy

    Add the following to your build script

    npx sfdx-plugin-auth-url auth-url:import -d -a devhub "${SFDX_AUTH_URL_DEVHUB}"
  2. Quickly sharing orgs with colleagues

    npx sfdx-plugin-auth-url auth-url:export -u myorg | pbcopy

    Send your colleague the content of your clipboard. Then your colleague can import it using

    npx sfdx-plugin-auth-url auth-url:import -a myorg "$(pbpaste)"