Download, install, and configure shell auto-completion for the PAI CLI binary.
Download the binary
Download the PAI CLI binary (v1.0.1) for your operating system and CPU architecture:
|
Platform |
Architecture |
File name |
|
Linux |
amd64 (x86_64) |
|
|
Linux |
arm64 (aarch64) |
|
|
macOS |
amd64 (Intel) |
|
|
macOS |
arm64 (Apple Silicon) |
Install
# 1. Move the downloaded binary to a directory in your PATH and rename it to pai
# Replace <downloaded_file> with the actual file you downloaded, for example, pai-linux-amd64 or pai-darwin-arm64
mv <downloaded_file> /usr/local/bin/pai
# 2. Grant executable permission
chmod +x /usr/local/bin/pai
# 3. Verify the installation
pai --version
# Output: v1.0.1
Note
To install to a user directory, place the binary in ~/bin/ or another directory and add it to your PATH environment variable: export PATH=$PATH:~/bin. Add this line to ~/.bashrc or ~/.zshrc for persistence.
Configure auto-completion (recommended)
Configure shell auto-completion after installation for a better command-line experience. The following example uses Linux. macOS users have different completion script paths. For details, see Shell auto-completion.
# Bash
pai completion bash > /etc/bash_completion.d/pai
# Zsh
pai completion zsh > "${fpath[1]}/_pai"
# Fish
pai completion fish > ~/.config/fish/completions/pai.fish