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 bash

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--no-descriptionsdisable 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 ~/.bashrc

Add completions to .zshrc

nylas completion zsh >> ~/.zshrc
source ~/.zshrc

Fish shell completions

nylas completion fish > ~/.config/fish/completions/nylas.fish

Example 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.