PHPackages                             beauty-framework/cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. beauty-framework/cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

beauty-framework/cli
====================

Beauty Framework CLI

1.0.1(11mo ago)0256MITPHPPHP &gt;=8.1

Since Jun 8Pushed 11mo agoCompare

[ Source](https://github.com/beauty-framework/cli)[ Packagist](https://packagist.org/packages/beauty-framework/cli)[ RSS](/packages/beauty-framework-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (6)

Beauty CLI
==========

[](#beauty-cli)

The `beauty-framework/cli` package provides a simple, extensible command-line interface (CLI) system for the Beauty Framework. It supports framework-native commands (like code generation, migrations, and cache handling) as well as custom project-defined commands and module-level commands.

---

Features
--------

[](#features)

- Command registration via configuration or DI
- PSR-compatible structure
- Built-in help/version commands
- Colorized output with support for `info()`, `warn()`, `error()`, `success()`, `debug()` and `table()`
- Command auto-discovery and dynamic loading (planned)
- Code generators (controller, middleware, request, CLI command)
- Contract for custom registrator class (`\Beauty\Cli\Console\Contracts\CommandsRegistryInterface`)

---

CLI Entry Point
---------------

[](#cli-entry-point)

Create a `beauty` executable file in the root of your project:

```
#!/usr/bin/env php
