2017 © Pedro Peláez
 

library robo-wpcli

WP-CLI Wordpress Tasks for Robo task runner

image

imi/robo-wpcli

WP-CLI Wordpress Tasks for Robo task runner

  • Friday, April 20, 2018
  • by imi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 112 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Robo Wrapper for WP-CLI

This is wrapper around WP-CLI for using it in the Robo task runner., (*1)

Wordpress installation folder

The package assumes that wordpress is installed in the public sub folder. If this is not the case, use, (*2)

$this->taskWpcliStack()->setPath('')->exec($command)->run();

Template

The package contains a robofile template with database import, export and preserving the site url during the database import., (*3)

Commands

Execute wpcli

$this->taskWpcliStack()->exec($command)->run();

Shortcut for the above:, (*4)

$this->_wp($command);

Write wp-config File

Writes the wp-config file with the values from the setup. Of course you can add additional mappings as a secound parameter., (*5)

Currently RegExp replacing is done. Sooner or later we might use https://github.com/nordcode/robo-parameters for this task (which does not keep comments, that's why we use the own method), (*6)

$this->_writeWpConfigFile($this->askSetup());

Get current base URL

$currentBase = $this->taskWpcliExecWithResult()->getCurrentBaseUrl();

Replace base URL

This is done via wp cli, search and replace functionality., (*7)

$this->taskWpcliStack()->execSearchReplaceBaseUrl($currentBase, $newBase)->run();

The Versions

20/04 2018

dev-master

9999999-dev

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

20/04 2018

1.0.0

1.0.0.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

19/11 2017

0.2.4

0.2.4.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

19/11 2017

0.2.3

0.2.3.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

19/11 2017

0.2.2

0.2.2.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

19/11 2017

0.2.1

0.2.1.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

19/11 2017

0.2.0

0.2.0.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

01/05 2017

0.1.1

0.1.1.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH

01/05 2017

0.1.0

0.1.0.0

WP-CLI Wordpress Tasks for Robo task runner

  Sources   Download

MIT

The Requires

 

by iMi digital GmbH