Skip to content

realslacker/BitwardenWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Provides a PowerShell wrapper around the bw.exe CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published