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‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑environment‑name | ‑e | Type: Value Required Name of the environment. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑no‑browser | N/A | Type: Boolean Don’t auto-open the browser for OAuth authentication. The redirect URL is printed for manual use. |
‑‑org‑type | N/A | Type: Value Required Valid Values: Production, SandboxType of the Salesforce org. Valid values: Production, Sandbox. |
‑‑pipeline‑id | N/A | Type: Value Required ID of the pipeline that contains the stage. |
‑‑stage‑id | N/A | Type: Value Required ID of the pipeline stage. |
‑‑target‑org | ‑o | Type: 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: