Permission denied when creating files through terminal console

What should I do then to use WP-CLI with this user?

WP-CLI installs WP in this directory and modifies several files…

Should I add this user to the sudo group to solve this issue?