I have downloaded new Cbq for 5.0 version but it is not loading buckets. I am able to connect query workbench through server tab.
Do u mean cbq shell. Did you used -e , u, -p options.
./cbq -e http://localhost:8091 -u Administrator -p passwrd
Post the exact command you issued and error message