av logout
Clear the session token and email that av login stored on this machine.
Synopsis
Section titled “Synopsis”av logoutDescription
Section titled “Description”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.
Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--api-url |
https://alertavuln.com |
API base URL (global flag; accepted but has no effect here - logout makes no network request) |
Examples
Section titled “Examples”Log out on this machine:
av logoutLog out and confirm nothing is stored:
av logout && av whoamiSwitch accounts by clearing the current session and signing in again:
av logout && av loginExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Stored credentials cleared (including when none were stored) |
1 |
The config file could not be written |