How to change an admin password using trytond-admin?

It should be as simple as:

trytond-admin --database database_name --password

But you may need to to also specify the --config file location if you have one.

Then when running the command it should prompt you to enter the new password.