psycopg2.OperationalError: fe_sendauth: no password supplied

Hello, I am trying to execute a similar command but it asks me for a password.

In which file should it be supplied?

Traceback (most recent call last):
  File "/usr/local/bin/trytond-console", line 22, in <module>
    console.run(options)
  File "/usr/local/lib/python3.7/dist-packages/trytond/console.py", line 45, in run
    with Transaction().start(db_name, 0, readonly=True):
  File "/usr/local/lib/python3.7/dist-packages/trytond/transaction.py", line 107, in start
    database = backend.Database(database_name).connect()
  File "/usr/local/lib/python3.7/dist-packages/trytond/backend/postgresql/database.py", line 232, in __new__
    cursor_factory=LoggingCursor)
  File "/usr/lib/python3/dist-packages/psycopg2/pool.py", line 161, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psycopg2/pool.py", line 58, in __init__
    self._connect()
  File "/usr/lib/python3/dist-packages/psycopg2/pool.py", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: fe_sendauth: no password supplied

You need to supply the password as described in trytond configuration.

You can either create a configuration file which supplies the password, or you can pass it through an environment variable, ex. TRYTOND_DATABASE__URI.

The simplest is probably to use the config file, with trytond-console -c trytond.conf -d databasename.