docker compose exec db psql -U listmonk -d listmonk -c 'SELECT count(*) FROM subscribers;'

Category: Listmonk & Newsletters

docker compose exec db psql -U listmonk -d listmonk -c 'SELECT count(*) FROM subscribers;'

Count subscribers through the database container

Runs psql inside the Postgres service of the compose stack against the listmonk database. A quick way to verify data made it in after an import. Use `docker compose exec db pg_dump` for backups from inside the stack.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.