unkey login stores one session per workspace, and the most recent login becomes the active workspace. Resource commands that use a CLI session send requests to the active workspace.
The command reads local sessions only. It doesn’t call the API and needs no root key.
Usage
--json.
Output
The command prints one workspace ID per line tostdout, in no particular order. An asterisk marks the active workspace:
No saved workspaces. Run 'unkey login' to sign in. and exits 0.
Root keys saved with unkey login --root-key aren’t sessions and don’t appear in this list.