Skip to content

Manage UI Sessions


Data Type

You can manage the UI sessions by specifying session as <dataType> in the SEAL OP-CLI call:

opcli session <command> <option>

Display the Options and Parameters

By specifying the --help option, you get the available options and parameters for the session data type.

opcli session --help

Get the Number of Open UI Sessions

With the get command, you get the number of UI sessions currently open for a user. The call returns a JSON object with the no property containing the number of sessions.

opcli session get [--owner <owner>]
  • --owner <owner>: User of the sessions; default: current user

Example - get the number of sessions for current user

opcli session get

Example - get the number of sessions for john.doe

opcli session get --owner 'john.doe'

Open the User Interface in the Web Browser

With the open command, you open the user interface in the default Web browser showing the existent panels, for example, Web Portal or SEAL Print Client:

opcli session open [--panel-id <panelId>] [--port <port>|--url <url>]
  • --panel-id <panelId>: ID of a panel to be shown in the user interface

  • --port <port>: Port of the user interface URL; default: 3000

  • --url <url>: URL of the user interface; default: https://localhost:3000

Example - open the user interface with the default URL (https://localhost:3000)

opcli session open

Example - open the user interface specifying the URL

opcli session open --url https://myserver:3000

Example - open the user interface with the default server (localhost) specifying a port (https://localhost:3333)

opcli session open --port 3333

Example - open the user interface with the default URL and open a panel

opcli session open --panel-id 720df639-ff0c-4cfe-b1a8-aa791085e82a

Back to top