CLI - User password reset and List Hosts question

Hello,

I have two questions:

1-how to reset a user password from cli or console, what is the cli command ?

2 - is there a command I can use to list all target id’s or hosts and their description ? can you provide examples.

thanks

Hi @emmanuelMosg - thanks for trying boundary.

You can change your password on the CLI via:

$ boundary accounts change-password -h

Command Options:

  -current-password=<string>
      The current password for the account. If not specified, the command will
      prompt for the password to be entered in a non-echoing way.

  -id=<string>
      ID of the account on which to operate.

  -new-password=<string>
      The new password for the account. If not specified, the command will
      prompt for the password to be entered in a non-echoing way. 

For the UI, here’s a screen grab of where to start the change password flow:

Sorry, I meant to ask “As an admin, how can I reset someone else’s password if they forgot it? I tried the command above and works but it prompts me for that user’s current password which I would not know and the user forgot”

You can do this from the CLI by passing the account ID of the user.