Skip to content
Discussion options

You must be logged in to vote

You will need to use .age.command and a wrapper script to do this for age and .keepassxc.command with a wrapper script for keepassxc-cli.

The wrapper scripts would exactly do what you suggested, for example:

#!/usr/bin/env bash

echo "${KEEPASSXC_CLI_PASSWORD:?}" | keepassxc-cli --pw-stdin "$@"

For keepassxc, this will not work with .keepassxc.mode: builtin (this uses an internal library) and may not work with .keepassxc.mode: open (which expects stdin to work with expect-like functionality).

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@lnyousif
Comment options

@halostatue
Comment options

Answer selected by lnyousif
@lnyousif
Comment options

@lnyousif
Comment options

@twpayne
Comment options

@lnyousif
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants