Skip to main content

signaloid-cli users logout-all

Logout from all active sessions.

Synopsis

signaloid-cli users logout-all

Description

The users logout-all command terminates all active sessions for your account across all devices and locations. This is useful for security purposes, such as when you suspect unauthorized access or when you want to ensure all old sessions are invalidated.

Examples

Terminate all sessions:

signaloid-cli users logout-all

Output:

{
"message": "All sessions terminated",
"sessionsTerminated": 5
}

Emergency security response:

#!/bin/bash
# Emergency logout script

echo "Logging out all sessions..."
signaloid-cli users logout-all

echo "Creating new API key..."
NEW_KEY=$(signaloid-cli keys create --name "Emergency-$(date +%Y%m%d)" | jq -r '.Key')

echo "Re-authenticating with new key..."
signaloid-cli auth login --api-key "$NEW_KEY"

echo "Security measures complete"

Notes

  • This command terminates ALL active sessions, including the current one.
  • After running this command, you will need to re-authenticate.
  • API keys remain valid unless explicitly deleted.
  • This does not affect API key authentication, only session-based authentication.

Use Cases

Security Response

Use this command when:

  • You suspect unauthorized access to your account
  • You've logged in from a public or shared computer
  • You want to ensure all old sessions are cleared
  • You're implementing security best practices

Session Cleanup

Periodically run this command to:

  • Clear stale sessions from old devices
  • Ensure only current devices have access
  • Maintain good security hygiene

Troubleshooting

"Not authenticated" Error

Problem: Command fails with authentication error.

Solutions:

  1. You may already be logged out
  2. Check if you can run signaloid-cli users me
  3. Try logging in first: signaloid-cli auth login

Need to Re-authenticate

Problem: After logout-all, cannot run commands.

Solution:

  1. This is expected behavior - all sessions are terminated
  2. Re-authenticate: signaloid-cli auth login
  3. Or use API key: signaloid-cli auth login --api-key YOUR_KEY

See Also