GithubHelp home page GithubHelp logo

isabella232 / wpinstructions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 10up/wpinstructions

0.0 0.0 0.0 66 KB

(BETA) Run a set instructions to build a WordPress environment.

License: MIT License

PHP 100.00%

wpinstructions's Introduction

WP Instructions

THIS SOFTWARE IS BETA.

WP Instructions lets you execute WordPress actions in human-readable format e.g. installing WordPress, activating plugins, etc. WP Instruction files can be provided to developers to ease local development setup and improve environment consistency.

Requirements

  • PHP 7.2+

Install

Install WP Instructions with Composer like so:

composer require 10up/wpinstructions

Usage

Instructions should be saved in a file named WPInstructions. Here is an example of an instructions file:

install wordpress where url is http://wp.test
Install plugin where name is distributor and url is https://github.com/10up/distributor.git and version is latest
install theme where name is twentynineteen

You can execute the instruction file via the command line like so:

./vendor/bin/wpinstructions run

Every instructions contains an action and a list of options. In the instructions file above, install wordpress is the action for the first command where url is an option. Each instruction supports different options.

Supported Instructions

install wordpress

Options: [version] [site title] [site url] [home url] [admin email] [admin user] [admin password] [install type=(multisite|single)] [path=(path to WP directory)]

Installs WordPress. When using this instruction, you will need to pass the following parameters in via the command line: --config_db_host, --config_db_name, --config_db_user, --config_db_pass. For example:

./vendor/bin/wpinstructions run --config_db_host=localhost --config_db_name=wordpress --config_db_user=wordpress --config_db_pass=password

install theme

Options: [theme name=(theme slug)] [theme version] [theme url] [theme status=(enabled|disabled)

Installs a WordPress theme. theme url should be used for installing a theme via zip or git. theme name should match the theme slug.

install plugin

Options: [plugin name=(plugin slug)] [plugin version] [plugin url] [plugin status=(active|network active|inactive)

Installs a WordPress plugin. plugin url should be used for installing a plugin via zip or git. plugin name should match the plugin slug.

add site

Options: [site title] [site url] [home url] [admin email] [admin user] [admin password]

Add a site to a multisite instance. site_url and home_url are required as options.

activate plugin

Options: *[plugin name=(plugin slug)] [active type=(network|single)]

Activate a plugin.

enable theme

Options: *[theme name=(theme slug)]

Enable a theme.

Examples

See examples in EXAMPLES.md.

Like what you see?

wpinstructions's People

Contributors

dinhtungdu avatar jeffpaul avatar tlovett1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.