id = "lastpass-cli"
name = "LastPass CLI"
homepage = "https://github.com/lastpass/lastpass-cli"
description = "Command line interface for LastPass."
executables = ["lpass"]
[dotfiles]
paths = []
secret = ["~/.lpass/", "[configHome]/lpass/", "[dataHome]/lpass/"]
[commands]
format = 1
label = "LastPass CLI"
description = "Show or list vault entries. Add, edit, delete, export and sharing commands 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 = ["show"]
label = "Show an entry"
description = "Print an entry or one of its fields; output goes to the terminal unless copied."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "name"
label = "Entry name or ID"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "password"
label = "Password only"
type = "boolean"
option = ["--password"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "username"
label = "Username only"
type = "boolean"
option = ["--username"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "url"
label = "URL only"
type = "boolean"
option = ["--url"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "notes"
label = "Notes only"
type = "boolean"
option = ["--notes"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "field"
label = "Named field"
type = "string"
option = ["--field"]
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"
set = { password = [true], clip = [true] }
fields = ["name", "password", "clip"]
required = ["name"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["name", "password", "username", "url", "notes", "field", "clip", "json"]
[[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 modification time"
type = "boolean"
option = ["--long", "-l"]
sources = ["fig"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["group", "long"]
[[commands.subcommand]]
path = ["generate"]
label = "Generate a password"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "name"
label = "Entry name or ID"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "length"
label = "Length"
type = "integer"
position = 1
sources = ["fig"]
[[commands.subcommand.field]]
id = "no_symbols"
label = "No symbols"
type = "boolean"
option = ["--no-symbols"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "clip"
label = "Copy to clipboard"
type = "boolean"
option = ["--clip", "-c"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "generate"
label = "Generate and save"
fields = ["name", "length", "no_symbols", "clip"]
required = ["name", "length"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["name", "length", "no_symbols", "clip"]