Skip to content

logout

zocli auth logout

command removes the authentication configuration from the device, and also invalidates the session for the token (BY DEFAULT).

If you want to logout but not to invalidate the session from the server then you can use -d flag as,

zocli auth logout -d

This will remove the authentication from the device only.

After successfull logout, zocli will print below statement on the console.

✓ Successfully Logged out.