Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bob-fornal committed Jun 19, 2024
1 parent 01b409f commit b74cde2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tooling/Wordpress/wp-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,26 @@ chmod -x [filename].sh

## Updating

* `sudo wp cli update` command needs to be run as root.
* Recommend: cron job 3x per week.

```bash
sudo crontab -e
```

```script
# m h dom mon command
00 11 * * 1,3,5 /usr/local/bin/wp cli update --yes >/dev/nill 2>&1
```

```bash
sudo crontab -l
```

## /wp-cli Command Completion

### "tab" completion

1. Create a script file.
2. Add the script file to the `.bashrc` file.
3. "source" the `.bashrc` file.

0 comments on commit b74cde2

Please sign in to comment.