Giter Club home page Giter Club logo

wpsite's Introduction

Introduction

A simple bash script to easily create WordPress installations on Linux using composer and wpready3 .

Requirements

Installation

git clone "https://github.com/tricarte/wpsite" "$HOME/repos/wpsite"
git clone "https://github.com/tricarte/wpready3" "$HOME/repos/wpready3"
chmod +x "$HOME/repos/wpsite/wpsite"
sudo ln -s "$HOME/repos/wpsite/wpsite" "/usr/local/bin/wpsite"

Source the included completion file from your .bashrc file to enable shell completion.

source "$HOME/repos/wpsite/.wpsite-completion.bash"

Create config

wpsite config

Now edit the file ".wpsiterc" in $HOME to set DB credentials.

If 'wpsite' is too long to type!

sudo ln -s "$HOME/bin/wpsite" "/usr/local/bin/wps"

Commands

Command Description
create Create a new WP site.
backup Backup an existing WP site.
delete Delete an existing WP site.
restore Restore an existing WP site from backup.
list List all wpstarter-enabled sites in "$HOME/sites".
last Open the most recently created site's admin dashboard.
lang Install a new language into an existing wpstarter installation.
quick Quickly create a new WP test site without asking too much.
update Apply "composer update" to the wpstarter repository.
admin Open site's admin dashboard in browser.
boilerplate Create boilerplate template backup for use with "wpsite quick" in "$HOME/backups/sites".
clone-repo Download composer based WP source repository from github.
fm Open site root directory in file manager.
install-plugin Install a theme to a site and activate it.
install-theme Install a plugin to a site and activate it.
woo Do a quick WooCommerce installation with StoreFront theme.
settings Change necessary WP settings that are set generically at the site installation.
flush-env Delete and rebuild ".env.cached.php" file of a site.
config Create .wpsiterc file in $HOME.
testdb Make a test connection to the database server.
env Set WP environment to development or production.
upgrade Just a fancy way of git pull'ing of this repository to upgrade the script.
rest Open site's rest base URL in browser.
tmpadmin Create a temporary admin user.

Some commands recognize the "last" keyword. For example wpsite admin last will bring up the most recently created site's admin dashboard. wpsite delete last -y will the delete the last site you created without confirmation.

User credentials

You can login by just pressing the 'Log In' button.

If you need login credentials:

  • Username: "usr" + sitename. For example for a site name "test1", the username will be "usrtest1".

  • Password: "pss" + sitename. For example for a site name "test1", the password will be "psstest1"".

wpsite's People

Contributors

tricarte avatar

Stargazers

 avatar

Watchers

 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.