@salesforce/plugin-auth 2.2.23 → 2.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -50,11 +50,11 @@ yarn install
50
50
  yarn build
51
51
  ```
52
52
 
53
- To use your plugin, run using the local `./bin/run` or `./bin/run.cmd` file.
53
+ To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
54
54
 
55
55
  ```bash
56
56
  # Run using local run file.
57
- ./bin/run auth
57
+ ./bin/dev auth
58
58
  ```
59
59
 
60
60
  There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
@@ -1 +1 @@
1
- {"version":"2.2.23","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:list"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[],"flagsConfig":{}},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","strict":true,"usage":"<%= command.id %> [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:logout"],"examples":["$ sfdx auth:logout -u me@my.org","$ sfdx auth:logout -a","$ sfdx auth:logout -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"all":{"name":"all","type":"boolean","char":"a","description":"include all authenticated orgs","required":false,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"supportsUsername":true,"flagsConfig":{"all":{"kind":"boolean","char":"a","description":"include all authenticated orgs","longDescription":"Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.","required":false,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false,"type":"boolean"}}},"auth:accesstoken:store":{"id":"auth:accesstoken:store","description":"authorize an org using an existing Salesforce access token\nBy default, the command runs interactively and asks you for the access token. If you previously authorized the org, the command prompts whether you want to overwrite the local file. Specify --noprompt to not be prompted.\nTo use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --noprompt parameter. \"<org id>!<accesstoken>\"","strict":true,"usage":"<%= command.id %> -r <url> [-d] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:accesstoken:store"],"examples":["$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com","$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx","$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","required":true,"multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"flagsConfig":{"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","default":false,"allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","default":false,"allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"default":false,"allowNo":false,"type":"boolean"}}},"auth:device:login":{"id":"auth:device:login","description":"authorize an org using a device code\nYou must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.","strict":true,"usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:device:login"],"examples":["$ sfdx auth:device:login -d -a TestOrg1","$ sfdx auth:device:login -i <OAuth client id>","$ sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"}}},"auth:jwt:grant":{"id":"auth:jwt:grant","description":"authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\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 specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.","strict":true,"usage":"<%= command.id %> -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:jwt:grant"],"examples":["$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>","$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg","$ sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"username":{"name":"username","type":"option","char":"u","description":"authentication username","required":true,"multiple":false},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true,"multiple":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"username":{"kind":"string","char":"u","description":"authentication username","required":true,"input":[],"multiple":false,"type":"option"},"jwtkeyfile":{"kind":"filepath","char":"f","description":"path to a file containing the private key","required":true,"input":[],"multiple":false,"type":"option"},"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"auth:sfdxurl:store":{"id":"auth:sfdxurl:store","description":"authorize an org using an SFDX auth URL stored within a file\nThe SFDX auth URL must have the format \"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>\". NOTE: The SFDX auth URL uses the \"force\" protocol, and not \"http\" or \"https\". Also, the \"instanceUrl\" inside the SFDX auth URL doesn't include the protocol (\"https://\").\n\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow. \n\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.","strict":true,"usage":"<%= command.id %> -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:sfdxurl:store"],"examples":["$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>","$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sfdxurlfile":{"name":"sfdxurlfile","type":"option","char":"f","description":"path to a file containing the sfdx url","required":true,"multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"sfdxurlfile":{"kind":"filepath","char":"f","description":"path to a file containing the sfdx url","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"auth:web:login":{"id":"auth:web:login","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.","strict":true,"usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:web:login"],"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"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}}}}
1
+ {"version":"2.2.25","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:list"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[],"flagsConfig":{}},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","strict":true,"usage":"<%= command.id %> [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:logout"],"examples":["$ sfdx auth:logout -u me@my.org","$ sfdx auth:logout -a","$ sfdx auth:logout -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"all":{"name":"all","type":"boolean","char":"a","description":"include all authenticated orgs","required":false,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"supportsUsername":true,"flagsConfig":{"all":{"kind":"boolean","char":"a","description":"include all authenticated orgs","longDescription":"Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.","required":false,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false,"type":"boolean"}}},"auth:accesstoken:store":{"id":"auth:accesstoken:store","description":"authorize an org using an existing Salesforce access token\nBy default, the command runs interactively and asks you for the access token. If you previously authorized the org, the command prompts whether you want to overwrite the local file. Specify --noprompt to not be prompted.\nTo use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --noprompt parameter. \"<org id>!<accesstoken>\"","strict":true,"usage":"<%= command.id %> -r <url> [-d] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:accesstoken:store"],"examples":["$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com","$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx","$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","required":true,"multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"flagsConfig":{"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","default":false,"allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","default":false,"allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"default":false,"allowNo":false,"type":"boolean"}}},"auth:device:login":{"id":"auth:device:login","description":"authorize an org using a device code\nYou must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.","strict":true,"usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:device:login"],"examples":["$ sfdx auth:device:login -d -a TestOrg1","$ sfdx auth:device:login -i <OAuth client id>","$ sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"}}},"auth:jwt:grant":{"id":"auth:jwt:grant","description":"authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\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 specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.","strict":true,"usage":"<%= command.id %> -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:jwt:grant"],"examples":["$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>","$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg","$ sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"username":{"name":"username","type":"option","char":"u","description":"authentication username","required":true,"multiple":false},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true,"multiple":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"username":{"kind":"string","char":"u","description":"authentication username","required":true,"input":[],"multiple":false,"type":"option"},"jwtkeyfile":{"kind":"filepath","char":"f","description":"path to a file containing the private key","required":true,"input":[],"multiple":false,"type":"option"},"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"auth:sfdxurl:store":{"id":"auth:sfdxurl:store","description":"authorize an org using an SFDX auth URL stored within a file\nThe SFDX auth URL must have the format \"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>\". NOTE: The SFDX auth URL uses the \"force\" protocol, and not \"http\" or \"https\". Also, the \"instanceUrl\" inside the SFDX auth URL doesn't include the protocol (\"https://\").\n\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow. \n\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.","strict":true,"usage":"<%= command.id %> -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:sfdxurl:store"],"examples":["$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>","$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sfdxurlfile":{"name":"sfdxurlfile","type":"option","char":"f","description":"path to a file containing the sfdx url","required":true,"multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"sfdxurlfile":{"kind":"filepath","char":"f","description":"path to a file containing the sfdx url","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"auth:web:login":{"id":"auth:web:login","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.","strict":true,"usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:web:login"],"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"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}}}}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-auth",
3
3
  "description": "plugin for sfdx auth commands",
4
- "version": "2.2.23",
4
+ "version": "2.2.25",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "main": "lib/index.js",
8
8
  "dependencies": {
9
- "@oclif/core": "^1.20.2",
10
- "@salesforce/command": "^5.2.18",
9
+ "@oclif/core": "^1.20.4",
10
+ "@salesforce/command": "^5.2.27",
11
11
  "@salesforce/core": "^3.32.1",
12
12
  "@salesforce/kit": "^1.7.0",
13
13
  "chalk": "^4.1.2",
@@ -16,7 +16,7 @@
16
16
  "tslib": "^2"
17
17
  },
18
18
  "devDependencies": {
19
- "@oclif/plugin-command-snapshot": "^3",
19
+ "@oclif/plugin-command-snapshot": "^3.2.11",
20
20
  "@salesforce/cli-plugins-testkit": "^3.2.6",
21
21
  "@salesforce/dev-config": "^3.1.0",
22
22
  "@salesforce/dev-scripts": "^3.1.0",
@@ -24,25 +24,25 @@
24
24
  "@salesforce/plugin-config": "^1.4.22",
25
25
  "@salesforce/prettier-config": "^0.0.2",
26
26
  "@salesforce/ts-sinon": "^1.4.2",
27
- "@swc/core": "^1.3.16",
27
+ "@swc/core": "^1.3.18",
28
28
  "@types/fs-extra": "^9.0.13",
29
29
  "@types/graceful-fs": "^4.1.5",
30
30
  "@types/mkdirp": "^1.0.1",
31
31
  "@typescript-eslint/eslint-plugin": "^5.42.1",
32
- "@typescript-eslint/parser": "^5.42.1",
32
+ "@typescript-eslint/parser": "^5.43.0",
33
33
  "chai": "^4.2.0",
34
- "eslint": "^8.26.0",
34
+ "eslint": "^8.28.0",
35
35
  "eslint-config-prettier": "^8.5.0",
36
36
  "eslint-config-salesforce": "^1.1.0",
37
37
  "eslint-config-salesforce-license": "^0.1.6",
38
38
  "eslint-config-salesforce-typescript": "^1.1.1",
39
39
  "eslint-plugin-header": "^3.0.0",
40
40
  "eslint-plugin-import": "2.26.0",
41
- "eslint-plugin-jsdoc": "^39.6.2",
41
+ "eslint-plugin-jsdoc": "^39.6.4",
42
42
  "husky": "^7.0.4",
43
43
  "mocha": "^9.1.3",
44
44
  "nyc": "^15.1.0",
45
- "oclif": "^2.6.3",
45
+ "oclif": "^3.2.28",
46
46
  "prettier": "^2.7.1",
47
47
  "pretty-quick": "^3.1.0",
48
48
  "shx": "0.3.4",
@@ -120,8 +120,8 @@
120
120
  "pretest": "sf-compile-test",
121
121
  "reformat": "prettier --config .prettierrc --write './*.{js,json,md}' './**/*.{ts,json,md}'",
122
122
  "test": "sf-test",
123
- "test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
124
- "test:deprecation-policy": "./bin/run snapshot:compare",
123
+ "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
124
+ "test:deprecation-policy": "./bin/dev snapshot:compare",
125
125
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
126
126
  "version": "oclif readme"
127
127
  },
@@ -129,7 +129,7 @@
129
129
  "access": "public"
130
130
  },
131
131
  "sfdx": {
132
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.2.23.crt",
133
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.2.23.sig"
132
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.2.25.crt",
133
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.2.25.sig"
134
134
  }
135
135
  }