org auth show-sfdx-auth-url

Show the SFDX Auth URL for an org.

Description for org auth show-sfdx-auth-url 

Shows the SFDX Auth URL for an org. This URL is only available for orgs authenticated via a web-based OAuth flow. This command prompts for confirmation before revealing it. Skip confirmation by specifying either the –no-prompt or –json flag.

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑no‑prompt‑pType: Boolean

Skip the security warning and reveal the SFDX Auth URL without confirmation.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Examples for org auth show-sfdx-auth-url 

Show the SFDX Auth URL for the default org:

1sf org auth show-sfdx-auth-url

Show the SFDX Auth URL for an org with alias “my-org”:

1sf org auth show-sfdx-auth-url --target-org my-org

Show the SFDX Auth URL without the confirmation prompt:

1sf org auth show-sfdx-auth-url --target-org my-org --no-prompt

Get the SFDX Auth URL as JSON for use in scripts:

1sf org auth show-sfdx-auth-url --target-org my-org --json