Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.16 KB

File metadata and controls

40 lines (25 loc) · 1.16 KB

BitwardenWrapper

Wrapper module for Bitwarden CLI bw.exe. Includes parameter completion and type juggling for output.

Features

  • JSON output automatically converted to PSCustomObjects
  • Passwords automatically converted to SecureString
  • PSCredential objects added to output
  • Login and Unlock automatically
  • Session key stored in cli-xml and used across windows automatically
  • Parameter completion for bw.exe parameters
  • Installer function

Installation

Install from the PSGallery

Install-Module -Name BitwardenWrapper -Force

Note: Module only supprts x64 due to bw-cli support being limited to x64

Usage

Loading the module should automatically install the matching bw-cli binary from Bitwarden's site.

After loading you can use bw and bw.exe on Windows for auto-complete and object conversion, or bw-cli for original functionality with auto-complete only.

Security

To support auto-lock on Windows you can import a scheduled task that will lock bw-cli on workstation lock, or shutdown.

Windows Scheduled Task Definition

If anyone can contribute a similar file for MacOS or Linux please make a PR.