First you need the openvpn package:

sudo apt-get install openvpn

Then you can connect like this:

sudo openvpn --config /path/to/config.ovpn

The sudo is important because OpenVPN won’t be able to connect otherwise (I think because it has to change the routes).

If you want background mode:

sudo openvpn --config /path/to/config.ovpn --daemon