function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lakshya KanchanLakshya Kanchan 

Browser window remains open even after logging out of org using CLI

Hi

I am using SFDX CLI and bat files for my business requirements.

I am logging in the org, performing some scripting code and then logging out.

Login Command : sfdx auth:web:login -s -a tempOrg -r https://login.salesforce.com
Logout Command : sfdx force:auth:logout -u tempOrg --noprompt

I am able to access the org in the web browser even after logging out to the org.

I need to make the org inaccessible in the browser after logging out.

Regards,
Lakshya
VinayVinay (Salesforce Developers) 
Hi Lakshya,

It might be due to browser cache, can you clear cache and recheck?

Thanks,
Lakshya KanchanLakshya Kanchan
Hi Vinay

Thanks for the response.
Actually when we are using the web:auth:login command, a browser window opens where we enter the credentials and authorize the CLI. The browser window remains open even after using the force:auth:logout command. I want to close the browser window after we log out using CLI.
Browser cache clearing approach doesnt seem that feasible for the requirement bcoz we dont want any manual intervention. Everything needs to be automated.

Regards,
Lakshya