I have the below three lines to be run in commandline using psql how can i do it.
CREATE DATABASE myproject; CREATE USER myprojectuser WITH PASSWORD \'passwo
As per the docs psql -c 'command;'
psql -c 'command;'
psql -c 'CREATE DATABASE myproject;' -c "CREATE USER myprojectuser WITH PASSWORD 'password';" -c 'GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;'