-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support targeting browser in login command (#537)
* feat: support targeting browser in login command * refactor: using flags.enum instead of flag.string
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"description": "authorize an org using the web login flow\nIf you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log in to a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.", | ||
"description": "authorize an org using the web login flow\nIf you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log in to a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.", | ||
"examples": [ | ||
"$ sfdx auth:web:login -a TestOrg1", | ||
"$ sfdx auth:web:login -i <OAuth client id>", | ||
"$ sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com" | ||
"$ sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com", | ||
"$ sfdx auth:web:login -a TestOrg1 -b firefox" | ||
], | ||
"browser": "browser where the org opens", | ||
"deviceWarning": "auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead.", | ||
"invalidClientId": "Invalid client credentials. Verify the OAuth client secret and ID. %s" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters