---
title: wpe completion zsh
description: Print terminal completions for zsh.
url: https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/completion/zsh/
image: https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/completion/zsh.png
---

# wpe completion zsh

## Description

Print terminal completions for zsh.

## Usage

Terminal window

```bash
$ wpe completion zsh [OPTIONS]
```

## Extended Description

The `wpe completion zsh` command will print tab completion configuration for zsh. If shell completion is not already enabled in your environment you will need to enable it by running the following command:

Terminal window

```bash
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
```

To load completions for each session run the following command once:

Terminal window

```bash
$ wpe completion zsh > "${fpath[1]}/_wpe"
```

## Options

```
--help, -h    Help for zsh
```

## Was this helpful?

Thanks for the feedback!

```json
{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://developers.wpengine.com/#website","name":"WP Engine Product Documentation","url":"https://developers.wpengine.com/","description":"Resources for developing, deploying, and scaling on WP Engine.","inLanguage":"en-US","keywords":["API documentation","product documentation","headless WordPress","managed WordPress hosting"],"publisher":{"@id":"https://wpengine.com/#organization"}},{"@type":"Organization","@id":"https://wpengine.com/#organization","name":"WP Engine","url":"https://wpengine.com/"},{"@type":"TechArticle","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/completion/zsh/#article","mainEntityOfPage":{"@type":"WebPage","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/completion/zsh/"},"headline":"wpe completion zsh","description":"Print terminal completions for zsh.","image":"https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/completion/zsh.png","author":{"@id":"https://wpengine.com/#organization"},"publisher":{"@id":"https://wpengine.com/#organization"},"dateModified":"2024-08-09T00:00:00.000Z","inLanguage":"en-US","isPartOf":{"@id":"https://developers.wpengine.com/#website"}},{"@type":"BreadcrumbList","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/completion/zsh/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"WP Engine Product Documentation","item":"https://developers.wpengine.com/"},{"@type":"ListItem","position":2,"name":"Headless","item":"https://developers.wpengine.com/docs/headless-platform/"},{"@type":"ListItem","position":3,"name":"wpe completion zsh","item":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/completion/zsh/"}]}]}
```
