adds support to create a CLI application, by setting `app.cli = true`