/lastpass-cli-docker

lastpass-cli with docker and bash aliases

Primary LanguageShell

lastpass-cli-docker

build and run

git clone git@github.com:mrceperka/lastpass-cli-docker && cd lastpass-cli-docker && chmod +x build.sh run.sh && ./build.sh && ./run.sh

example usage

# help
docker exec -it lastpass-cli lpass --help

# login
docker exec -it lastpass-cli lpass login foo@example.com

bash aliases

# proxy to docker
alias lpass="docker exec -it lastpass-cli lpass $*"
# sshpass
function ls_ssh_www1() {
  SSHPASS=$(lpass show --password <id>) sshpass -e ssh www1
}