Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcw/wp.sh
A shell utility to ease wordpress website development workflow
https://github.com/marcw/wp.sh
cli shell wordpress wp-cli
Last synced: 20 days ago
JSON representation
A shell utility to ease wordpress website development workflow
- Host: GitHub
- URL: https://github.com/marcw/wp.sh
- Owner: marcw
- License: mit
- Created: 2017-01-16T09:55:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T14:08:07.000Z (over 7 years ago)
- Last Synced: 2024-11-11T06:45:28.386Z (2 months ago)
- Topics: cli, shell, wordpress, wp-cli
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wp.sh
A shell utility to ease Wordpress website development workflow.
## Installation
0. Install wp-cli.phar somewhere
1. git clone `https://github.com/marcw/wp.sh` ~/wp.sh
2. chmod +x ~/wp.sh/wp.sh
3. 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/bashhost="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.