C99 command line interface to LastPass.com.
lpass is designed to run on GNU/Linux, Cygwin and Mac OS X.
- LibreSSL or OpenSSL
- libcurl
- libxml2
- pinentry (optional)
- AsciiDoc (build-time documentation generation only)
- xclip, xsel, or pbcopy for clipboard support (optional)
- Install the needed dependencies
sudo yum install openssl libcurl libxml2 pinentry xclip
- Debian: Install the needed dependencies
sudo apt-get install openssl libcurl3 libxml2 libssl-dev libxml2-dev libcurl4-openssl-dev pinentry-curses xclip
- Ubuntu: Install the needed dependencies
sudo apt-get install openssl libcurl3 libxml2 libssl-dev libxml2-dev pinentry-curses xclip
- Install the package
sudo emerge lastpass-cli
Install the packages listed in the Dependencies section of this document.
You'll need to have Xcode installed and working. You can use different packages mangers for OS X like Homebrew/MacPorts/Fink. These instructions use Homebrew. In the future this package MAY become a home brew package.
- Install homebrew folowing the instructions at http://brew.sh/
- Brew install the needed dependencies (type the command below in your terminal)
- The below does not include packages needed for clipboard support.
brew install openssl curl libxml2 pinentry-mac asciidoc
- Note: If you get an error about needed "sudo" for the make command, that means you haven't launched xcode and accepted Apple's license agreement.
$ make
$ sudo make install
These environment variables can be passed to make to do the right thing: PREFIX, DESTDIR, BINDIR, LIBDIR, MANDIR.
If you've installed it:
$ lpass
Otherwise, from the build directory:
$ ./lpass
The install-doc target builds and installs the documentation. It requires
AsciiDoc as a prerequisite.
$ sudo make install-doc
Once installed,
$ man lpass