Skip to main content
Version: 7.0

Overview

Command line interface for retrieving passwords from the Passwork password manager and securely using them in scripts and commands.

Passwork CLI operates in four modes:

  • exec — extract passwords from items or shortcuts, add them to the variable environment, and run the specified command with access to the variables;
  • get — get the field value from an element or shortcut, decrypt it locally, and output it to STDOUT;
  • update — update an element or shortcut field via CLI with security in mind;
  • api — allows to execute any Passwork API method and receive a response in JSON format.

Requirements

  • Python 3.10+
  • requests>=2.31.0
  • python-dotenv>=1.0.0
  • cryptography>=42.0.0
  • pbkdf2>=1.3

Installation

You can install the package directly from GitHub:

pip install git+ssh://[email protected]:passwork-me/passwork-python.git

Or via HTTPS:

pip install git+https://github.com/passwork-me/passwork-python.git

Common parameters

All commands support the following parameters:

ParameterEnvironment variableDescription
--hostPASSWORK_HOSTPasswork server URL
--tokenPASSWORK_TOKENAccess token
--refresh-tokenPASSWORK_REFRESH_TOKENRefresh token (optional)
--master-keyPASSWORK_MASTER_KEYMaster key for decryption
--no-ssl-verifyDisable SSL certificate verification