Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Log Out of an Org
To log out of an org, run org logout from a terminal (macOS and Linux) or command prompt (Windows). This example uses the alias my-hub-org to log out.
1sf org logout --target-org my-hub-orgTo log out of all your orgs, including scratch orgs, use the --all flag.
1sf org logout --allTo access an org again, other than a scratch org, reauthorize it.
When you log out of an org, it no longer shows up in the org list output. If you log out of a Dev Hub org, the associated scratch orgs show up only if you specify the --all flag.