Skip to content

marcw/wp.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

wp.sh

A shell utility to ease Wordpress website development workflow.

Installation

  1. Install wp-cli.phar somewhere
  2. git clone https://github.com/marcw/wp.sh ~/wp.sh
  3. chmod +x ~/wp.sh/wp.sh
  4. ln -s ~/wp.sh/wp.sh /usr/local/bin/wp.sh

Usage

At the root of your wordpress project, create a wp.sh.config file using this template

#!/bin/bash

host="my.hostname.com"
project_path="/path/to/project-files/on/the/server"
user="your-ssh-user"
local_hostname="//marc.weistroff.com.dev:8080"
remote_hostname="//marc.weistroff.net"
remote_wpcli="/remote/path/to/wp-cli.phar"

Deployment (a.k.a. pushing local files to the remote server)

wp.sh deploy [--force]

Fetch remote files (a.k.a. fetching remote files)

wp.sh fetch [--force]

Sync from local (a.k.a. deployment & Annihiliate all files on remote that aren't on local)

wp.sh sync_from_local [--force]

Export DB (a.k.a. export db as a production-ready sql file)

wp.sh export_db

Deploy DB (a.k.a. pushing local database to the remote server)

wp.sh deploy_db

Fetching DB (a.k.a. getting remote database)

wp.sh fetch_db

Contributing

Yes, please!

LICENSE

MIT. See LICENSE file.

About

A shell utility to ease wordpress website development workflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages