TrueNAS SCALE Documentation Archive
This content follows the TrueNAS SCALE 22.12 (Bluefin) releases. Archival documentation is provided for reference only and not actively maintained.
Use the Product and Version selectors above to view content specific to different TrueNAS software or major versions.
Sessions
5 minute read.
Last Modified 2024-03-19 08:47 EDTThe SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
Welcome to the TrueNAS SCALE Command Line Interface (CLI) guide!
The TrueNAS CLI in TrueNAS SCALE functions like a text-based version of the web UI with many functional areas grouped into parent and child namespaces that mirror the counterparts in the SCALE UI.
The underlying structure of the CLI namespaces and commands closely follows that of the SCALE API. For more information on API commands, arguments, options, and definitions go to API Keys and click on API Docs in the SCALE UI.
The sessions namespace has seven commands and is based on functions found in the SCALE API and web UI. It provides access to session information through the seven sessions commands.
You can enter commands from the main CLI prompt or the auth namespace prompt.
The sessions
command returns a table that displays each session id, whether or not each session is current and internal, each session origin, and the credentials and credential data used to log into each session.
The id
command displays the IDs of all TrueNAS sessions since boot.
The current
command displays whether or not the TrueNAS sessions in the sessions
list are current.
The internal
command displays whether sessions in the sessions
list are internally created (via the web UI) or not (via SSH).
The origin
command displays the login origin of the sessions in the sessions
list.
The credentials
command displays the credentials used to authenticate each session in the sessions
list.
The created_at
command displays the creation date and time of the sessions in the sessions
list.