alpacon work-session use
Set or clear the active work session for the current workspace.
Usage
alpacon work-session use [SESSION_ID] [flags]
Key facts
- Only a session in the
activestate can be selected. - Later
exec,websh,cp, andtunnelcommands use the selected session. - Use
--unsetwithout an ID to clear the selection.
Flags
| Flag | Type | Description | Default |
|---|---|---|---|
-h, --help | bool | help for use | false |
--unset | bool | Clear the active work-session for the current workspace | false |
--output | string | Output format: table or json | table |
Examples
Set the active session
alpacon work-session use 11111111-2222-3333-4444-555555555555Clear the active session
alpacon work-session use --unsetSee Selecting a session for how the active session interacts with the --work-session flag and the ALPACON_WORK_SESSION environment variable.
Note
An agent session cannot be the workspace’s active session, even when its status is active. Pass --work-session SESSION_ID to each command or set ALPACON_WORK_SESSION in the agent’s environment.