Skip to content

av logout

Clear the session token and email that av login stored on this machine.

Terminal window
av logout

av logout removes the stored session token and email from the CLI config file and writes the file back, then prints Logged out.

The command is purely local: it makes no API request, so it does not revoke the session server-side - it only stops this machine’s CLI from using it. Running it when you are already logged out succeeds and simply leaves the stored credentials empty.

Flag Default Description
--api-url https://alertavuln.com API base URL (global flag; accepted but has no effect here - logout makes no network request)

Log out on this machine:

Terminal window
av logout

Log out and confirm nothing is stored:

Terminal window
av logout && av whoami

Switch accounts by clearing the current session and signing in again:

Terminal window
av logout && av login
Code Meaning
0 Stored credentials cleared (including when none were stored)
1 The config file could not be written
  • av login - log in via the web browser
  • av whoami - show the currently logged-in user