- Website
- lastpass-cli
lpass
examples
CLI
# login
echo <PASSWORD> | LPASS_DISABLE_PINENTRY=1 lpass login --trust <USERNAME>
# list
lpass ls
# retrieve passwords
lpass show <GROUP>/<NAME> --json --expand-multi
# logout
lpass logout --force
Docker Alpine (8.07MB)
# temporary base container
docker run --rm -it alpine /bin/sh
# build image
docker build -t edgelevel/lastpass-cli -f example/lastpass-alpine .
# temporary container
docker run --rm -it edgelevel/lastpass-cli /bin/sh
echo <PASSWORD> | LPASS_DISABLE_PINENTRY=1 lpass login --trust <USERNAME>
echo <PASSWORD> | lpass show <GROUP>/<NAME> --json --expand-multi
Docker Ubuntu (673MB)
# build image
docker build -t edgelevel/lastpass-cli -f example/lastpass-ubuntu .
# temporary container
docker run --rm --name lastpass-cli edgelevel/lastpass-cli
# access container
docker exec -it lastpass-cli bash
lpass --version
# execute command inline
docker run --rm -it edgelevel/lastpass-cli lpass --version