Skip to content

pacx completion powershell

github-actions[bot] edited this page Sep 6, 2026 · 1 revision

Prints a PowerShell script that enables tab-completion for pacx commands and options.

Usage

To enable tab-completion in every session, add this line to your PowerShell profile (notepad $PROFILE):

pacx completion powershell --nologo | Out-String | Invoke-Expression

If you prefer a faster shell startup, save the script once and dot-source it from your profile instead:

pacx completion powershell --nologo | Out-File -Encoding utf8 "$HOME\pacx-completion.ps1"
# then add to your profile:
. "$HOME\pacx-completion.ps1"

The script reads the command tree from pacx completion export the first time you press TAB, so it always matches the pacx version you have installed. No need to regenerate it after an update.

Once loaded, you get suggestions for verbs, options and enum values:

pacx sol<TAB>                 # completes to: pacx solution
pacx solution <TAB>           # suggests: list, create, delete, ...
pacx plugin trace list <TAB>  # suggests the available options
pacx solution list -f <TAB>   # suggests: Table, TableCompact, Json

Note for Windows PowerShell 5.1: a bare - or -- does not trigger completion (engine limitation, native argument completers are not invoked for that token). Press TAB right after the command name instead, or type at least one letter of the option name.

Command list

Clone this wiki locally