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

ActiveCraft-plugin[CLI &amp; Console](/categories/cli)

evolution7/craft-console
========================

CLI for CraftCMS.

0.2(9y ago)714.3kMITPHPPHP &gt;=5.3.0

Since Sep 9Pushed 9y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (0)

\#Craft Console

Command/Task runner for Craft CMS. This enables you to run Craft's commands from the CLI.

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

[](#installation)

This plugin can be easily added to any composer-managed Craft project.

```
composer require evolution7/craft-console

```

\##Usage

From the project root, run:

```
vendor/bin/console

```

Alternatively, you can specify a `bin` folder in `composer.json` and call the executable from there (`$projectRoot/bin/console`).

```
    "config": {
        "bin-dir": "bin"
    },

```

This will give you a list of available commands.

```
Yii command runner (based on Yii v1.1.16)
Usage: bin/console  [parameters...]

The following commands are available:
 - base
 - migrate
 - querygen
 - shell
 - sync

To see individual command help, use the following:
   bin/console help

```

### Synchronise plugins between deployments

[](#synchronise-plugins-between-deployments)

The plugin comes with an example `sync` task that activates the plugins you want (to be run on deployment):

```
bin/console sync plugin

```

This task reads the content of `craft/config/plugins.php` and activates/deactivates plugins accordingly:

```
