PHPackages                             scriptmancer/sinan - 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. scriptmancer/sinan

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

scriptmancer/sinan
==================

Sinan CLI tool for the Nazım framework, wrapping symfony/console.

v0.9.5(1y ago)00MITPHPPHP &gt;=8.2

Since May 9Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Sinan CLI
=========

[](#sinan-cli)

A lightweight and powerful CLI tool for the Nazım framework, built on top of Symfony Console.

Installation
------------

[](#installation)

```
composer require scriptmancer/sinan
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
# Run the CLI tool
./sinan

# List available commands
./sinan list

# Get help for a specific command
./sinan help [command]
```

### Creating Commands

[](#creating-commands)

Sinan allows you to create new commands using the `create:command` command:

```
# Create a command
./sinan create:command Hello

# Create a nested command
./sinan create:command Hello/World

# Create a deeply nested command
./sinan create:command Hello/World/Goodmorning
```

The commands follow these naming conventions:

CommandPathClass NameSignature`./sinan create:command Hello``src/Command/Hello/DefaultCommand.php``DefaultCommand``app:hello``./sinan create:command Hello/World``src/Command/Hello/WorldCommand.php``WorldCommand``app:hello-world``./sinan create:command Hello/World/Goodmorning``src/Command/Hello/World/GoodmorningCommand.php``GoodmorningCommand``app:hello-world-goodmorning`### Command Auto-Discovery

[](#command-auto-discovery)

Sinan automatically discovers and registers commands from:

1. `Sinan\Command` namespace (core commands)
2. `App\Commands` namespace (application commands)
3. Custom namespaces registered via configuration

### Termwind Integration

[](#termwind-integration)

Sinan includes [Termwind](https://github.com/nunomaduro/termwind) for beautiful console output:

```
# Try the Termwind showcase
./sinan app:termwind-showcase
```

Configuration
-------------

[](#configuration)

### Project-Level Configuration

[](#project-level-configuration)

Create a `sinan.php` or `config/sinan.php` file in your project root:

```
