In the UI, you can add a friend by clicking the friend tab at the bottom right of the UI

At the bottom of the pop up in the search bar you can search by a friends name or customer ID.

Once you locate the friend, click their name and you can then send a friend request.