Skip to content

lastpass/lastpass-cli

Folders and files

NameName
Last commit message
Last commit date
Jan 3, 2017
Aug 7, 2024
Nov 13, 2024
Jul 25, 2024
Mar 31, 2018
Mar 16, 2018
Oct 11, 2023
Feb 17, 2017
Nov 14, 2024
May 14, 2024
Nov 10, 2015
Nov 19, 2015
Nov 13, 2024
Nov 7, 2017
Mar 22, 2019
Jul 26, 2019
Apr 16, 2019
Jul 9, 2016
Apr 9, 2024
Apr 5, 2024
Jul 4, 2024
Jun 4, 2024
Jul 8, 2019
Oct 22, 2014
Jan 2, 2018
Apr 9, 2024
Jan 2, 2018
Jan 2, 2018
Aug 7, 2024
Apr 5, 2024
Jan 2, 2018
Mar 29, 2019
Apr 5, 2024
Apr 5, 2024
Jun 28, 2024
Apr 5, 2024
Feb 23, 2017
Mar 13, 2018
Jan 2, 2018
Jan 2, 2018
Jan 2, 2018
Aug 7, 2024
Mar 15, 2019
Jul 18, 2016
Apr 9, 2024
Aug 22, 2019
Nov 11, 2024
Jun 28, 2024
Jun 28, 2024
May 8, 2024
May 8, 2024
Jan 2, 2018
Oct 21, 2016
Mar 20, 2019
May 20, 2016
Mar 13, 2018
Mar 13, 2018
Jul 23, 2024
Jul 23, 2024
Jun 7, 2017
Jul 18, 2016
Jun 23, 2016
Aug 7, 2024
Mar 12, 2019
Jan 2, 2018
Jun 21, 2017
Jan 11, 2018
Oct 22, 2014
Jan 2, 2018
Jan 2, 2017
Aug 30, 2023
Oct 12, 2023
Oct 12, 2023
May 3, 2024
Apr 5, 2024
Jan 2, 2018
Nov 7, 2014
May 7, 2024
Mar 25, 2016
Jan 2, 2018
Dec 1, 2016
May 6, 2024
Feb 9, 2016

Repository files navigation

LastPass CLI

(c) 2014-2019 LastPass.

Command line interface to LastPass.com.

Operating System Support

lpass is designed to run on GNU/Linux, Cygwin and Mac OS X.

Dependencies

Installing on Linux

Arch

# from community repository
sudo pacman -S lastpass-cli
# from AUR repository
packer -S lastpass-cli-git

Fedora

  • Packages are available in Fedora 22 and later.
sudo dnf install lastpass-cli

Red Hat/Centos

  • Packages are available in EPEL for RHEL/CentOS 7 and later.
sudo yum install lastpass-cli
  • For older versions: Install the needed build dependencies, and then follow instructions in the 'Building' section.
sudo yum install openssl libcurl libxml2 pinentry xclip openssl-devel libxml2-devel libcurl-devel gcc gcc-c++ make cmake

Debian/Ubuntu

  • Install the needed build dependencies, and then follow instructions in the 'Building' section.

  • For Ubuntu 16.04 (xenial)

apt-get --no-install-recommends -yqq install \
  bash-completion \
  build-essential \
  cmake \
  libcurl3  \
  libcurl3-openssl-dev  \
  libssl1.0.0 \
  libssl-dev \
  libxml2 \
  libxml2-dev  \
  pkg-config \
  ca-certificates \
  xclip
  • For Debian (stable/oldstable) and other Ubuntus < 18.04
apt-get --no-install-recommends -yqq install \
  bash-completion \
  build-essential \
  cmake \
  libcurl3  \
  libcurl3-openssl-dev  \
  libssl1.0 \
  libssl1.0-dev \
  libxml2 \
  libxml2-dev  \
  pkg-config \
  ca-certificates \
  xclip
  • For Debian (testing/experimental) and Ubuntu >= 18.04
apt-get --no-install-recommends -yqq install \
  bash-completion \
  build-essential \
  cmake \
  libcurl4  \
  libcurl4-openssl-dev  \
  libssl-dev  \
  libxml2 \
  libxml2-dev  \
  libssl1.1 \
  pkg-config \
  ca-certificates \
  xclip

Gentoo

  • Install the package:
sudo emerge lastpass-cli

Other Linux Distros

Install the packages listed in the Dependencies section of this document, and then follow instructions in the 'Building' section.

Installing on OS X

With Homebrew (easiest)

  • Install Homebrew, if necessary.
  • Update Homebrew's local formula cache:
brew update
  • Install the lastpass-cli formula:
brew install lastpass-cli
sudo port selfupdate
  • Install the lastpass-cli port:
sudo port install lastpass-cli
  • Optionally install the documentation:
sudo port install lastpass-cli-doc

Manually

Install the packages listed in the Dependencies section of this document, and then follow instructions in the 'Building' section.

Installing on FreeBSD

  • Install the binary package:
sudo pkg install security/lastpass-cli
  • Or build the port yourself:
sudo make -C /usr/ports/security/lastpass-cli all install clean

Installing on Cygwin

  • Install apt-cyg
  • Using apt-cyg, install the needed build dependencies, and then follow instructions in the 'Building' section.
apt-cyg install wget make cmake gcc-core gcc-g++ openssl-devel libcurl-devel libxml2-devel libiconv-devel cygutils-extra

Building

$ make

Under the covers, make invokes cmake in a build directory; you may also use cmake directly if you need more control over the build process.

Installing

$ sudo make install

These environment variables can be passed to make to do the right thing: PREFIX, DESTDIR, BINDIR, LIBDIR, MANDIR.

Running

If you've installed it:

$ lpass

Otherwise, from the build directory:

$ ./lpass

Documentation

Install asciidoc and xsltproc if they are not already installed.

$ sudo apt-get install asciidoc xsltproc

The install-doc target builds and installs the documentation.

$ sudo make install-doc

Once installed,

$ man lpass

You can view the full documentation in the manpage, man lpass or view it online.