\?Help (list meta-commands)
\?\? \d\lList databases
\l\l+If your Postgres is before v16 it won’t have this command. Instead use:
SELECT datname FROM pg_database;
\c <DB_NAME>Short for \connect. Use this to connect to a specified database.
\c mydb\c mydb myuser\c "postgresql://myuser:secret@localhost:5432/mydb"\dtList tables
\dt\dt public.*