LastPass command line interface tool
C Shell CMake Makefile
Latest commit 9e8dd16 Jan 17, 2017 @bcopeland bcopeland doc: shorten the section on aliases slightly
Simplify the aliases documentation a bit by showing echo
commands to create the necessary files.

As the configuration directory is not necessarily in
$LPASS_HOME, add a reference to the previous section,
and use ~/.config/lpass in the examples since that is
where it is typically found on Linux.

Signed-off-by: Bob Copeland <copeland@lastpass.com>
Permalink
Failed to load latest commit information.
cmake_extras build: fix install-doc on OSX Jan 3, 2017
contrib implement tab-completion of field names Oct 21, 2016
debian debian: synchronize with downstream control files Jan 3, 2017
.gitignore build: reinstall Makefile, to call cmake Jan 2, 2017
.travis.yml travis: try another method for ignoring install failures Dec 20, 2016
CHANGELOG.md changelog: update for new release Jan 5, 2017
CMakeLists.txt Fix support for OpenBSD Jan 4, 2017
CONTRIBUTING CONTRIBUTING: clarify terms for future contributions Nov 10, 2015
COPYING Update FSF address. Nov 19, 2015
LICENSE.OpenSSL Additional license file detailing OpenSSL GPL exemption. Oct 24, 2014
Makefile build: pass mandir to cmake, and regen cmake from toplevel Jan 3, 2017
README.md update copyright year Jan 2, 2017
agent.c update copyright year Jan 2, 2017
agent.h added lpass status command to get the status of the LastPass agent Jul 9, 2016
blob.c blob: fix segfault when using 'show' on a secure note Jan 5, 2017
blob.h show: add support for viewing/saving attachments Dec 1, 2016
cipher.c Merge branch 'topic-attachments' Jan 2, 2017
cipher.h show: add support for viewing/saving attachments Dec 1, 2016
clipboard.c update copyright year Jan 2, 2017
clipboard.h import LastPass CLI tool Oct 22, 2014
cmd-add.c update copyright year Jan 2, 2017
cmd-duplicate.c update copyright year Jan 2, 2017
cmd-edit.c update copyright year Jan 2, 2017
cmd-export.c update copyright year Jan 2, 2017
cmd-generate.c update copyright year Jan 2, 2017
cmd-import.c update copyright year Jan 2, 2017
cmd-login.c update copyright year Jan 2, 2017
cmd-logout.c update copyright year Jan 2, 2017
cmd-ls.c ls: sort by display fullname Jan 4, 2017
cmd-mv.c update copyright year Jan 2, 2017
cmd-passwd.c update copyright year Jan 2, 2017
cmd-rm.c update copyright year Jan 2, 2017
cmd-share.c share: implement 'lpass share limit' Feb 9, 2016
cmd-show.c Merge branch 'topic-attachments' Jan 2, 2017
cmd-status.c update copyright year Jan 2, 2017
cmd-sync.c update copyright year Jan 2, 2017
cmd.c update copyright year Jan 2, 2017
cmd.h show: add support for viewing/saving attachments Dec 1, 2016
config.c update copyright year Jan 2, 2017
config.h config: support XDG base directory specification Jul 18, 2016
edit.c edit: initialize attach keys for new accounts Jan 13, 2017
endpoints-login.c update copyright year Jan 2, 2017
endpoints-share.c update copyright year Jan 2, 2017
endpoints.c Merge branch 'topic-attachments' Jan 2, 2017
endpoints.h show: add support for viewing/saving attachments Dec 1, 2016
format.c update copyright year Jan 2, 2017
format.h format: expand format specifiers, and support '/' modifier Oct 21, 2016
http.c update copyright year Jan 2, 2017
http.h http: call curl_global_init in parent and child processes May 20, 2016
kdf.c update copyright year Jan 2, 2017
kdf.h import LastPass CLI tool Oct 22, 2014
list.h clean up some false positives in make analyze Jan 4, 2016
log.c log: initialize fp to avoid crash in non-logging case Jul 18, 2016
log.h lpass: add CURL verbose debugging as an option Jun 23, 2016
lpass.1.txt doc: shorten the section on aliases slightly Jan 17, 2017
lpass.c update copyright year Jan 2, 2017
notes.c update copyright year Jan 2, 2017
notes.h add/edit: implement secure note templates Apr 14, 2016
password.c update copyright year Jan 2, 2017
password.h import LastPass CLI tool Oct 22, 2014
pbkdf2.c Fix compiling when using LibreSSL Jan 4, 2017
pbkdf2.h update copyright year Jan 2, 2017
pins.h pins: remove GlobalSign R1/R3 pins Feb 8, 2016
process.c update copyright year Jan 2, 2017
process.h import LastPass CLI tool Oct 22, 2014
session.c update copyright year Jan 2, 2017
session.h lpass: implement support for EU datacenter Jan 18, 2016
terminal.c terminal: fix segfault in lpass logout Jan 11, 2017
terminal.h add --color=[auto|never|always] command line option Nov 7, 2014
upload-queue.c update copyright year Jan 2, 2017
upload-queue.h upload_queue: use extensible arrays for params Mar 25, 2016
util.c Merge branch 'topic-attachments' Jan 2, 2017
util.h util: add ask_options Dec 1, 2016
version.h version: update to 1.1.1 Jan 5, 2017
xml.c update copyright year Jan 2, 2017
xml.h share: implement 'lpass share limit' Feb 9, 2016

README.md

LastPass CLI

(c) 2014-2017 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

Fedora

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

Redhat/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

Debian/Ubuntu

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

  • For Debian:

sudo apt-get install openssl libcurl3 libxml2 libssl-dev libxml2-dev libcurl4-openssl-dev pinentry-curses xclip
  • For Ubuntu:
sudo apt-get install openssl libcurl4-openssl-dev libxml2 libssl-dev libxml2-dev pinentry-curses 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 --with-pinentry

Alternatively, if you want to install the documentation as well:

brew install lastpass-cli --with-pinentry --with-doc

With MacPorts

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 gcc-core openssl-devel libcurl-devel libxml2-devel libiconv-devel cygutils-extra

Building

$ cmake . && make

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

The install-doc target builds and installs the documentation. It requires AsciiDoc as a prerequisite.

$ sudo make install-doc

Once installed,

$ man lpass