mirror of
https://github.com/bitwarden/cli
synced 2025-12-16 16:23:30 +00:00
Added --apiKey option to the login command
This commit is contained in:
@@ -108,6 +108,7 @@ export class Program extends BaseProgram {
|
||||
.option('--method <method>', 'Two-step login method.')
|
||||
.option('--code <code>', 'Two-step login code.')
|
||||
.option('--sso', 'Log in with Single-Sign On.')
|
||||
.option('--apiKey', 'Log in with an Api Key.')
|
||||
.option('--check', 'Check login status.', async () => {
|
||||
const authed = await this.main.userService.isAuthenticated();
|
||||
if (authed) {
|
||||
|
||||
Reference in New Issue
Block a user