Skip to content

Commit 718551a

Browse files
Add section on tab completions
1 parent ff3b971 commit 718551a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docs/installing/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Voila! You're now an official WP-CLI user.
4949

5050
Wondering what to do next? Check out the [quick start guide](/docs/quick-start/) for a short introduction and some example usage.
5151

52-
## Updating WP-CLI
52+
### Updating WP-CLI
5353

5454
If you have installed WP-CLI using the recommended Phar method, you can update it at any time by running `wp cli update`. If you installed WP-CLI using the Git or Composer-based installations, see the specific instructions for updating associated with each method below.
5555

@@ -75,6 +75,16 @@ Want to live life on the edge? Run `wp cli update --nightly` to use the latest n
7575

7676
For more information about `wp cli update`, including flags and options that can be used, read the full [docs page on the update command](https://wp-cli.org/commands/cli/update/).
7777

78+
### Tab completions
79+
80+
WP-CLI also comes with a tab completion script for Bash and ZSH. Just download [wp-completion.bash](https://github.com/wp-cli/wp-cli/raw/master/utils/wp-completion.bash) and source it from `~/.bash_profile`:
81+
82+
```
83+
source /FULL/PATH/TO/wp-completion.bash
84+
```
85+
86+
Don't forget to run `source ~/.bash_profile` afterwards.
87+
7888
## Alternative installation methods
7989

8090
### Installing nightly via Phar

0 commit comments

Comments
 (0)