To use psql directly from the terminal without typing the full path:
-
Add PostgreSQL binaries to your PATH:
echo 'export PATH="/Library/PostgreSQL/17/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
This makes
psqlavailable in all new terminal sessions. -
Connect to the database:
psql 'postgresql://USERNAME:PASSWORD@localhost:5432/avm_platform'⚠️ If your password contains special characters (!,@,#), they must be URL-encoded. Example:!→%21psql 'postgresql://avm_admin:Temp12345%21@localhost:5432/avm_platform' -
Verify tables:
\dt
Expected:
alembic_version,listing,property,source
- If
psqlisn't found: confirmecho $PATHincludes/Library/PostgreSQL/17/bin - If connection fails: double-check password encoding in the URI
- For GUI (DBeaver): use the same credentials
uvicorn avm_platform.api.main:app --reload