{
  "name": "lpass",
  "description": "Command line interface for LastPass",
  "subcommands": [
    {
      "name": "login",
      "description": "Log in to LastPass",
      "options": [
        {
          "names": [
            "--trust"
          ],
          "description": "Subsequent logins will not require multifactor authentication"
        },
        {
          "names": [
            "--plaintext-key"
          ],
          "description": "Save decryption key to the hard disk in plaintext",
          "takes_arg": true,
          "arg": {
            "name": "--force",
            "description": "Skip user confirmation"
          }
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "USERNAME",
          "description": "LastPass account username (email address)"
        }
      ]
    },
    {
      "name": "logout",
      "description": "Log out of LastPass",
      "options": [
        {
          "names": [
            "--force"
          ],
          "description": "Skip user confirmation"
        }
      ]
    },
    {
      "name": "ls",
      "description": "List names in groups in a tree structure",
      "options": [
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        },
        {
          "names": [
            "--long",
            "-l"
          ],
          "description": "Show the last modification time"
        },
        {
          "names": [
            "-m"
          ],
          "description": "Show the last modified time"
        },
        {
          "names": [
            "-u"
          ],
          "description": "Show the last used time"
        }
      ],
      "args": [
        {
          "name": "GROUP",
          "description": "Group of entries to list"
        }
      ]
    },
    {
      "name": "passwd",
      "description": "Change LastPass password and reencrypt all entries"
    },
    {
      "name": "show",
      "description": "Show password or selected field",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--clip",
            "-c"
          ],
          "description": "Copy to the clipboard"
        },
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Display no output and only sets return code"
        },
        {
          "names": [
            "--expand-multi",
            "-x"
          ],
          "description": "Show information from all matching sites"
        },
        {
          "names": [
            "--json",
            "-j"
          ],
          "description": "Generate json output instead of human-readable text"
        },
        {
          "names": [
            "--all"
          ],
          "description": "Show all fields"
        },
        {
          "names": [
            "--username"
          ],
          "description": "Show only the username"
        },
        {
          "names": [
            "--password"
          ],
          "description": "Show only the password"
        },
        {
          "names": [
            "--url"
          ],
          "description": "Show only the URL"
        },
        {
          "names": [
            "--notes"
          ],
          "description": "Show only the notes"
        },
        {
          "names": [
            "--field"
          ],
          "description": "Show only the field",
          "takes_arg": true,
          "arg": {
            "name": "FIELD",
            "description": "Show only this field"
          }
        },
        {
          "names": [
            "--id"
          ],
          "description": "Show only the ID"
        },
        {
          "names": [
            "--name"
          ],
          "description": "Show only the name"
        },
        {
          "names": [
            "--attach"
          ],
          "description": "Show only the attachment",
          "takes_arg": true,
          "arg": {
            "name": "ATTACHID",
            "description": "Attachment ID"
          }
        },
        {
          "names": [
            "--basic-regexp",
            "-G"
          ],
          "description": "Show sites matching case-insensitive regular expression"
        },
        {
          "names": [
            "--fixed-strings",
            "-F"
          ],
          "description": "Show sites matching this exact substring"
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "UNIQENAME|UNIQUEID",
          "description": "Shows entry with this unique name or ID"
        }
      ]
    },
    {
      "name": "mv",
      "description": "Move LastPass entry to a different group",
      "options": [
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "UNIQUENAME|UNIQUEID",
          "description": "Unique name or ID to move"
        },
        {
          "name": "GROUP",
          "description": "Destination group"
        }
      ]
    },
    {
      "name": "add",
      "description": "Add a new entry",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--non-interactive"
          ],
          "description": "Accept data until EOF or, unless the notes field is being edited, the first new line"
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        },
        {
          "names": [
            "--username"
          ],
          "description": "Add only the username"
        },
        {
          "names": [
            "--password"
          ],
          "description": "Add only the password"
        },
        {
          "names": [
            "--url"
          ],
          "description": "Add only the URL"
        },
        {
          "names": [
            "--notes"
          ],
          "description": "Add only the notes"
        },
        {
          "names": [
            "--field"
          ],
          "description": "Add only the field",
          "takes_arg": true,
          "arg": {
            "name": "FIELD",
            "description": "Add only this field"
          }
        },
        {
          "names": [
            "--note-type"
          ],
          "description": "Add only the note",
          "takes_arg": true,
          "arg": {
            "name": "NOTETYPE",
            "description": "Type of note to add",
            "suggestions": [
              "amex",
              "bank",
              "credit",
              "database",
              "drivers_license",
              "email",
              "health_insurance",
              "im",
              "mastercard",
              "membership",
              "passport",
              "server",
              "software_license",
              "ssh_key",
              "ssn",
              "visa",
              "wifi"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "NAME|UNIQUEID",
          "description": "Name or unique ID of the entry to add"
        }
      ]
    },
    {
      "name": "edit",
      "description": "Edit existing entry",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--non-interactive"
          ],
          "description": "Accept data until EOF or, unless the notes field is being edited, the first new line"
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        },
        {
          "names": [
            "--name",
            "--username"
          ],
          "description": "Edit only the name (or username)"
        },
        {
          "names": [
            "--password"
          ],
          "description": "Edit only the password"
        },
        {
          "names": [
            "--url"
          ],
          "description": "Edit only the URL"
        },
        {
          "names": [
            "--notes"
          ],
          "description": "Edit only the notes"
        },
        {
          "names": [
            "--field"
          ],
          "description": "Edit only the field",
          "takes_arg": true,
          "arg": {
            "name": "FIELD",
            "description": "Edit just this field"
          }
        }
      ],
      "args": [
        {
          "name": "NAME|UNIQUEID",
          "description": "Name or unique ID of the entry to edit"
        }
      ]
    },
    {
      "name": "generate",
      "description": "Create randomly generated password",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        },
        {
          "names": [
            "--clip",
            "-c"
          ],
          "description": "Copy the text to the clipboard"
        },
        {
          "names": [
            "--username"
          ],
          "description": "Generate password for this username",
          "takes_arg": true,
          "arg": {
            "name": "USERNAME",
            "description": "Username to generate the password for"
          }
        },
        {
          "names": [
            "--url"
          ],
          "description": "Generate password for this URL",
          "takes_arg": true,
          "arg": {
            "name": "URL",
            "description": "URL to generate the password for"
          }
        },
        {
          "names": [
            "--no-symbols"
          ],
          "description": "Generate password without symbols"
        }
      ],
      "args": [
        {
          "name": "NAME|UNIQUEID",
          "description": "Name or unique ID of the entry to generate the password for"
        },
        {
          "name": "LENGTH",
          "description": "Length of the password to create"
        }
      ]
    },
    {
      "name": "duplicate",
      "description": "Duplicate existing entry",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "UNIQUENAME|UNIQUEID",
          "description": "Unique name or unique ID of the entry to duplicate"
        }
      ]
    },
    {
      "name": "rm",
      "description": "Removes existing entry",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "UNIQUENAME|UNIQUEID",
          "description": "Unique name or unique ID of the entry to remove"
        }
      ]
    },
    {
      "name": "status",
      "description": "Show the LastPass login status",
      "options": [
        {
          "names": [
            "--quiet",
            "-q"
          ],
          "description": "Display no output and only sets return code"
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ]
    },
    {
      "name": "sync",
      "description": "Sync the local cache against the LastPass server",
      "options": [
        {
          "names": [
            "--background",
            "-b"
          ],
          "description": "Syncronization occurs in a daemonized process"
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        }
      ]
    },
    {
      "name": "import",
      "description": "Import account information from an unencrypted CSV",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--keep-dupes"
          ],
          "description": "Keeps any duplicate entries"
        }
      ],
      "args": [
        {
          "name": "FILENAME",
          "description": "CSV filename to import from"
        }
      ]
    },
    {
      "name": "export",
      "description": "Export account information to an unencrypted CSV",
      "options": [
        {
          "names": [
            "--sync"
          ],
          "description": "When the current operation syncs to server",
          "takes_arg": true,
          "arg": {
            "name": "sync",
            "suggestions": [
              "auto",
              "now",
              "no"
            ]
          }
        },
        {
          "names": [
            "--color"
          ],
          "description": "Control colored output to the terminal",
          "takes_arg": true,
          "arg": {
            "name": "color",
            "suggestions": [
              "auto",
              "never",
              "always"
            ]
          }
        },
        {
          "names": [
            "--fields"
          ],
          "description": "Comma-separated subset of: id, url, username, password, extra, name, fav, id, grouping, group, fullname, last_touch, last_modified_gmt, attachpresent",
          "takes_arg": true,
          "arg": {
            "name": "FIELDLIST",
            "suggestions": [
              "id,url,username,password,extra,name,fav,id,grouping,group,fullname,last_touch,last_modified_gmt,attachpresent"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "FILENAME",
          "description": "CSV filename to export to"
        }
      ]
    },
    {
      "name": "share",
      "description": "LastPass Sharing Center functionality",
      "subcommands": [
        {
          "name": "userls",
          "description": "List the LastPass users which have access to the Shared Folders"
        },
        {
          "name": "useradd",
          "description": "Add user to Shared Folders",
          "options": [
            {
              "names": [
                "--read-only"
              ],
              "description": "Control read or write access",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "Grant read only access"
              }
            },
            {
              "names": [
                "--hidden"
              ],
              "description": "Share user view permission",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "User can only view entry"
              }
            },
            {
              "names": [
                "--admin"
              ],
              "description": "Share user administer permission",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "User can administer entry"
              }
            }
          ],
          "args": [
            {
              "name": "SHARE",
              "description": "Entry to share"
            },
            {
              "name": "USERNAME",
              "description": "User to share entry with"
            }
          ]
        },
        {
          "name": "usermod",
          "description": "Modify user on Shared Folders",
          "options": [
            {
              "names": [
                "--read-only"
              ],
              "description": "Control read or write access",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "Grant read only access"
              }
            },
            {
              "names": [
                "--hidden"
              ],
              "description": "Share user view permission",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "User can only view entry"
              }
            },
            {
              "names": [
                "--admin"
              ],
              "description": "Share user administer permission",
              "takes_arg": true,
              "arg": {
                "name": "true",
                "description": "User can administer entry"
              }
            }
          ],
          "args": [
            {
              "name": "SHARE",
              "description": "Entry to modify"
            },
            {
              "name": "USERNAME",
              "description": "User access to modify"
            }
          ]
        },
        {
          "name": "userdel",
          "description": "Remove user from Shared Folders",
          "args": [
            {
              "name": "SHARE",
              "description": "LastPass entry to remove user from"
            },
            {
              "name": "USERNAME",
              "description": "LastPass user to remove"
            }
          ]
        },
        {
          "name": "create",
          "description": "Create new LastPass Shared Folder",
          "args": [
            {
              "name": "SHARE",
              "description": "LastPass Shared Folder to create"
            }
          ]
        },
        {
          "name": "rm",
          "description": "LastPass Shared Folder to remove",
          "args": [
            {
              "name": "SHARE",
              "description": "LastPass Shared Folder to remove"
            }
          ]
        },
        {
          "name": "limit",
          "description": "Manipulate LastPass Shared Folder access",
          "options": [
            {
              "names": [
                "--deny",
                "--allow"
              ],
              "description": "Deny or allow access"
            },
            {
              "names": [
                "--add",
                "--rm",
                "--clear"
              ],
              "description": "Add, remove, or clear acces"
            }
          ],
          "args": [
            {
              "name": "SHARE",
              "description": "Shared Folder to remove"
            },
            {
              "name": "USERNAME",
              "description": "User access to manipulate"
            },
            {
              "name": "sites",
              "description": "LastPass sites to manipulate"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "SHARE",
          "description": "LastPass Shared folder to query"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Display the help for lpass"
    },
    {
      "names": [
        "--version"
      ],
      "description": "Display the version of lpass"
    }
  ]
}
