2017 © Pedro Peláez
 

library wp-cli-yaml

WP-CLI command imports/exports WordPress settings

image

megumi/wp-cli-yaml

WP-CLI command imports/exports WordPress settings

  • Thursday, April 23, 2015
  • by miya0001
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

wp yaml <sub-command>

System Requirements

  • PHP >=5.3
  • wp-cli >=0.17.0

Installing

Installing without composer.

$ mkdir ~/.wp-cli
$ touch ~/.wp-cli/config.yml
$ mkdir ~/.wp-cli/commands

Then install., (*1)

$ cd ~/.wp-cli/commands
$ git clone git@github.com:megumi-wp-composer/megumi-wp-cli-yaml.git

Then edit the ~/.wp-cli/config.yml file so that it looks like following., (*2)

require:
  - commands/megumi-wp-cli-yaml/cli.php

Install into wp-content/mu-plugins with composer.

Place the composer.json like following., (*3)

{
    "name": "megumi/mu-plugins",
    "authors": [
        {
            "name": "John Smith",
            "email": "john@example.com"
        }
    ],
    "require": {
        "megumi/wp-cli-yaml": "*"
    }
}

Place the plugin file like following,, (*4)

<?php
/*
Plugin Name: mu-plugin for example.com
*/

require_once dirname( __FILE__ ) . '/vendor/autoload.php';

Then, just run composer., (*5)

$ composer install

How to develop

$ git clone git@github.com:megumi-wp-composer/megumi-wp-cli-yaml.git
$ composer install

Then create or edit the ~/.wp-cli/config.yml file so that it looks like this:, (*6)

require:
- /path/to/megumi-wp-cli-yaml/cli.php

Functional tests

Initialize the testing environment locally., (*7)

$ WP_CLI_BIN_DIR=/tmp/wp-cli-phar WP_CLI_CONFIG_PATH=/tmp/wp-cli-phar/config.yml bash bin/install-package-tests.sh

Then run the tests., (*8)

$ WP_CLI_BIN_DIR=/tmp/wp-cli-phar WP_CLI_CONFIG_PATH=/tmp/wp-cli-phar/config.yml vendor/bin/behat

See also:, (*9)

The Versions

23/04 2015

dev-master

9999999-dev https://github.com/megumi-wp-composer/megumi-wp-cli-yaml

WP-CLI command imports/exports WordPress settings

  Sources   Download

GPL-2.0

The Development Requires

23/04 2015

dev-stable

dev-stable https://github.com/megumi-wp-composer/megumi-wp-cli-yaml

WP-CLI command imports/exports WordPress settings

  Sources   Download

GPL-2.0

The Development Requires