https://github.com/anmolnar/lastpass-tools
https://github.com/anmolnar/lastpass-tools
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anmolnar/lastpass-tools
- Owner: anmolnar
- License: gpl-3.0
- Created: 2016-02-09T16:27:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T09:37:43.000Z (over 10 years ago)
- Last Synced: 2025-05-21T10:12:57.532Z (about 1 year ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lastpass-tools
This script is able to store binary files in LastPass Secure Notes with base64 encoding.
## install
1. Install LastPass CLI: https://github.com/lastpass/lastpass-cli
2. Edit lp-upload.sh and lp-download.sh to setup location of *lpass* executable.
## upload
> lp-up.sh
**Parameters**
- -f, --folder
Specifiy destination folder in LastPass.
- -t, --template
Use template entry to duplicate in LastPass. LP CLI tool is unable to add new entries, so we need an existing one to duplicate. Should be secure note type
- -u, --upload
Name of the local file to upload.
- --text
Upload as text file (no base64 encoding performed). Default is to upload as binary.
**Example**
```
./lp-up.sh -f SSH -t secure-note-tpl -u ssh-key.pem --text
```
## download
> lp-down.sh
**Parameters**
- -f, --folder
Specifiy source folder in LastPass.
- -d, --download
Name of the remote file to download.
- - --text
Download as text file (no base64 decoding performed). Default is to download as binary.
**Example**
```
./lp-down.sh -f SSH -d ssh-key.pem --text
```