onepin login / logout / whoami
onepin login / logout / whoami
onepin login / logout / whoami
Authenticates with the OnePin API and saves credentials to ~/.onepin/credentials.
--key or prompts interactively (input is hidden).GET /api/v1/auth/whoami.~/.onepin/credentials with mode 0600 (parent dir 0700).Interactive:
Non-interactive (CI):
Custom base URL (local dev):
JSON output:
Removes the [default] section from ~/.onepin/credentials. Does not revoke the key — revoke it in the dashboard if needed.
Displays the authenticated identity for the current credentials without modifying any local state.
v0.2: The workspace display name is not yet returned by the API. The workspace UUID is shown instead.
JSON output: