cpln commands, subcommands, and flags in your terminal. Press Tab to autocomplete commands, discover available subcommands, and fill in flag names.
Supported shells
| Shell | Supported |
|---|---|
| Bash | Yes |
| Zsh | Yes |
| Fish | Yes |
What gets completed
Shell completion supports the following:Commands and subcommands
Commands and subcommands
cpln workload <Tab> shows available subcommands like get, create, delete.Flags and options
Flags and options
cpln workload get --<Tab> shows available flags like --org, --gvc, --output.Profile names
Profile names
cpln workload get --profile <Tab> lists your configured profiles.API endpoint
API endpoint
cpln workload get --endpoint <Tab> suggests the API endpoint URL.File paths
File paths
cpln apply --file <Tab> triggers native file path completion.Install completion
Run the following command to install shell completion:Options
| Flag | Alias | Description |
|---|---|---|
--shell | Specify the shell to install completion for (bash, zsh, or fish) | |
--batch | -b | Run in non-interactive (batch) mode, skipping prompts |
Non-interactive installation
Use--batch and --shell together to skip the interactive prompts:
- Bash
- Zsh
- Fish
When installing completion for Zsh,
compinit is automatically configured in ~/.zshrc if it is not already present. This is required for Zsh’s completion system to work and is left in place during uninstallation since other tools may depend on it.Uninstall completion
To remove shell completion from your profile:Troubleshooting
Completion not working after installation
Completion not working after installation
Problem: Tab completion doesn’t work after running
install-completion.Solutions:-
Restart your terminal or source your shell profile:
- Bash
- Zsh
- Fish
-
Verify the CLI is on your PATH:
-
Reinstall completion:
Installation fails on macOS (Apple Silicon)
Installation fails on macOS (Apple Silicon)
Problem: Completion installation fails on a Mac with Apple Silicon.Solution: Install Rosetta, then retry:
Completion not available for a new command
Completion not available for a new command
Problem: Tab completion doesn’t include recently added commands or flags.Solution: Reinstall completion after updating the CLI: