{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "login"
        ],
        "label": "Log in",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "username",
            "label": "Account email",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "trust",
            "label": "Trust this device (skip multifactor next time)",
            "type": "boolean",
            "option": [
              "--trust"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "login",
            "label": "Log in",
            "fields": [
              "username",
              "trust"
            ],
            "required": [
              "username"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "username",
              "trust"
            ]
          }
        ]
      },
      {
        "path": [
          "ls"
        ],
        "label": "List entries",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "group",
            "label": "Group",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "long",
            "label": "Show last modification time",
            "type": "boolean",
            "option": [
              "--long",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "used",
            "label": "Show last used time",
            "type": "boolean",
            "option": [
              "-u"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List a group",
            "fields": [
              "group",
              "long"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "group",
              "long",
              "used"
            ]
          }
        ]
      },
      {
        "path": [
          "show"
        ],
        "label": "Show an entry",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/lpass.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "entry",
            "label": "Entry name or ID",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "password",
            "label": "Only the password",
            "type": "boolean",
            "option": [
              "--password"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "username",
            "label": "Only the username",
            "type": "boolean",
            "option": [
              "--username"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "Only the URL",
            "type": "boolean",
            "option": [
              "--url"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "notes",
            "label": "Only the notes",
            "type": "boolean",
            "option": [
              "--notes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "clip",
            "label": "Copy to clipboard",
            "type": "boolean",
            "option": [
              "--clip",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json",
              "-j"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "copy_password",
            "label": "Copy password",
            "fields": [
              "entry",
              "password",
              "clip"
            ],
            "required": [
              "entry"
            ],
            "set": {
              "password": [
                true
              ],
              "clip": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "entry",
              "password",
              "username",
              "url",
              "notes",
              "clip",
              "json"
            ]
          }
        ]
      }
    ]
  }
}
