Created
November 24, 2025 19:04
-
-
Save valorad/f6f4817a1d1a8ae9128f1e2744191b1e to your computer and use it in GitHub Desktop.
Salesforce authorzize an org - JWT
This file contains hidden or 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
| # Change this section accordingly | |
| DEV_HUB_CLIENT_ID="(CLIENT_ID_OF_EXTERNAL_CLIENT_APP)" | |
| DEV_HUB_PRIVATE_KEY_PATH="(path/to/private/key/file)" | |
| SIGNUP_USERNAME="(ADMIN_USERNAME)" | |
| LOGIN_URL="https://(ORG_MY_DOMAIN_NAME)" | |
| DEV_HUB_ALIAS="(myAwesomeDevelopmentOrg)" | |
| # Log in with JWT | |
| sf org login jwt \ | |
| --alias $DEV_HUB_ALIAS \ | |
| --client-id $DEV_HUB_CLIENT_ID \ | |
| --jwt-key-file $DEV_HUB_PRIVATE_KEY_PATH \ | |
| --username $SIGNUP_USERNAME \ | |
| --instance-url $LOGIN_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment