Forrest logo
back to the lpass tool

lpass:tldr:dbe3a

lpass: Generate a new password for gmail.com with the identifier `myinbox` and add to LastPass.
$ lpass generate --username ${username} --url ${gmail-com} ${myinbox} ${password_length}
try on your machine

The command you provided is likely using the "lpass" (LastPass) command-line tool to generate a password. Here is an explanation of each element of the command:

  • "lpass generate": This is the main command that instructs the LastPass CLI tool to generate a password.

  • "--username ${username}": This option specifies the username or user identifier for which you want to generate a password. The "${username}" should be replaced with an actual username.

  • "--url ${gmail-com}": This option specifies the URL or website associated with the username for which you want to generate a password. The "${gmail-com}" should be replaced with the actual website URL, for example, "https://www.gmail.com".

  • "${myinbox}": This is likely the name or alias given to a specific LastPass credential record. It helps identify the particular record and can be replaced with the specific name or alias you have set within LastPass.

  • "${password_length}": This is likely the desired length of the generated password. It should be replaced with the numerical value representing the desired length.

Overall, this command generates a new password for a specified username and URL within LastPass, considering the provided password length.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lpass tool