Command
nylas completion bash
Generate shell completion script for bash, zsh, fish, or PowerShell.
Written by Qasim Muhammad Staff SRE
What does nylas completion bash do?
The nylas completion bash command outputs a shell completion script that enables tab-completion for all Nylas CLI commands, flags, and arguments. Pipe the output into your shell's completion directory or source it from your profile. Works with bash, zsh, fish, and PowerShell — replace 'bash' with your shell name.
Usage
nylas completion bashFlags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --no-descriptions | disable completion descriptions |
Examples
The nylas completion bash command outputs a shell completion script that enables tab-completion for all Nylas CLI commands, flags, and arguments.
Add completions to .bashrc
nylas completion bash >> ~/.bashrc
source ~/.bashrcAdd completions to .zshrc
nylas completion zsh >> ~/.zshrc
source ~/.zshrcFish shell completions
nylas completion fish > ~/.config/fish/completions/nylas.fishExample output
# bash completion V2 for nylas -*- shell-script -*-
__nylas_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE-} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# ... (source with: source <(nylas completion bash))Troubleshooting
Completions not working after sourcing
Open a new terminal session. Some shells cache completions and won't pick up changes until restart.
Completions outdated after CLI update
Regenerate the completion script after each CLI update. The script is tied to the installed version's command set.
Run nylas completion bash --help for full help output.