Using the Pamac CLI - Manjaro Wiki
Pamac also includes a fully functional CLI for when you don’t have a working GUI or for those that prefer to manage packages that way.
Warning
Using sudo with pamac can have undesirable effects, especially when building packages. if in doubt, don’t use sudo. Pamac will ask for escalated rights if needed.