Viewing Sessions from the CLI

See all or just an active list of sessions.

Heidi Hysell avatar
Written by Heidi Hysell
Updated over a week ago

The Alpha Drive CLI gives you access to view all sessions. Simply type the following:

alpha sessions

More than likely you are only interested in seeing your active sessions.

alpha sessions --active

And in certain instances you may even want to keep a live refresh of which sessions are active and how long they have been active. We recommend the following quick hack to gain a 'top' like interface to the active sessions:

while sleep 5; do clear; alpha sessions --active; done


If you need to kill a session, just copy the particular offending session id and run the following:
โ€‹

alpha sessions:kill <session_id>

Of course for a full and up-to-date list of options, use the following:

alpha sessions --help
Did this answer your question?