onepin login / logout / whoami
onepin login / logout / whoami
login
Synopsis
Description
Authenticates with the OnePin API and saves credentials to ~/.onepin/credentials.
- Resolves the key from
--keyor prompts interactively (input is hidden). - Validates the key by calling
GET /api/v1/auth/whoami. - Writes
~/.onepin/credentialswith mode0600(parent dir0700). - Prints the authenticated identity and the path where credentials were saved.
Flags
Examples
Interactive:
Non-interactive (CI):
Custom base URL (local dev):
JSON output:
Errors
Related
logout
Synopsis
Description
Removes the [default] section from ~/.onepin/credentials. Does not revoke the key — revoke it in the dashboard if needed.
Example
whoami
Synopsis
Description
Displays the authenticated identity for the current credentials without modifying any local state.
Example
v0.2: The workspace display name is not yet returned by the API. The workspace UUID is shown instead.
JSON output:

