JApplicationCli::getInstance

Returns a reference to the global JApplicationCli object, only creating it if it doesn't already exist.

This method must be invoked as: $cli = JApplicationCli::getInstance();