PHPackages                             cirevolution/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. cirevolution/cli

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

cirevolution/cli
================

A command-line tool for CodeIgniter Revolution

113PHP

Since Jun 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Cli for CodeIgniter Revolution
==============================

[](#cli-for-codeigniter-revolution)

This package provides a Cli tool for [CodeIgniterRevolution](https://github.com/CIRevolution/ci)

This includes a few commands and you can create your commands easily.

This is based on Aura.Cli\_Project 2.0.

Included Commands
-----------------

[](#included-commands)

```
generate migration ... Generates migration file skeleton.
migrate            ... Run migrations.
migrate status     ... List all migration files and versions.
seed               ... Seed the database.
run                ... Run controller.

```

Folder Structure
----------------

[](#folder-structure)

```
codeigniter/
├── app/
    ├── console/
        ├── instance.php ... script to generate CodeIgniter instance
├── cli             ... command file
├── config/         ... config folder
└── vendor/

```

Requirements
------------

[](#requirements)

- PHP 5.4.0 or later
- `composer` command
- Git

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

[](#installation)

Install this project with Composer:

```
$ cd /path/to/codeigniter/
$ composer require cirevolution/cli:1.0.x@dev --dev

```

Install command file (`cli`) and config files (`config/`) to your CodeIgniter project:

```
$ php vendor/cirevolution/cli/install.php

```

- Above command always overwrites exisiting files.
- You must run it at CodeIgniter project root folder.

Fix the paths in `instance.php` if you need.

```
$system_path        = $goRoot . 'vendor/cirevolution/system/src/System';
$application_folder = $goRoot . 'app';
$doc_root           = $goRoot . 'public';
```

Usage
-----

[](#usage)

Show command list.

```
$ cd /path/to/codeigniter/
$ php cli

```

Show help for a command.

```
$ php cli help seed

```

Create Database Seeds
---------------------

[](#create-database-seeds)

Seeder class must be placed in `database/seeds` folder.

`database/seeds/ProductSeeder.php`

```
