PHPackages                             cakephp/console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. cakephp/console

ActiveLibrary[Framework](/categories/framework)

cakephp/console
===============

Build beautiful console applications with CakePHP

5.3.3(2mo ago)546.0k↓33.4%18MITPHPPHP &gt;=8.2

Since Nov 13Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/cakephp/console)[ Packagist](https://packagist.org/packages/cakephp/console)[ Docs](https://cakephp.org)[ RSS](/packages/cakephp-console/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelogDependencies (8)Versions (142)Used By (8)

[![Total Downloads](https://camo.githubusercontent.com/668f4e58f92e82569693ce3e70a3b57cccd223eb1cefcb5c541dac4dbd0101c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616b657068702f687474702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/console)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

CakePHP Console Library
=======================

[](#cakephp-console-library)

This library provides a framework for building command line applications from a set of commands. It provides abstractions for defining option and argument parsers, and dispatching commands.

installation
============

[](#installation)

You can install it from Composer. In your project:

```
composer require cakephp/console

```

Getting Started
===============

[](#getting-started)

To start, define an entry point script and Application class which defines bootstrap logic, and binds your commands. Lets put our entrypoint script in `bin/tool.php`:

```
#!/usr/bin/php -q
