---
title: Enabling WP-CLI autocompletion
description: You'll need to modify ~/.bash_profile  to enable WP-CLI autocompletion, and it may crash your shell environment. Before following steps we strongly recommend create snapshot (backup) on  AMIMOTO Dashb
---

[Skip to content](https://knowledge.amimoto-ami.com/en/knowledge/enabling-wp-cli-autocompletion#main-content)

- [English](https://knowledge.amimoto-ami.com/en/knowledge/enabling-wp-cli-autocompletion)
- [日本語](https://knowledge.amimoto-ami.com/knowledge/managed-wp-cli)

English

Show submenu for translations

![Amimoto-dark-ogp.png\]](https://knowledge.amimoto-ami.com/hs-fs/hubfs/Amimoto-dark-ogp.png?height=40&name=Amimoto-dark-ogp.png)

- ホーム
- 製品
- 価格
- ブログ
- 会社

Open main navigation

Close main navigation

- ホーム
- 製品
- 価格
- ブログ
- 会社
- - [English](https://knowledge.amimoto-ami.com/en/knowledge/enabling-wp-cli-autocompletion)
    - [日本語](https://knowledge.amimoto-ami.com/knowledge/managed-wp-cli)
  
  
  
  
  
  
  English
  
  Show submenu for translations
- [https://amimoto-ami.com/](https://amimoto-ami.com/)

[https://amimoto-ami.com/](https://amimoto-ami.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Amimoto Help Center](https://knowledge.amimoto-ami.com/en/knowledge?hsLang=en)
2. [Amimoto Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en)
3. [Server & AWS Management](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#server-aws-management)

# Enabling WP-CLI autocompletion

#### Note

You'll need to modify ~/.bash\_profile  to enable WP-CLI autocompletion, and it may crash your shell environment. Before following steps we strongly recommend create snapshot (backup) on  [AMIMOTO Dashboard](http://dashboard.amimoto-ami.com/) for AMIMOTO Managed Hosting user;  AWS Console or AWS-CLI  for AMIMOTO AMI / Self Hosting user.  
Restoring from snapshot, if you're AMIMOTO Managed Hosting user, feel free to ask us on [AMIMOTO Dashboard](http://dashboard.amimoto-ami.com/); if you're AMIMTO AMI / Self Hosting user, you can restore it on AWS Console or  AWS-CLI .

### Steps

### 1. Accessing server with SSH

**Managed Hosting Customer**: please check  *Managed Hosting Customer* section on our document [Connecting your server using SSH | Amimoto Help Center](https://knowledge.amimoto-ami.com/en/knowledge/3.-connecting-to-amimoto-ami-with-ssh?hsLang=en)  
**Self Hosting Customer**  please check  *Self Hosting Customer* section on our document [Connecting your server using SSH | Amimoto Help Center](https://knowledge.amimoto-ami.com/en/knowledge/3.-connecting-to-amimoto-ami-with-ssh?hsLang=en)  
  

### 2. Download wp-completion.bash 

Download wp-completion.bash on ~/.wp-cli

```
$ curl -L https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash -o ~/.wp-cli/wp-completion.bash 
```

### 3. Load the  script from default shell

Bash is the default shell on  AMIMOTO Managed Hosting AMIMOTO AMI / Self Hosting. If you're using other shell like Fish or Zsh on the instance, please check official or user group's documents on the shell.

Add the following content to  ~/.bash\_profile .

```
source $HOME/.wp-cli/wp-completion.bash
```

### 4. Check it will work

Log out from the server and re-login.  
After re-login, you can call autocompletion with typing wp and hitting \[tab\] key.

```
$ wpcache      db          menu        role             super-admin cap        eval        network     scaffold         taxonomychecksum   eval-file   option      search-replace   termcli        export      package     server           themecomment    help        plugin      shell            transient config     import      post        shifter          user      core       language    post-type   sidebar          cron     media      rewrite     site        widget
```

- [Amimoto Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#main-content)
  
  
  
  
  
    - [Basics](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#basics)
    - [Amimoto Essential Training](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#amimoto-essential-training)
    - [Migration tips for AMIMOTO Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#migration-tips-for-amimoto-managed-hosting)
    - [Amimoto Dashboard Tips](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#amimoto-dashboard-tips)
    - [Connecting to the Server](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#connecting-to-the-server)
    - [Account and Billing](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#account-and-billing)
    - [Trouble shooting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#trouble-shooting)
    - [WordPress Plugins](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#wordpress-plugins)
    - [Tips for DNS Vendors](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#tips-for-dns-vendors)
    - [Email](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#email)
    - [CDN and Cache control](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#cdn-and-cache-control)
    - [Server & AWS Management](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#server-aws-management)
    - [Integration](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#integration)
    - [Development](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#development)
- [Amimoto AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#main-content)
  
  
  
  
  
    - [Getting Started with Amimoto-AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#getting-started-with-amimoto-ami)
    - [Basics](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#basics)
    - [Connection to Amimoto AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#connection-to-amimoto-ami)
    - [Tips](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#tips)
    - [FAQs](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#faqs)
    - [Trouble shooting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#trouble-shooting)
    - [Getting Started with Amimoto JIN-KEI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#getting-started-with-amimoto-jin-kei)
    - [Tips for JINKEI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#tips-for-jinkei)
    - [Support](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#support)
- [\[EN\] Amimoto Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/en-amimoto-managed-hosting?hsLang=en#main-content)
  
  
  
  
  
    - [Company and Guidelines](https://knowledge.amimoto-ami.com/en/knowledge/en-amimoto-managed-hosting?hsLang=en#company-and-guidelines)

- ホーム
- 製品
- 価格
- ブログ
- 会社

[![Chill listening crop-3](https://knowledge.amimoto-ami.com/hs-fs/hubfs/Amimoto_Logomark_rgb.png?width=24&height=24&name=Amimoto_Logomark_rgb.png "Chill listening crop-3")](https://ja.amimoto-ami.com/)

Amimoto Help Center

<https://www.facebook.com/AmimotoAMI/> <https://twitter.com/Amimoto_Ami>

Copyright © 2026, 株式会社デジタルキューブ