The database waits, empty and silent, until a single command gives it life. Pgcli makes that command faster, sharper, and easier to read. When user provisioning needs speed and precision, Pgcli delivers both without slowing down your workflow.
User provisioning in PostgreSQL is more than just creating accounts. It means adding roles, defining permissions, and aligning privileges with your security model. With Pgcli’s intelligent autocompletion and syntax highlighting, you can run these operations in seconds while avoiding common mistakes that cost hours later.
To create a new user, connect to your database:
pgcli -h your_host -U admin -d your_database
Then execute:
CREATE ROLE new_user LOGIN PASSWORD 'securepassword';
GRANT CONNECT ON DATABASE your_database TO new_user;
GRANT USAGE, SELECT ON SCHEMA public TO new_user;
Pgcli’s tab completion helps you remember schema names, role names, and commands as you type. This means fewer trips to the docs and fewer typos. It’s designed for rapid iteration, letting you onboard new team members or service accounts with minimal friction.