# yii\console

> 9 classes of the yii\console namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › console

## Namespaces

| Namespace | Types |
| --- | --- |
| [`yii\console\controllers`](/docs/api/yii/console/controllers/index.md) | 8 |
| [`yii\console\widgets`](/docs/api/yii/console/widgets/index.md) | 1 |

## Classes

| Class | Summary |
| --- | --- |
| [`Application`](/docs/api/yii/console/application/index.md) | Application represents a console application. |
| [`Controller`](/docs/api/yii/console/controller/index.md) | Controller is the base class of console command classes. |
| [`ErrorHandler`](/docs/api/yii/console/errorhandler/index.md) | ErrorHandler handles uncaught PHP errors and exceptions. |
| [`Exception`](/docs/api/yii/console/exception/index.md) | Exception represents an exception caused by incorrect usage of a console command. |
| [`ExitCode`](/docs/api/yii/console/exitcode/index.md) | This class provides constants for defining console command exit codes. |
| [`Markdown`](/docs/api/yii/console/markdown/index.md) | A Markdown parser that enhances markdown for reading in console environments. |
| [`Request`](/docs/api/yii/console/request/index.md) | The console Request represents the environment information for a console application. |
| [`Response`](/docs/api/yii/console/response/index.md) | The console Response represents the result of a console application. |
| [`UnknownCommandException`](/docs/api/yii/console/unknowncommandexception/index.md) | UnknownCommandException represents an exception caused by incorrect usage of a console command. |