devops stage environment add

Add a Salesforce environment to a pipeline stage.

This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑environment‑name‑eType: Value
Required

Name of the environment.
‑‑flags‑dirN/AType: Value

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

Format output as json.
‑‑no‑browserN/AType: Boolean

Don’t auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.
‑‑org‑typeN/AType: Value
Required
Valid Values: Production, Sandbox

Type of the Salesforce org. Valid values: Production, Sandbox.
‑‑pipeline‑idN/AType: Value
Required

ID of the pipeline that contains the stage.
‑‑stage‑idN/AType: Value
Required

ID of the pipeline stage.
‑‑target‑org‑oType: Value
Required

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

Add a production environment to a stage using its ID: