Cull or Remove polygon backfaces with OpenGL

OpenGL has a command to cull backfaces “glCullFace”. I would like to know how to execute this. I want to view semi-wireframe images only showing framed front faces.

This is a larger question on how to execute other OpenGl commands from p5js.