id = "lpass"
name = "LastPass CLI"
homepage = "https://github.com/lastpass/lastpass-cli"
description = "lpass is a simple command line interface to LastPass."
icon = "SimpleIcons:lastpass"
executables = ["lpass"]
platforms = ["macos", "linux"]
[dotfiles]
paths = [
"[configHome]/lpass/env",
"[configHome]/lpass/alias.*",
"~/.lpass/env",
"~/.lpass/alias.*",
]
exclude = []
secret = [
"~/.lpass/blob",
"~/.lpass/plaintext_key",
"~/.lpass/session_*",
"~/.lpass/trusted_id",
"[xdgData]/lpass/blob",
"[xdgData]/lpass/plaintext_key",
"[xdgData]/lpass/session_*",
"[xdgData]/lpass/trusted_id",
]
[commands]
format = 1
label = "LastPass CLI"
description = "Look up and list LastPass entries. Pick a job below; add, edit, remove, sharing and import/export are left out."
quality = "ai-draft"
base = "fig:lpass"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand]]
path = ["login"]
label = "Log in"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "username"
label = "Account email"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "trust"
label = "Trust this device (skip multifactor next time)"
type = "boolean"
option = ["--trust"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "login"
label = "Log in"
fields = ["username", "trust"]
required = ["username"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["username", "trust"]
[[commands.subcommand]]
path = ["ls"]
label = "List entries"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "group"
label = "Group"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "long"
label = "Show last modification time"
type = "boolean"
option = ["--long", "-l"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "used"
label = "Show last used time"
type = "boolean"
option = ["-u"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "list"
label = "List a group"
fields = ["group", "long"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["group", "long", "used"]
[[commands.subcommand]]
path = ["show"]
label = "Show an entry"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "entry"
label = "Entry name or ID"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "password"
label = "Only the password"
type = "boolean"
option = ["--password"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "username"
label = "Only the username"
type = "boolean"
option = ["--username"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "url"
label = "Only the URL"
type = "boolean"
option = ["--url"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "notes"
label = "Only the notes"
type = "boolean"
option = ["--notes"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "clip"
label = "Copy to clipboard"
type = "boolean"
option = ["--clip", "-c"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "json"
label = "JSON output"
type = "boolean"
option = ["--json", "-j"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "copy_password"
label = "Copy password"
fields = ["entry", "password", "clip"]
required = ["entry"]
set = { password = [true], clip = [true] }
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["entry", "password", "username", "url", "notes", "clip", "json"]