Skip to main content
cops auth logout clears the currentProfile pointer in config.json. The profile itself — including all stored credentials and URLs — is not deleted. You can reactivate it at any time with cops auth use <name>.

Usage

cops auth logout
This command takes no flags or arguments.

Examples

cops auth logout
After running the command:
Current profile cleared. Use `cops auth use <profile>` or `cops auth login`.

What happens after logout

With no active profile set, any cops command that requires authentication will exit with an error:
No profile selected. Run: cops auth login
To resume normal operation, either reactivate an existing profile or create a new one:
# Reactivate an existing profile
cops auth use dc-prod

# Or create a new profile
cops auth login

Notes

cops auth logout does not delete the profile or its credentials. To permanently remove a profile, use cops auth delete <name>.

cops auth use

Reactivate a saved profile.

cops auth login

Create a new profile.

cops auth delete

Permanently delete a profile.

Build docs developers (and LLMs) love