2017 © Pedro Peláez
 

craft-plugin craft-console

CLI for CraftCMS.

image

evolution7/craft-console

CLI for CraftCMS.

  • Tuesday, January 10, 2017
  • by evolution7
  • Repository
  • 4 Watchers
  • 7 Stars
  • 10,775 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Craft Console

Command/Task runner for Craft CMS. This enables you to run Craft's commands from the CLI., (*1)

Installation

This plugin can be easily added to any composer-managed Craft project., (*2)

composer require evolution7/craft-console

Usage

From the project root, run:, (*3)

vendor/bin/console

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

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

This will give you a list of available commands., (*5)

Yii command runner (based on Yii v1.1.16)
Usage: bin/console <command-name> [parameters...]

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

To see individual command help, use the following:
   bin/console help <command-name>

Synchronise plugins between deployments

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

bin/console sync plugin

This task reads the content of craft/config/plugins.php and activates/deactivates plugins accordingly:, (*7)

<?php
//craft/config/plugins.php
return [
    'activePlugins' => [
        'Project',
        'ArtVandelay',
        'Bugsnag',
        'Console',
        'SproutForms',
        'SproutSeo',
    ]
];

Output:, (*8)

$ php bin/console sync plugin
Synchronizing plugins
Plugin ArtVandelay is already active.
Installing Bugsnag plugin.
Plugin Console is already active.
Enabling Project plugin.
Plugin SproutForms is already active.
Plugin SproutSeo is already active.

The Versions

10/01 2017

dev-master

9999999-dev https://github.com/evolution7/craft-console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen

10/01 2017

0.2

0.2.0.0 https://github.com/evolution7/craft-console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen

24/05 2016

0.1.3

0.1.3.0 https://github.com/evolution7/craft-console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen

05/05 2016

0.1.2

0.1.2.0 https://github.com/evolution7/craft-console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen

14/09 2015

0.1.0

0.1.0.0 https://bitbucket.org/evolution7/craft_console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen

09/09 2015

0.1.1

0.1.1.0 https://bitbucket.org/evolution7/craft_console

CLI for CraftCMS.

  Sources   Download

MIT

The Requires

 

by Thoai Nguyen