CLI detection in the request class

Copied from L3