File:
auth.nu
3 exported commands
0 internal commandssf login
Log in to Salesforce and set $env.SALESFORCE.
Supports two modes
1. Password + Security Token (SOAP login)
sf login --username user@example.com --password XXXXXXXX --token XXXXXXXX
2. Direct session access
sf login --session-id XXXXXXXX --instance yourdomain.my.salesforce.com
Usage
sf login {flags}
Flags
-h, --help- Display the help message for this command
--username <string>- Salesforce username
--password <string>- Password for the username
--token <string>- Security token for the username
--session-id <string>- Direct access token (alternative to user/pass)
--instance <string>- Domain of your Salesforce instance (yourdomain.my.salesforce.com)
--domain <string>- Login domain: "login" (production) or "test" (sandbox). Default: "login"
--version <string>- Salesforce API version. Default: "59.0"
Input/output types
| # | input | output |
|---|---|---|
| 0 | any | any |
sf logout
Clear the Salesforce session.
Usage
sf logout
Flags
-h, --help- Display the help message for this command
Input/output types
| # | input | output |
|---|---|---|
| 0 | any | any |
sf whoami
Show current Salesforce session information.
Usage
sf whoami
Flags
-h, --help- Display the help message for this command
Input/output types
| # | input | output |
|---|---|---|
| 0 | any | any |