Both but use pamac-manager or pamac gui instead of pamac while addressing a issue regarding the gui version in the forum.
pamac-manager
pamac