API and integrations
Passwork CLI
10 min
passwork cli is a command line tool for retrieving passwords from passwork and securely working with them using scripts, automation, and ci/cd main operating modes exec — retrieves passwords, places them in environment variables, and runs the specified command with these variables api — allows to execute any passwork api method and receive a response in json format what passwork cli is used for secure connection to databases and services — passwords are not saved to disk, don't appear in command history, and are substituted only during command execution deployment automation and ci/cd — secrets from passwork are automatically available in pipelines server administration — tasks are performed using temporary environment variables integration with devops tools — quick password retrieval for scripts, ansible, terraform, and other tools additional passwork cli benefits access to passwords only during process execution self signed certificate support flexible password filtering by tags, folders, vaults all data is encrypted on the client side (when client side encryption mode is enabled) installation you can install the package directly from github usage examples get password and run script get multiple passwords from folder and start service get list of all vaults via api execute command with self signed certificate it's recommended to use environment variables for storing tokens and master keys technical documentation review the technical documentation for passwork cli