Run Commands

Pachctl Auto-completion

Learn how to install our auto-completion helper tool (it's great for learning PachCTL commands).

Pachyderm auto-completion allows you to automatically finish partially typed commands by pressing TAB.

Before You Start #

  • You must already have PachCTL installed

How to Install Auto-Completion #

Command Shell:
  1. Install zsh-completions:

    brew install zsh-completions
  2. Install pachctl autocompletion:

💡

You’ll need to install this in the same directory your zsh-completions are installed in. You can run the following to find the correct path:

echo $fpath
pachctl completion bash --install --path /opt/homebrew/share/zsh-completions/_pachctl
  1. Restart your terminal; pachctl autocomplete should now be enabled in your system.

    If you run into warnings in your terminal related to zsh compinit: insecure directories, you can run the following to fix it:

    chmod go-w /opt/homebrew/share

Testing #

You can perform the following tests to verify that pachctl autocompletion is working:

  1. Open a new terminal.

  2. Input the following:

    pachctl v
  3. Hit TAB. You should see the following output:

validate  -- Validate the specification of a Pachyderm resource.
version   -- Print Pachyderm version information.