Login Commands
This page describes all ways to login to keeper from sdk and cli perspective
Commands:
Keeper supports multiple login methodologies, these include
Authentication Workflow (High-Level)
Primary Authentication
Regular account (username + master password)
Cloud SSO (SAML, OIDC)
On-Premises SSO
Managed Company (MSP) login
Secondary Authentication (2FA)
TOTP (Google/Microsoft Authenticator)
SMS one-time code
DUO (push, SMS, voice)
RSA SecurID
WebAuthn/U2F (security keys, biometrics)
Device Approval
Email link
2FA challenge
Keeper Push notification
SDK Authentication Flow
Initialize SDK client/session context
Select login method (master password, SSO, MSP)
Handle challenges issued by Keeper
2FA challenge
Device approval
Security key prompt
Establish secure session
Receive encrypted session token
Unlock vault and enterprise APIs
Login Command
Authenticate to start a session.
DotNet CLI
Command: login
Flag:
--passwordmaster password--resumeresume last login--ssologin using sso provider--altlogin using sso master password--helpDisplay this help screen.--versionDisplay version information.email (pos. 0)Required. account email
Example:
PowerCommander
Command: Connect-Keeper
Alias : kc
Flag:
-Username-Password-NewLogin-Server-Config-SsoPassword-SsoProvider
Example:
Python CLI
Command: login
Flag:
-h, --help: show this help message and exit--sso-password: force master password for SSO accounts--resume-session: resumes current login session-p, --pass: PASSWORD master password
Example :
Python SDK
Function: refer here
Logout Command
Securely log out from the CLI.
DotNet CLI
Command: logout
Flag:
--resume: resume last login--help: Display this help screen.--version: Display version information.
Example:
Whoami Command
Displays information about the current authenticated user, including username and email.
Python CLI
Command: whoami
Flag :
-h, --help: show this help message and exit-v, --verbose: verbose output
Example:
Get and Set Keeper Password Visible command
Displays information about the current authenticated user, including username and email.
Power Commander
Command: Get-KeeperPasswordVisible
Returns current password visibility setting (True or False).
Example:
Command: Set-KeeperPasswordVisible
Toggles whether passwords are shown in plaintext or masked when displaying records.
Flags:
-Visible — When present, passwords are shown in plaintext. When omitted, passwords are masked.
Example:
Show-Two Factor Code command
Displays information about the current authenticated user, including username and email.
Power Commander
Command: Show-TwoFactorCode
Description: Generates and displays TOTP codes for records with a oneTimeCode field. Shows code, elapsed, and remaining seconds.
Flags: -Records — Record UID(s) or objects (Required, pipeline)
Example:
Command: Set-KeeperPasswordVisible
Toggles whether passwords are shown in plaintext or masked when displaying records.
Flags:
-Visible — When present, passwords are shown in plaintext. When omitted, passwords are masked.
Example:
Last updated
Was this helpful?

